|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ourgrid.peer.ebgum.FakeEBGum
public class FakeEBGum
A fake EBGridMachine used only for tests
Constructor Summary | |
---|---|
FakeEBGum(GumSpec gumSpec)
|
Method Summary | |
---|---|
void |
changeFilePermissions(EventQueue<ResponseEvent> responseQueue,
java.io.File file,
int permissions)
|
void |
createPlaypen(EventQueue<ResponseEvent> responseQueue,
int size)
|
void |
createStorageDirectory(EventQueue<ResponseEvent> responseQueue)
|
boolean |
equals(java.lang.Object o)
|
void |
fileExists(EventQueue<ResponseEvent> responseQueue,
java.io.File file)
|
void |
getFile(EventQueue<ResponseEvent> responseQueue,
java.lang.String filePath,
long filePos,
int size)
|
GumSpec |
getGumSpec()
Retrieves the GumSpec cached in the peer |
GumID |
getID()
Retrieves the gum identification cached in the peer |
void |
getRemoteFileDigest(EventQueue<ResponseEvent> responseQueue,
java.io.File remoteFile)
|
void |
getRemoteFileLastModification(EventQueue<ResponseEvent> responseQueue,
java.io.File remoteFile,
boolean normalized)
|
void |
getRemoteFileLength(EventQueue<ResponseEvent> responseQueue,
java.io.File file)
|
void |
getResult(EventQueue<ResponseEvent> responseQueue,
ExecutorHandle handle)
|
void |
getStatus(EventQueue<ResponseEvent> responseQueue)
|
void |
getStorageDirectory(EventQueue<ResponseEvent> responseQueue)
|
void |
putFile(EventQueue<ResponseEvent> responseQueue,
java.lang.String remoteFile,
byte[] data,
boolean firstSlice)
|
void |
remoteExecute(EventQueue<ResponseEvent> responseQueue,
java.lang.String remoteDir,
java.lang.String command,
java.util.Map<java.lang.String,java.lang.String> environmentVars)
|
void |
start()
Start the event processor |
void |
startReplica(EventQueue<ResponseEvent> responseQueue)
|
EventQueue<ShutdownResponseEvent> |
stop()
Must be implemented by the facade to stop event processing |
void |
stopReplica(EventQueue<ResponseEvent> responseQueue)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FakeEBGum(GumSpec gumSpec)
Method Detail |
---|
public GumID getID()
EBGum
getID
in interface EBGum
EBGum.getID()
public GumSpec getGumSpec()
EBGum
GumSpec
cached in the peer
getGumSpec
in interface EBGum
GumSpec
cached in the peerEBGum.getGumSpec()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public void changeFilePermissions(EventQueue<ResponseEvent> responseQueue, java.io.File file, int permissions)
changeFilePermissions
in interface EBGum
Gum.changeFilePermissions(java.io.File, int)
public void createPlaypen(EventQueue<ResponseEvent> responseQueue, int size)
createPlaypen
in interface EBGum
Gum.createPlaypen(int)
public void createStorageDirectory(EventQueue<ResponseEvent> responseQueue)
createStorageDirectory
in interface EBGum
Gum.createStorageDirectory()
public void fileExists(EventQueue<ResponseEvent> responseQueue, java.io.File file)
fileExists
in interface EBGum
Gum.fileExists(java.io.File)
public void getFile(EventQueue<ResponseEvent> responseQueue, java.lang.String filePath, long filePos, int size)
getFile
in interface EBGum
Gum.getFile(String, long, int)
public void getRemoteFileDigest(EventQueue<ResponseEvent> responseQueue, java.io.File remoteFile)
getRemoteFileDigest
in interface EBGum
Gum.getRemoteFileDigest(File)
public void getRemoteFileLastModification(EventQueue<ResponseEvent> responseQueue, java.io.File remoteFile, boolean normalized)
getRemoteFileLastModification
in interface EBGum
(java.io.File, boolean)
public void getRemoteFileLength(EventQueue<ResponseEvent> responseQueue, java.io.File file)
getRemoteFileLength
in interface EBGum
Gum.getRemoteFileLength(java.io.File)
public void getResult(EventQueue<ResponseEvent> responseQueue, ExecutorHandle handle)
getResult
in interface EBGum
(org.ourgrid.common.executor.ExecutorHandle)
public void getStatus(EventQueue<ResponseEvent> responseQueue)
getStatus
in interface EBGum
Gum.getStatus()
public void getStorageDirectory(EventQueue<ResponseEvent> responseQueue)
getStorageDirectory
in interface EBGum
Gum.getStorageDirectory()
public void putFile(EventQueue<ResponseEvent> responseQueue, java.lang.String remoteFile, byte[] data, boolean firstSlice)
putFile
in interface EBGum
Gum.putFile(String, byte[], boolean)
public void remoteExecute(EventQueue<ResponseEvent> responseQueue, java.lang.String remoteDir, java.lang.String command, java.util.Map<java.lang.String,java.lang.String> environmentVars)
remoteExecute
in interface EBGum
Gum.remoteExecute(java.lang.String,
java.lang.String, java.util.Map)
public void startReplica(EventQueue<ResponseEvent> responseQueue)
startReplica
in interface EBGum
Gum.startReplica()
public void stopReplica(EventQueue<ResponseEvent> responseQueue)
stopReplica
in interface EBGum
Gum.stopReplica()
public EventQueue<ShutdownResponseEvent> stop()
EBGum
stop
in interface EBGum
public void start()
EBGum
start
in interface EBGum
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |