org.apache.catalina.startup
クラス EmbeddedManager

java.lang.Object
  |
  +--javax.management.NotificationBroadcasterSupport
        |
        +--org.apache.catalina.startup.EmbeddedManager
すべての実装インタフェース:
EmbeddedManagerMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster

public final class EmbeddedManager
extends javax.management.NotificationBroadcasterSupport
implements EmbeddedManagerMBean, javax.management.MBeanRegistration

Implementation of the Catalina JMX MBean as a wrapper of the Catalina class.

バージョン:
$Revision: 1.3.2.1 $
作成者:
Remy Maucherat

インタフェース org.apache.catalina.startup.EmbeddedManagerMBean から継承したフィールド
NAME, OBJECT_NAME, STARTED, STARTING, states, STOPPED, STOPPING
 
コンストラクタの概要
EmbeddedManager()
           
 
メソッドの概要
 void addConnector(Connector connector)
          Add a new Connector to the set of defined Connectors.
 void addEngine(Engine engine)
          Add a new Engine to the set of defined Engines.
 Connector createConnector(java.net.InetAddress address, int port, boolean secure)
          Create, configure, and return a new TCP/IP socket connector based on the specified properties.
 Context createContext(java.lang.String path, java.lang.String docBase)
          Create, configure, and return a Context that will process all HTTP requests received from one of the associated Connectors, and directed to the specified context path on the virtual host to which this Context is connected.
 Engine createEngine()
          Create, configure, and return an Engine that will process all HTTP requests received from one of the associated Connectors, based on the specified properties.
 Host createHost(java.lang.String name, java.lang.String appBase)
          Create, configure, and return a Host that will process all HTTP requests received from one of the associated Connectors, and directed to the specified virtual host.
 void destroy()
          Destroy servlet container (if any is running).
 int getDebug()
          Return the debugging detail level for this component.
 java.lang.String getInfo()
          Return descriptive information about this Server implementation and the corresponding version number, in the format <description>/<version>.
 Logger getLogger()
          Return the Logger for this component.
 java.lang.String getName()
          Retruns the Catalina component name.
 Realm getRealm()
          Return the default Realm for our Containers.
 java.lang.String getSocketFactory()
          Return the secure socket factory class name.
 int getState()
          Returns the state.
 java.lang.String getStateString()
          Returns a String representation of the state.
 boolean isUseNaming()
          Return true if naming is enabled.
 void postDeregister()
           
 void postRegister(java.lang.Boolean registrationDone)
           
 void preDeregister()
           
 javax.management.ObjectName preRegister(javax.management.MBeanServer server, javax.management.ObjectName name)
           
 void removeConnector(Connector connector)
          Remove the specified Connector from the set of defined Connectors.
 void removeContext(Context context)
          Remove the specified Context from the set of defined Contexts for its associated Host.
 void removeEngine(Engine engine)
          Remove the specified Engine from the set of defined Engines, along with all of its related Hosts and Contexts.
 void removeHost(Host host)
          Remove the specified Host, along with all of its related Contexts, from the set of defined Hosts for its associated Engine.
 void setDebug(int debug)
          Set the debugging detail level for this component.
 void setLogger(Logger logger)
          Set the Logger for this component.
 void setRealm(Realm realm)
          Set the default Realm for our Containers.
 void setSocketFactory(java.lang.String socketFactory)
          Set the secure socket factory class name.
 void setUseNaming(boolean useNaming)
          Enables or disables naming support.
 void start()
          Start the servlet container.
 void stop()
          Stop the servlet container.
 
クラス javax.management.NotificationBroadcasterSupport から継承したメソッド
addNotificationListener, getNotificationInfo, removeNotificationListener, sendNotification
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

EmbeddedManager

public EmbeddedManager()
メソッドの詳細

preRegister

public javax.management.ObjectName preRegister(javax.management.MBeanServer server,
                                               javax.management.ObjectName name)
                                        throws java.lang.Exception
定義:
インタフェース javax.management.MBeanRegistration 内の preRegister

postRegister

public void postRegister(java.lang.Boolean registrationDone)
定義:
インタフェース javax.management.MBeanRegistration 内の postRegister

preDeregister

public void preDeregister()
                   throws java.lang.Exception
定義:
インタフェース javax.management.MBeanRegistration 内の preDeregister

postDeregister

public void postDeregister()
定義:
インタフェース javax.management.MBeanRegistration 内の postDeregister

getName

public java.lang.String getName()
Retruns the Catalina component name.
定義:
インタフェース EmbeddedManagerMBean 内の getName

getState

public int getState()
Returns the state.
定義:
インタフェース EmbeddedManagerMBean 内の getState

getStateString

public java.lang.String getStateString()
Returns a String representation of the state.
定義:
インタフェース EmbeddedManagerMBean 内の getStateString

start

public void start()
Start the servlet container.
定義:
インタフェース EmbeddedManagerMBean 内の start
インタフェース org.apache.catalina.startup.EmbeddedManagerMBean からコピーされたタグ:
例外:
java.lang.IllegalStateException - if this component has already been started

stop

public void stop()
Stop the servlet container.
定義:
インタフェース EmbeddedManagerMBean 内の stop
インタフェース org.apache.catalina.startup.EmbeddedManagerMBean からコピーされたタグ:
例外:
java.lang.IllegalStateException - if this component has not been started

destroy

public void destroy()
Destroy servlet container (if any is running).
定義:
インタフェース EmbeddedManagerMBean 内の destroy

getDebug

