org.apache.catalina.core
クラス StandardServer

java.lang.Object
  |
  +--org.apache.catalina.core.StandardServer
すべての実装インタフェース:
Lifecycle, Server

public final class StandardServer
extends java.lang.Object
implements Lifecycle, Server

Standard implementation of the Server interface, available for use (but not required) when deploying and starting Catalina.

バージョン:
$Revision: 1.12.2.1 $ $Date: 2002/01/31 21:19:59 $
作成者:
Craig R. McClanahan

インタフェース 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
 

コンストラクタの詳細

StandardServer

public StandardServer()
Construct a default instance of this class.
メソッドの詳細

getInfo

public java.lang.String getInfo()
Return descriptive information about this Server implementation and the corresponding version number, in the format <description>/<version>.
定義:
インタフェース Server 内の getInfo

getPort

public int getPort()
Return the port number we listen to for shutdown commands.
定義:
インタフェース Server 内の getPort

setPort

public void setPort(int port)
Set the port number we listen to for shutdown commands.
定義:
インタフェース Server 内の setPort
パラメータ:
port - The new port number

getShutdown

public java.lang.String getShutdown()
Return the shutdown command string we are waiting for.
定義:
インタフェース Server 内の getShutdown

setShutdown

public void setShutdown(java.lang.String shutdown)
Set the shutdown command we are waiting for.
定義:
インタフェース Server 内の setShutdown
パラメータ:
shutdown - The new shutdown command

addService

public void addService(Service service)
Add a new Service to the set of defined Services.
定義:
インタフェース Server 内の addService
パラメータ:
service - The Service to be added

await

public void await()
Wait until a proper shutdown command is received, then return.
定義:
インタフェース Server 内の await

findServices

public Service[] findServices()
Return the set of Services defined within this Server.
定義:
インタフェース Server 内の findServices

removeService

public void removeService(Service service)
Remove the specified Service from the set associated from this Server.
定義:
インタフェース Server 内の removeService
パラメータ:
service - The Service to be removed

toString

public java.lang.String toString()
Return a String representation of this component.
オーバーライド:
クラス java.lang.Object 内の toString

addLifecycleListener

public void addLifecycleListener(LifecycleListener listener)
Add a LifecycleEvent listener to this component.
定義:
インタフェース Lifecycle 内の addLifecycleListener
パラメータ:
listener - The listener to add

removeLifecycleListener

public void removeLifecycleListener(LifecycleListener listener)
Remove a LifecycleEvent listener from this component.
定義:
インタフェース Lifecycle 内の removeLifecycleListener
パラメータ:
listener - The listener to remove

start

public void start()
           throws LifecycleException
Prepare for the beginning of active use of the public methods of this component. This method should be called before any of the public methods of this component are utilized. It should also send a LifecycleEvent of type START_EVENT to any registered listeners.
定義:
インタフェース Lifecycle 内の start
例外:
java.lang.IllegalStateException - if this component has already been started
LifecycleException - if this component detects a fatal error that prevents this component from being used

stop

public void stop()
          throws LifecycleException
Gracefully terminate the active use of the public methods of this component. This method should be the last one called on a given instance of this component. It should also send a LifecycleEvent of type STOP_EVENT to any registered listeners.
定義:
インタフェース Lifecycle 内の stop
例外:
java.lang.IllegalStateException - if this component has not been started
LifecycleException - if this component detects a fatal error that needs to be reported

initialize

public void initialize()
                throws LifecycleException
Invoke a pre-startup initialization. This is used to allow connectors to bind to restricted ports under Unix operating environments.
定義:
インタフェース Server 内の initialize
インタフェース org.apache.catalina.Server からコピーされたタグ:
例外:
LifecycleException - If this server was already initialized.


Copyright ? 2000-2001 Apache Software Foundation. All Rights Reserved.