org.ourgrid.peer.ebgum
Class FakeGumFacade

java.lang.Object
  extended by org.ourgrid.peer.ebgum.EBGumFacade
      extended by org.ourgrid.peer.ebgum.FakeGumFacade
All Implemented Interfaces:
EBGum

public class FakeGumFacade
extends EBGumFacade

This is a fake facade used only for tests.


Field Summary
 
Fields inherited from class org.ourgrid.peer.ebgum.EBGumFacade
ebGridMachine
 
Constructor Summary
FakeGumFacade(EBGum gum, ShutdownEventEngine engine)
           
FakeGumFacade(GumSpec spec)
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
 void getGuMSpec(EventQueue responseQueue)
           
 GumID getID()
          Retrieves the gum identification cached in the peer
 void kill(EventQueue responseQueue, ExecutorHandle taskHandle)
           
 void startReplica(EventQueue responseQueue)
           
 void stopReplica(EventQueue responseQueue)
           
 
Methods inherited from class org.ourgrid.peer.ebgum.EBGumFacade
changeFilePermissions, createPlaypen, createStorageDirectory, fileExists, getFile, getGumSpec, getRemoteFileDigest, getRemoteFileLastModification, getRemoteFileLength, getResult, getStatus, getStorageDirectory, isStarted, putFile, remoteExecute, start, stop
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FakeGumFacade

public FakeGumFacade(EBGum gum,
                     ShutdownEventEngine engine)

FakeGumFacade

public FakeGumFacade(GumSpec spec)
Method Detail

getID

public GumID getID()
Description copied from interface: EBGum
Retrieves the gum identification cached in the peer

Specified by:
getID in interface EBGum
Overrides:
getID in class EBGumFacade
Returns:
the gum identification cached in the peer
See Also:
EBGum.getID()

kill

public void kill(EventQueue responseQueue,
                 ExecutorHandle taskHandle)

getGuMSpec

public void getGuMSpec(EventQueue responseQueue)

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

startReplica

public void startReplica(EventQueue responseQueue)
Specified by:
startReplica in interface EBGum
Overrides:
startReplica in class EBGumFacade
See Also:
EBGum.startReplica(EventQueue)

stopReplica

public void stopReplica(EventQueue responseQueue)
Specified by:
stopReplica in interface EBGum
Overrides:
stopReplica in class EBGumFacade
See Also:
EBGum.stopReplica(EventQueue)