public int getDebug()
Return the debugging detail level for this component.
定義:
インタフェース EmbeddedManagerMBean 内の getDebug

setDebug

public void setDebug(int debug)
Set the debugging detail level for this component.
定義:
インタフェース EmbeddedManagerMBean 内の setDebug
パラメータ:
debug - The new debugging detail level

isUseNaming

public boolean isUseNaming()
Return true if naming is enabled.
定義:
インタフェース EmbeddedManagerMBean 内の isUseNaming

setUseNaming

public void setUseNaming(boolean useNaming)
Enables or disables naming support.
定義:
インタフェース EmbeddedManagerMBean 内の setUseNaming
パラメータ:
useNaming - The new use naming value

getLogger

public Logger getLogger()
Return the Logger for this component.
定義:
インタフェース EmbeddedManagerMBean 内の getLogger

setLogger

public void setLogger(Logger logger)
Set the Logger for this component.
定義:
インタフェース EmbeddedManagerMBean 内の setLogger
パラメータ:
logger - The new logger

getRealm

public Realm getRealm()
Return the default Realm for our Containers.
定義:
インタフェース EmbeddedManagerMBean 内の getRealm

setRealm

public void setRealm(Realm realm)
Set the default Realm for our Containers.
定義:
インタフェース EmbeddedManagerMBean 内の setRealm
パラメータ:
realm - The new default realm

getSocketFactory

public java.lang.String getSocketFactory()
Return the secure socket factory class name.
定義:
インタフェース EmbeddedManagerMBean 内の getSocketFactory

setSocketFactory

public void setSocketFactory(java.lang.String socketFactory)
Set the secure socket factory class name.
定義:
インタフェース EmbeddedManagerMBean 内の setSocketFactory
パラメータ:
socketFactory - The new secure socket factory class name

addConnector

public void addConnector(Connector connector)
Add a new Connector to the set of defined Connectors. The newly added Connector will be associated with the most recently added Engine.
定義:
インタフェース EmbeddedManagerMBean 内の addConnector
パラメータ:
connector - The connector to be added
例外:
java.lang.IllegalStateException - if no engines have been added yet

addEngine

public void addEngine(Engine engine)
Add a new Engine to the set of defined Engines.
定義:
インタフェース EmbeddedManagerMBean 内の addEngine
パラメータ:
engine - The engine to be added

createConnector

public Connector createConnector(java.net.InetAddress address,
                                 int port,
                                 boolean secure)
Create, configure, and return a new TCP/IP socket connector based on the specified properties.
定義:
インタフェース EmbeddedManagerMBean 内の createConnector
パラメータ:
address - InetAddress to listen to, or null to listen on all address on this server
port - Port number to listen to
secure - Should this port be SSL-enabled?

createContext

public Context createContext(java.lang.String path,
                             java.lang.String docBase)
Create, configure, and return a Context that will process all HTTP requests received from one of the associated Connectors, and directed to the specified context path on the virtual host to which this Context is connected.

After you have customized the properties, listeners, and Valves for this Context, you must attach it to the corresponding Host by calling:

   host.addChild(context);
 
which will also cause the Context to be started if the Host has already been started.
定義:
インタフェース EmbeddedManagerMBean 内の createContext
パラメータ:
path - Context path of this application ("" for the default application for this host, must start with a slash otherwise)
docBase - Absolute pathname to the document base directory for this web application
例外:
java.lang.IllegalArgumentException - if an invalid parameter is specified

createEngine

public Engine createEngine()
Create, configure, and return an Engine that will process all HTTP requests received from one of the associated Connectors, based on the specified properties.
定義:
インタフェース EmbeddedManagerMBean 内の createEngine

createHost

public Host createHost(java.lang.String name,
                       java.lang.String appBase)
Create, configure, and return a Host that will process all HTTP requests received from one of the associated Connectors, and directed to the specified virtual host.

After you have customized the properties, listeners, and Valves for this Host, you must attach it to the corresponding Engine by calling:

   engine.addChild(host);
 
which will also cause the Host to be started if the Engine has already been started. If this is the default (or only) Host you will be defining, you may also tell the Engine to pass all requests not assigned to another virtual host to this one:
   engine.setDefaultHost(host.getName());
 
定義:
インタフェース EmbeddedManagerMBean 内の createHost
パラメータ:
name - Canonical name of this virtual host
appBase - Absolute pathname to the application base directory for this virtual host
例外:
java.lang.IllegalArgumentException - if an invalid parameter is specified

getInfo

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

removeConnector

public void removeConnector(Connector connector)
Remove the specified Connector from the set of defined Connectors.
定義:
インタフェース EmbeddedManagerMBean 内の removeConnector
パラメータ:
connector - The Connector to be removed

removeContext

public void removeContext(Context context)
Remove the specified Context from the set of defined Contexts for its associated Host. If this is the last Context for this Host, the Host will also be removed.
定義:
インタフェース EmbeddedManagerMBean 内の removeContext
パラメータ:
context - The Context to be removed

removeEngine

public void removeEngine(Engine engine)
Remove the specified Engine from the set of defined Engines, along with all of its related Hosts and Contexts. All associated Connectors are also removed.
定義:
インタフェース EmbeddedManagerMBean 内の removeEngine
パラメータ:
engine - The Engine to be removed

removeHost

public void removeHost(Host host)
Remove the specified Host, along with all of its related Contexts, from the set of defined Hosts for its associated Engine. If this is the last Host for this Engine, the Engine will also be removed.
定義:
インタフェース EmbeddedManagerMBean 内の removeHost
パラメータ:
host - The Host to be removed


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