org.ourgrid.peer.ebgum
Interface EBGum

All Known Implementing Classes:
EBGumFacade, EBGumImpl, FakeEBGum, FakeGumFacade

public interface EBGum

An event-based gum, located in the peer. It process the calls received by the GumProxy.


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)
           
 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)
           
 

Method Detail

remoteExecute

void remoteExecute(EventQueue<ResponseEvent> responseQueue,
                   java.lang.String remoteDir,
                   java.lang.String command,
                   java.util.Map<java.lang.String,java.lang.String> environmentVars)
See Also:
Gum.remoteExecute(java.lang.String, java.lang.String, java.util.Map)

putFile

void putFile(EventQueue<ResponseEvent> responseQueue,
             java.lang.String remoteFile,
             byte[] data,
             boolean firstSlice)
See Also:
Gum.putFile(String, byte[], boolean)

getFile

void getFile(EventQueue<ResponseEvent> responseQueue,
             java.lang.String filePath,
             long filePos,
             int size)
See Also:
Gum.getFile(String, long, int)

getResult

void getResult(EventQueue<ResponseEvent> responseQueue,
               ExecutorHandle handle)
See Also:
(org.ourgrid.common.executor.ExecutorHandle)

fileExists

void fileExists(EventQueue<ResponseEvent> responseQueue,
                java.io.File file)
See Also:
Gum.fileExists(java.io.File)

changeFilePermissions

void changeFilePermissions(EventQueue<ResponseEvent> responseQueue,
                           java.io.File file,
                           int permissions)
See Also:
Gum.changeFilePermissions(java.io.File, int)

getRemoteFileLength

void getRemoteFileLength(EventQueue<ResponseEvent> responseQueue,
                         java.io.File file)
See Also:
Gum.getRemoteFileLength(java.io.File)

getRemoteFileLastModification

void getRemoteFileLastModification(EventQueue<ResponseEvent> responseQueue,
                                   java.io.File remoteFile,
                                   boolean normalized)
See Also:
(java.io.File, boolean)

createPlaypen

void createPlaypen(EventQueue<ResponseEvent> responseQueue,
                   int size)
See Also:
Gum.createPlaypen(int)

createStorageDirectory

void createStorageDirectory(EventQueue<ResponseEvent> responseQueue)
See Also:
Gum.createStorageDirectory()

getStorageDirectory

void getStorageDirectory(EventQueue<ResponseEvent> responseQueue)
See Also:
Gum.getStorageDirectory()

getStatus

void getStatus(EventQueue<ResponseEvent> responseQueue)
See Also:
Gum.getStatus()

getRemoteFileDigest

void getRemoteFileDigest(EventQueue<ResponseEvent> responseQueue,
                         java.io.File remoteFile)
See Also:
Gum.getRemoteFileDigest(File)

startReplica

void startReplica(EventQueue<ResponseEvent> responseQueue)
See Also:
Gum.startReplica()

stopReplica

void stopReplica(EventQueue<ResponseEvent> responseQueue)
See Also:
Gum.stopReplica()

getID

GumID getID()
Retrieves the gum identification cached in the peer

Returns:
the gum identification cached in the peer

getGumSpec

GumSpec getGumSpec()
Retrieves the GumSpec cached in the peer

Returns:
the GumSpec cached in the peer

stop

EventQueue<ShutdownResponseEvent> stop()
Must be implemented by the facade to stop event processing


start

void start()
Start the event processor