|
||||||||||
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
net.dpml.station.server.UnicastEventSource
net.dpml.station.server.RemoteApplication
public class RemoteApplication
The RemoteApplication is the default implementation of a remotely accessible Aplication.
Field Summary |
---|
Fields inherited from class java.rmi.server.RemoteObject |
---|
ref |
Fields inherited from interface net.dpml.station.Application |
---|
DEFAULT_SHUTDOWN_TIMEOUT, DEFAULT_STARTUP_TIMEOUT |
Constructor Summary | |
---|---|
RemoteApplication(Logger logger,
ApplicationDescriptor descriptor,
String id,
int port)
Creation of an application instance. |
Method Summary | |
---|---|
void |
addApplicationListener(ApplicationListener listener)
Add an application listener. |
void |
error(Throwable throwable,
boolean fatal)
Method invoked by a process to signal that the process has encounter an error condition. |
ApplicationDescriptor |
getApplicationDescriptor()
Return the profile associated with this application |
String |
getID()
Return the application id. |
PID |
getPID()
Return the process identifier of the process within which the application is running. |
ProcessState |
getProcessState()
Return the current deployment state of the process. |
Provider |
getProvider()
Return the component instance handler. |
void |
info(String message)
Method invoked by a process to send a arbitary message to the the callback handler. |
protected void |
processEvent(EventObject eventObject)
Internal event handler. |
void |
removeApplicationListener(ApplicationListener listener)
Remove an application listener. |
void |
restart()
Restart the application. |
void |
start()
Start the application. |
void |
started(PID pid,
Component handler)
Method invoked by a process to signal that the process has commenced startup. |
void |
stop()
Stop the application. |
void |
stopped()
Method invoked by a process to signal its imminent termination. |
Methods inherited from class net.dpml.station.server.UnicastEventSource |
---|
addListener, enqueueEvent, getLogger, listeners, removeListener |
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 RemoteApplication(Logger logger, ApplicationDescriptor descriptor, String id, int port) throws RemoteException
logger
- the assigned logging channeldescriptor
- the application descriptorid
- the application keyport
- the rmi registry port on which the station is registered
RemoteException
- if a remote exception occursMethod Detail |
---|
public void started(PID pid, Component handler) throws ApplicationException
started
in interface Callback
pid
- the process identifierhandler
- the component handler
ApplicationException
- if an application exception occurspublic void error(Throwable throwable, boolean fatal)
error
in interface Callback
throwable
- the error conditionfatal
- if true the process is requesting terminationpublic void info(String message)
info
in interface Callback
message
- the messagepublic void stopped()
stopped
in interface Callback
public PID getPID()
getPID
in interface Application
public String getID()
getID
in interface Application
public ApplicationDescriptor getApplicationDescriptor()
getApplicationDescriptor
in interface Application
public ProcessState getProcessState()
getProcessState
in interface Application
public void start() throws ApplicationException
start
in interface Application
ApplicationException
- if an application error occurspublic void stop() throws RemoteException
stop
in interface Application
RemoteException
- if a rmote error occurspublic void restart() throws RemoteException
restart
in interface Application
RemoteException
- if a rmote error occurspublic Provider getProvider()
getProvider
in interface Application
public void addApplicationListener(ApplicationListener listener)
addApplicationListener
in interface Application
listener
- the listener to addpublic void removeApplicationListener(ApplicationListener listener)
removeApplicationListener
in interface Application
listener
- the listener to removeprotected void processEvent(EventObject eventObject)
processEvent
in class UnicastEventSource
eventObject
- the event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |