edu.ucsb.cs.jicos.services
Class Host
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
edu.ucsb.cs.jicos.foundation.ServiceImpl
edu.ucsb.cs.jicos.services.Host
- All Implemented Interfaces:
- edu.ucsb.cs.jicos.admin.AdministrableHost, edu.ucsb.cs.jicos.foundation.Administrable, Service, java.io.Serializable, java.rmi.Remote
- Direct Known Subclasses:
- HostExternal
public class Host
- extends edu.ucsb.cs.jicos.foundation.ServiceImpl
- implements edu.ucsb.cs.jicos.admin.AdministrableHost
- See Also:
- Serialized Form
| Fields inherited from class edu.ucsb.cs.jicos.foundation.ServiceImpl |
ASAP_DEPARTMENT |
| Fields inherited from class java.rmi.server.RemoteObject |
ref |
| Fields inherited from interface edu.ucsb.cs.jicos.foundation.Service |
NAME |
|
Constructor Summary |
Host(Service taskServer,
boolean amInternalHost,
int $processors)
|
| Methods inherited from class edu.ucsb.cs.jicos.foundation.ServiceImpl |
addMail, addProxy, addProxy, broadcast, broadcast, bytesToObject, clean, executeCommand, getProxy, objectToBytes, proxyManager, receiveCommands, register, removeProxy, sendCommand, serviceName, setDepartments, setService, unregister |
| 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 |
GET_HSP
protected static final edu.ucsb.cs.jicos.foundation.CommandSynchronous GET_HSP
REMOTE_EXCEPTION_HANDLER
protected static final edu.ucsb.cs.jicos.foundation.RemoteExceptionHandler REMOTE_EXCEPTION_HANDLER
command2DepartmentArray
protected static final java.lang.Class[][] command2DepartmentArray
proxyServiceExternal
protected edu.ucsb.cs.jicos.services.external.services.ProxyServiceExternal proxyServiceExternal
myTaskClass
protected java.lang.Class myTaskClass
displayDebug
protected static boolean displayDebug
Host
public Host(Service taskServer,
boolean amInternalHost,
int $processors)
throws java.rmi.RemoteException
- Parameters:
taskServer - TaskServer with which to associate.amInternalHost - specify as an internal host.
- Throws:
java.rmi.RemoteException - This constructor's super invokes remote methods.
broadcastEvent
public void broadcastEvent(java.lang.Object event,
Service fromService)
exceptionHandler
public void exceptionHandler(java.lang.Exception exception)
- An internal exception was detected.
- Specified by:
exceptionHandler in class edu.ucsb.cs.jicos.foundation.ServiceImpl
executeTask
public void executeTask(Task task,
int inputsIndex)
throws java.lang.Exception
- Not used by Jicos applications.
- Parameters:
task - Not used by Jicos applications.
- Throws:
java.lang.Exception
killTask
public void killTask(edu.ucsb.cs.jicos.services.TaskId taskId)
loginClient
public void loginClient(edu.ucsb.cs.jicos.services.SessionInfo sessionInfo)
setShared
public void setShared(Shared shared)
- Not used by Janet applications.
- Parameters:
shared - Not used by Janet applications.
getChildren
public edu.ucsb.cs.jicos.foundation.Administrable[] getChildren()
getCurrentState
public edu.ucsb.cs.jicos.foundation.CurrentState getCurrentState()
startup
public void startup()
shutdown
public void shutdown()
- Specified by:
shutdown in interface edu.ucsb.cs.jicos.foundation.Administrable- Overrides:
shutdown in class edu.ucsb.cs.jicos.foundation.ServiceImpl
echo
public java.lang.String echo(java.lang.String request)
- Specified by:
echo in interface edu.ucsb.cs.jicos.foundation.Administrable
discoverTaskServer
protected static Service discoverTaskServer(java.util.List taskServerDomainNameList)
throws java.lang.Exception
- Throws:
java.lang.Exception
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Not used by Jicos applications.
- Parameters:
args - Not used by Jicos applications.
- Throws:
java.lang.Exception - Not used by Jicos applications.
Jicos: http://cs.ucsb.edu/projects/jicos