org.apache.whirr.service.puppet.functions
Class StatementToInstallModule.PrepareRemoteFileUrlUsingBlobCache
java.lang.Object
org.apache.whirr.service.puppet.functions.StatementToInstallModule.PrepareRemoteFileUrlUsingBlobCache
- All Implemented Interfaces:
- StatementToInstallModule.PrepareRemoteFileUrl
- Enclosing class:
- StatementToInstallModule
public static class StatementToInstallModule.PrepareRemoteFileUrlUsingBlobCache
- extends Object
- implements StatementToInstallModule.PrepareRemoteFileUrl
Method Summary |
String |
apply(String rawUrl)
Prepare the file url for the remote machine. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StatementToInstallModule.PrepareRemoteFileUrlUsingBlobCache
public StatementToInstallModule.PrepareRemoteFileUrlUsingBlobCache(ClusterActionEvent event)
apply
public String apply(String rawUrl)
throws IOException
- Description copied from interface:
StatementToInstallModule.PrepareRemoteFileUrl
- Prepare the file url for the remote machine.
For public urls this function does nothing. For local urls it uploads the files to a
temporary blob cache and adds download statement.
- Specified by:
apply
in interface StatementToInstallModule.PrepareRemoteFileUrl
- Parameters:
rawUrl
- raw url as provided in the configuration file
- Returns:
- an URL visible to the install / configure scripts
- Throws:
IOException
- See Also:
ClusterActionHandlerSupport.prepareRemoteFileUrl(org.apache.whirr.service.ClusterActionEvent, java.lang.String)
Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.