|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GumClient
GumClient
is an abstraction that represents all entities that
will consume Gum
s being the one who will effectively use the
Gum
. Doing that, it will have a reference to the last and
will execute remote tasks on it after making special treatments useful to the
client and providing callback methods.
Field Summary | |
---|---|
static long |
serialVersionUID
Serial identification of the class. |
Method Summary | |
---|---|
java.lang.String |
createPlaypen(int size)
|
java.lang.String |
createStorageDirectory()
|
boolean |
fileExists(java.io.File file)
|
void |
getFile(java.lang.String remoteFilePath,
java.lang.String localFile)
|
GumSpec |
getGumSpec()
Retrieves the gum specification cached on the client side |
long |
getRemoteFileLastModification(java.io.File remoteFile,
boolean normalized)
|
long |
getRemoteFileLength(java.io.File file)
|
ExecutorResult |
getResult(ExecutorHandle handle)
|
GumStatus |
getStatus()
|
java.lang.String |
getStorageDirectory()
|
void |
putFile(java.lang.String filePath,
java.lang.String remoteFile)
|
ExecutorHandle |
remoteExecute(java.lang.String remoteDir,
java.lang.String command,
java.util.Map<java.lang.String,java.lang.String> environmentVars)
|
void |
startReplica()
|
void |
stopReplica()
|
void |
storeFile(java.lang.String localFile,
java.lang.String remoteFile)
This method stores a local file into the remote storage location. |
Field Detail |
---|
static final long serialVersionUID
Method Detail |
---|
ExecutorHandle remoteExecute(java.lang.String remoteDir, java.lang.String command, java.util.Map<java.lang.String,java.lang.String> environmentVars) throws FailCauseException
UnavailableGumException
- Throws if the contact with the remote
machine is lost.
UnableToExecuteException
- Throws if cannot execute the command on
the machine. For example, if the command does not exist or the
machine already is executing a remote task command.
FailCauseException
Gum.remoteExecute(String, String, Map)
void putFile(java.lang.String filePath, java.lang.String remoteFile) throws FailCauseException
FileTransferException
- Throws if can not transfer the file.
FailCauseException
Gum.putFile(String, byte[], boolean)
void getFile(java.lang.String remoteFilePath, java.lang.String localFile) throws FailCauseException
FileTransferException
- if the file cannot be transfered.
FailCauseException
Gum.getFile(String, long, int)
ExecutorResult getResult(ExecutorHandle handle) throws FailCauseException
FailCauseException
Gum.getResult(ExecutorHandle)
void storeFile(java.lang.String localFile, java.lang.String remoteFile) throws FailCauseException
localFile
- A string representing the local file path.remoteFile
- A string representing the remote file path.
UnavailableGumException
- if the requested GM is not available.
FileTransferException
- if some transfer problems happen.
FailCauseException
boolean fileExists(java.io.File file) throws FailCauseException
UnavailableGumException
- Occurs if the requested processor is not
available.
UnableToExecuteException
- Occurs if some operation could not be
performed in order to verify if the file exists.
FileTransferException
- if any file that must be transfered for the
execution (in case of transfer a script) fails.
FailCauseException
*
long getRemoteFileLength(java.io.File file) throws FailCauseException
UnavailableGumException
- if the requested GM is not available.
UnableToExecuteException
- Occurs if some operation could not be
performed in order to get the remote file length.
FileTransferException
- if some transfer problems happen.
FailCauseException
Gum.getRemoteFileLength(File)
long getRemoteFileLastModification(java.io.File remoteFile, boolean normalized) throws FailCauseException
UnavailableGumException
- if the requested GM is not available.
UnableToExecuteException
- Occurs if some operation could not be
performed in order to get the remote file length.
FailCauseException
Gum.getRemoteFileLastModification(File, boolean)
java.lang.String createPlaypen(int size) throws FailCauseException
UnavailableGumException
- if the requested GM is not available.
UnableToExecuteException
- Occurs if some operation could not be
performed in order to create playpen directory.
FileTransferException
- if some transfer problems happen.
FailCauseException
Gum.createPlaypen(int)
java.lang.String createStorageDirectory() throws FailCauseException
UnavailableGumException
- if the requested GM is not available.
UnableToExecuteException
- Occurs if some operation could not be
performed in order to create the storage directory.
UnableToCreateStorageException
- if the creation of the directory
was not possible due to permission denied, disk space is full,
etc.
FileTransferException
- if some transfer problems happen.
FailCauseException
Gum.createStorageDirectory()
java.lang.String getStorageDirectory() throws FailCauseException
UnavailableGumException
- if the requested GM is not available.
UnableToExecuteException
- Occurs if some operation could not be
performed in order to get the remote storage directory path.
FileTransferException
- if some transfer problems happen.
FailCauseException
Gum.getStorageDirectory()
GumSpec getGumSpec()
GumStatus getStatus()
Gum.getStatus()
void startReplica() throws FailCauseException
UnavailableGumException
- If the contact with grid machine is lost.
FailCauseException
Gum.startReplica()
void stopReplica() throws FailCauseException
UnavailableGumException
- If the contact with grid machine is lost.
FailCauseException
Gum.stopReplica()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |