|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 EBGumEBGum.getID()public GumSpec getGumSpec()
EBGumGumSpec cached in the peer
getGumSpec in interface EBGumGumSpec 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 EBGumGum.changeFilePermissions(java.io.File, int)
public void createPlaypen(EventQueue<ResponseEvent> responseQueue,
int size)
createPlaypen in interface EBGumGum.createPlaypen(int)public void createStorageDirectory(EventQueue<ResponseEvent> responseQueue)
createStorageDirectory in interface EBGumGum.createStorageDirectory()
public void fileExists(EventQueue<ResponseEvent> responseQueue,
java.io.File file)
fileExists in interface EBGumGum.fileExists(java.io.File)
public void getFile(EventQueue<ResponseEvent> responseQueue,
java.lang.String filePath,
long filePos,
int size)
getFile in interface EBGumGum.getFile(String, long, int)
public void getRemoteFileDigest(EventQueue<ResponseEvent> responseQueue,
java.io.File remoteFile)
getRemoteFileDigest in interface EBGumGum.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 EBGumGum.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 EBGumGum.getStatus()public void getStorageDirectory(EventQueue<ResponseEvent> responseQueue)
getStorageDirectory in interface EBGumGum.getStorageDirectory()
public void putFile(EventQueue<ResponseEvent> responseQueue,
java.lang.String remoteFile,
byte[] data,
boolean firstSlice)
putFile in interface EBGumGum.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 EBGumGum.remoteExecute(java.lang.String,
java.lang.String, java.util.Map)public void startReplica(EventQueue<ResponseEvent> responseQueue)
startReplica in interface EBGumGum.startReplica()public void stopReplica(EventQueue<ResponseEvent> responseQueue)
stopReplica in interface EBGumGum.stopReplica()public EventQueue<ShutdownResponseEvent> stop()
EBGum
stop in interface EBGumpublic void start()
EBGum
start in interface EBGum
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||