|
||||||||||
| 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 occurs| Method Detail |
|---|
public void started(PID pid,
Component handler)
throws ApplicationException
started in interface Callbackpid - the process identifierhandler - the component handler
ApplicationException - if an application exception occurs
public void error(Throwable throwable,
boolean fatal)
error in interface Callbackthrowable - the error conditionfatal - if true the process is requesting terminationpublic void info(String message)
info in interface Callbackmessage - the messagepublic void stopped()
stopped in interface Callbackpublic PID getPID()
getPID in interface Applicationpublic String getID()
getID in interface Applicationpublic ApplicationDescriptor getApplicationDescriptor()
getApplicationDescriptor in interface Applicationpublic ProcessState getProcessState()
getProcessState in interface Application
public void start()
throws ApplicationException
start in interface ApplicationApplicationException - if an application error occurs
public void stop()
throws RemoteException
stop in interface ApplicationRemoteException - if a rmote error occurs
public void restart()
throws RemoteException
restart in interface ApplicationRemoteException - if a rmote error occurspublic Provider getProvider()
getProvider in interface Applicationpublic void addApplicationListener(ApplicationListener listener)
addApplicationListener in interface Applicationlistener - the listener to addpublic void removeApplicationListener(ApplicationListener listener)
removeApplicationListener in interface Applicationlistener - the listener to removeprotected void processEvent(EventObject eventObject)
processEvent in class UnicastEventSourceeventObject - the event
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||