com.basilv.examples.rmi
Class TaskExecutorServer

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by com.basilv.examples.rmi.TaskExecutorServer
All Implemented Interfaces:
RemoteTaskExecutor, Serializable, Remote

public class TaskExecutorServer
extends UnicastRemoteObject
implements RemoteTaskExecutor

See Also:
Serialized Form

Field Summary
static String REGISTRY_NAME
           
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
TaskExecutorServer()
           
 
Method Summary
 Object executeTask(Task task, Serializable argument)
           
static void main(String[] args)
           
 
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
 

Field Detail

REGISTRY_NAME

public static final String REGISTRY_NAME
Constructor Detail

TaskExecutorServer

public TaskExecutorServer()
                   throws RemoteException
Throws:
RemoteException
Method Detail

executeTask

public Object executeTask(Task task,
                          Serializable argument)
Specified by:
executeTask in interface RemoteTaskExecutor

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Java Examples available from http://www.basilv.com/psd/software Copyright © 2009 by Basil Vandegriend. All Rights Reserved.