|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
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.
インタフェース org.apache.catalina.Lifecycle から継承したフィールド |
START_EVENT, STOP_EVENT |
コンストラクタの概要 | |
StandardServer()
Construct a default instance of this class. |
メソッドの概要 | |
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. |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
コンストラクタの詳細 |
public StandardServer()
メソッドの詳細 |
public java.lang.String getInfo()
<description>/<version>
.Server
内の getInfo
public int getPort()
Server
内の getPort
public void setPort(int port)
Server
内の setPort
port
- The new port numberpublic java.lang.String getShutdown()
Server
内の getShutdown
public void setShutdown(java.lang.String shutdown)
Server
内の setShutdown
shutdown
- The new shutdown commandpublic void addService(Service service)
Server
内の addService
service
- The Service to be addedpublic void await()
Server
内の await
public Service[] findServices()
Server
内の findServices
public void removeService(Service service)
Server
内の removeService
service
- The Service to be removedpublic java.lang.String toString()
java.lang.Object
内の toString
public void addLifecycleListener(LifecycleListener listener)
Lifecycle
内の addLifecycleListener
listener
- The listener to addpublic void removeLifecycleListener(LifecycleListener listener)
Lifecycle
内の removeLifecycleListener
listener
- The listener to removepublic void start() throws LifecycleException
Lifecycle
内の start
java.lang.IllegalStateException
- if this component has already been
startedLifecycleException
- if this component detects a fatal error
that prevents this component from being usedpublic void stop() throws LifecycleException
Lifecycle
内の stop
java.lang.IllegalStateException
- if this component has not been startedLifecycleException
- if this component detects a fatal error
that needs to be reportedpublic void initialize() throws LifecycleException
Server
内の initialize
org.apache.catalina.Server
からコピーされたタグ:LifecycleException
- If this server was already initialized.
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |