cluster5.server
Interface ServerInterface4Terminals

All Known Subinterfaces:
Server
All Known Implementing Classes:
ServerImpl, ServerInterface4TerminalsImpl, ServerInterface4UserImpl, TerminalServerInterface

public interface ServerInterface4Terminals


Method Summary
 void announceTerminalDown(java.lang.Long terminalId)
          Announces that a terminal has shut down.
 java.lang.Long announceTerminalUp(Terminal terminalInfo)
          Announces that a terminal is up and passes information about itself
 byte[] getFileData(java.lang.Long sharedFileId)
           
 TerminalTask getTask(java.lang.Long terminalId)
          Fetches a Task to process.
 java.util.List<SharedFile> listFiles()
          List files to be compared with the locals and then updated for newer versions if needed.
 void setResult(TerminalTask executorTask)
          Returns a Task with result, stdout and stderr listings inside.
 

Method Detail

listFiles

java.util.List<SharedFile> listFiles()
                                     throws java.rmi.RemoteException
List files to be compared with the locals and then updated for newer versions if needed. Instances do not include files' binary data.

Returns:
list of files with no data
Throws:
java.rmi.RemoteException

getFileData

byte[] getFileData(java.lang.Long sharedFileId)
                   throws java.rmi.RemoteException
Parameters:
sharedFileId -
Returns:
file's compressed binary data
Throws:
java.rmi.RemoteException

getTask

TerminalTask getTask(java.lang.Long terminalId)
                     throws java.rmi.RemoteException
Fetches a Task to process.

Parameters:
terminalId -
Returns:
task to process or null if there is no pending task
Throws:
java.rmi.RemoteException

setResult

void setResult(TerminalTask executorTask)
               throws java.rmi.RemoteException
Returns a Task with result, stdout and stderr listings inside.

Parameters:
executorTask -
Throws:
java.rmi.RemoteException

announceTerminalUp

java.lang.Long announceTerminalUp(Terminal terminalInfo)
                                  throws java.rmi.RemoteException
Announces that a terminal is up and passes information about itself

Parameters:
terminalInfo -
Returns:
executor ID
Throws:
java.rmi.RemoteException

announceTerminalDown

void announceTerminalDown(java.lang.Long terminalId)
                          throws java.rmi.RemoteException
Announces that a terminal has shut down.

Parameters:
terminalId -
Throws:
java.rmi.RemoteException