|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.apache.catalina.core.StandardServer
Standard implementation of the Server interface, available for use (but not required) when deploying and starting Catalina.
| Fields inherited from interface org.apache.catalina.Lifecycle |
START_EVENT, STOP_EVENT |
| Constructor Summary | |
StandardServer()
Construct a default instance of this class. |
|
| Method Summary | |
void |
addLifecycleListener(LifecycleListener listener)
Add a LifecycleEvent listener to this component. |
void |
addService(Service service)
Add a new Service to the set of defined Services. |
void |
await()
Wait until a proper shutdown command is received, then return. |
Service[] |
findServices()
Return the set of Services defined within this Server. |
java.lang.String |
getInfo()
Return descriptive information about this Server implementation and the corresponding version number, in the format <description>/<version>. |
int |
getPort()
Return the port number we listen to for shutdown commands. |
java.lang.String |
getShutdown()
Return the shutdown command string we are waiting for. |
void |
initialize()
Invoke a pre-startup initialization. |
void |
removeLifecycleListener(LifecycleListener listener)
Remove a LifecycleEvent listener from this component. |
void |
removeService(Service service)
Remove the specified Service from the set associated from this Server. |
void |
setPort(int port)
Set the port number we listen to for shutdown commands. |
void |
setShutdown(java.lang.String shutdown)
Set the shutdown command we are waiting for. |
void |
start()
Prepare for the beginning of active use of the public methods of this component. |
void |
stop()
Gracefully terminate the active use of the public methods of this component. |
java.lang.String |
toString()
Return a String representation of this component. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public StandardServer()
| Method Detail |
public java.lang.String getInfo()
<description>/<version>.getInfo in interface Serverpublic int getPort()
getPort in interface Serverpublic void setPort(int port)
setPort in interface Serverport - The new port numberpublic java.lang.String getShutdown()
getShutdown in interface Serverpublic void setShutdown(java.lang.String shutdown)
setShutdown in interface Servershutdown - The new shutdown commandpublic void addService(Service service)
addService in interface Serverservice - The Service to be addedpublic void await()
await in interface Serverpublic Service[] findServices()
findServices in interface Serverpublic void removeService(Service service)
removeService in interface Serverservice - The Service to be removedpublic java.lang.String toString()
toString in class java.lang.Objectpublic void addLifecycleListener(LifecycleListener listener)
addLifecycleListener in interface Lifecyclelistener - The listener to addpublic void removeLifecycleListener(LifecycleListener listener)
removeLifecycleListener in interface Lifecyclelistener - The listener to remove
public void start()
throws LifecycleException
start in interface Lifecyclejava.lang.IllegalStateException - if this component has already been
startedLifecycleException - if this component detects a fatal error
that prevents this component from being used
public void stop()
throws LifecycleException
stop in interface Lifecyclejava.lang.IllegalStateException - if this component has not been startedLifecycleException - if this component detects a fatal error
that needs to be reported
public void initialize()
throws LifecycleException
initialize in interface Serverorg.apache.catalina.ServerLifecycleException - If this server was already initialized.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||