org.ourgrid.common.gum
Class FakeGumClient
java.lang.Object
org.ourgrid.gridmachine.useragent.UserAgentClient
org.ourgrid.common.gum.FakeGumClient
- All Implemented Interfaces:
- java.io.Serializable, GumClient
public class FakeGumClient
- extends UserAgentClient
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FakeGumClient
public FakeGumClient(GumSpec gumSpec)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
FakeGumClient
public FakeGumClient(GumSpec gumSpec,
java.io.File[] files,
long[] sizes)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
FakeGumClient
public FakeGumClient(GumID gumID,
GumSpec spec)
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
createPlaypen
public java.lang.String createPlaypen(int size)
- Specified by:
createPlaypen
in interface GumClient
- Overrides:
createPlaypen
in class UserAgentClient
- See Also:
Gum.createPlaypen(int)
createStorageDirectory
public java.lang.String createStorageDirectory()
- Specified by:
createStorageDirectory
in interface GumClient
- Overrides:
createStorageDirectory
in class UserAgentClient
- See Also:
Gum.createStorageDirectory()
getStorageDirectory
public java.lang.String getStorageDirectory()
- Specified by:
getStorageDirectory
in interface GumClient
- Overrides:
getStorageDirectory
in class UserAgentClient
- See Also:
Gum.getStorageDirectory()
getFile
public void getFile(java.lang.String filePath,
java.lang.String localDir)
- Specified by:
getFile
in interface GumClient
- Overrides:
getFile
in class UserAgentClient
- See Also:
Gum.getFile(String, long, int)
storeFile
public void storeFile(java.lang.String localFile,
java.lang.String remoteFile)
- Description copied from interface:
GumClient
- This method stores a local file into the remote storage location. In
general that location is the ".mgstorage" directory in a shared file
system at the remote site.
- Specified by:
storeFile
in interface GumClient
- Overrides:
storeFile
in class UserAgentClient
- Parameters:
localFile
- A string representing the local file path.remoteFile
- A string representing the remote file path.
getRemoteFileLastModification
public long getRemoteFileLastModification(java.io.File remoteFile,
boolean normalized)
- Specified by:
getRemoteFileLastModification
in interface GumClient
- Overrides:
getRemoteFileLastModification
in class UserAgentClient
- See Also:
(java.io.File, boolean)
fileExists
public boolean fileExists(java.io.File file)
- Specified by:
fileExists
in interface GumClient
- Overrides:
fileExists
in class UserAgentClient
- See Also:
Gum.fileExists(java.io.File)
getRemoteFileLength
public long getRemoteFileLength(java.io.File file)
- Specified by:
getRemoteFileLength
in interface GumClient
- Overrides:
getRemoteFileLength
in class UserAgentClient
- See Also:
Gum.getRemoteFileLength(java.io.File)
putFile
public void putFile(java.lang.String filePath,
java.lang.String remoteDir)
- put a file on remoteDir at grid machine
- Specified by:
putFile
in interface GumClient
- Overrides:
putFile
in class UserAgentClient
- See Also:
Gum.putFile(String, byte[], boolean)
changeFilePermissions
public void changeFilePermissions(java.io.File file,
int permissions)
- See Also:
Gum.changeFilePermissions(java.io.File, int)
remoteExecute
public ExecutorHandle remoteExecute(java.lang.String remoteDir,
java.lang.String command,
java.util.Map envVars)
throws UnavailableGumException
- Executes a remote command in a specific remoteDir
- Specified by:
remoteExecute
in interface GumClient
- Overrides:
remoteExecute
in class UserAgentClient
- Throws:
UnavailableGumException
- See Also:
Gum.remoteExecute(String, String, Map)
getID
public GumID getID()
getResult
public ExecutorResult getResult(ExecutorHandle handle)
- Specified by:
getResult
in interface GumClient
- Overrides:
getResult
in class UserAgentClient
- See Also:
Gum.getResult(org.ourgrid.common.executor.ExecutorHandle)
getUAServer
public Gum getUAServer()
throws java.rmi.RemoteException
- Overrides:
getUAServer
in class UserAgentClient
- Returns:
- the gum reference
- Throws:
java.rmi.RemoteException
setStatus
public void setStatus(GumStatus status)
getStatus
public GumStatus getStatus()
- Specified by:
getStatus
in interface GumClient
- Overrides:
getStatus
in class UserAgentClient
- See Also:
Gum.getStatus()