|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
com.sun.grid.jgrid.server.ComputeEngineImpl
This class implements the ComputeEngine interface. Currently only the compute method is implemented.
Field Summary |
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Constructor Summary | |
ComputeEngineImpl(java.lang.String resultHost)
Constructs ComputeEngineImpl object and exports it on default port. |
|
ComputeEngineImpl(java.lang.String resultHost,
int port)
Constructs ComputeEngineImpl object and exports it on specified port. |
Method Summary | |
void |
checkpoint(java.lang.String jobId)
This method is not implemented. |
void |
compute(Job job)
This method causes the execution of the Job. |
void |
halt(java.lang.String jobId)
This method is not implemented. |
void |
haltAll()
This method is not implemented. |
static void |
main(java.lang.String[] args)
Main method. |
static void |
registerToRegistry(java.lang.String name,
java.rmi.Remote obj,
boolean create)
Register ComputeEngineImpl object with the RMI registry. |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ComputeEngineImpl(java.lang.String resultHost) throws java.rmi.RemoteException
resultHost
- the host with the registry containing the ResultChannel
java.rmi.RemoteException
- if an error occurs while trying to retrieve the ResultChannel objectpublic ComputeEngineImpl(java.lang.String resultHost, int port) throws java.rmi.RemoteException
resultHost
- the host with the registry containing the ResultChannelport
- The port for exporting
java.rmi.RemoteException
- if an error occurs while trying to retrieve the ResultChannel objectMethod Detail |
public static void registerToRegistry(java.lang.String name, java.rmi.Remote obj, boolean create) throws java.rmi.RemoteException, java.net.MalformedURLException
obj
- the object to bindname
- - name identifying the service in the RMI registrycreate
- - create local registry if necessary
java.rmi.RemoteException
- if cannot be exported or bound to RMI registry
java.net.MalformedURLException
- if name cannot be used to construct a valid URL
java.lang.IllegalArgumentException
- if null passed as namepublic static void main(java.lang.String[] args) throws java.lang.Exception
args
- the command line arguments
java.lang.Exception
- if an error occurspublic void compute(Job job) throws java.rmi.RemoteException
compute
in interface ComputeEngine
job
- the job to execute
java.rmi.RemoteException
- if an error occurs on the server sideResultChannel.sendException(java.lang.Exception, java.lang.String)
public void checkpoint(java.lang.String jobId) throws java.rmi.RemoteException
checkpoint
in interface ComputeEngine
jobId
- the id of the job to checkpoint
java.rmi.RemoteException
- if an error occurs on the server sidepublic void halt(java.lang.String jobId) throws java.rmi.RemoteException
halt
in interface ComputeEngine
jobId
- the id of the job to stop
java.rmi.RemoteException
- if an error occurs on the server sidepublic void haltAll() throws java.rmi.RemoteException
haltAll
in interface ComputeEngine
java.rmi.RemoteException
- if an error occurs on the server side
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |