|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.web.tomcat.tc5.StandardService
Standard implementation of the Service
interface. The
associated Container is generally an instance of Engine, but this is
not required.
Field Summary | |
protected ObjectName (src) |
controller
|
protected java.lang.String |
domain
|
protected MBeanServer (src) |
mserver
|
protected ObjectName (src) |
oname
|
protected java.lang.String |
suffix
|
protected java.beans.PropertyChangeSupport |
support
The property change support for this component. |
protected java.lang.String |
type
|
Constructor Summary | |
StandardService()
|
Method Summary | |
void |
addConnector(Connector connector)
Add a new Connector to the set of defined Connectors, and associate it with this Service's Container. |
void |
addLifecycleListener(LifecycleListener listener)
Add a LifecycleEvent listener to this component. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a property change listener to this component. |
void |
destroy()
|
Connector[] |
findConnectors()
Find and return the set of Connectors associated with this Service. |
LifecycleListener[] |
findLifecycleListeners()
Get the lifecycle listeners associated with this lifecycle. |
ObjectName (src) [] |
getConnectorNames()
|
Container |
getContainer()
Return the Container that handles requests for all
Connectors associated with this Service. |
ObjectName (src) |
getContainerName()
|
int |
getDebug()
Return the debugging detail level of this component. |
java.lang.String |
getDomain()
|
java.lang.String |
getInfo()
Return descriptive information about this Service implementation and the corresponding version number, in the format <description>/<version> . |
java.lang.String |
getName()
Return the name of this Service. |
ObjectName (src) |
getObjectName()
|
Server |
getServer()
Return the Server with which we are associated (if any). |
void |
init()
|
void |
initialize()
Invoke a pre-startup initialization. |
void |
postDeregister()
This method is called by the MBeanServer after deregistration takes place. |
void |
postRegister(java.lang.Boolean registrationDone)
This method is called by the MBeanServer after registration takes place or when registration fails. |
void |
preDeregister()
This method is called by the MBeanServer before deregistration takes place. |
ObjectName (src) |
preRegister(MBeanServer (src) server,
ObjectName (src) name)
This method is called by the MBeanServer before registration takes place. |
void |
removeConnector(Connector connector)
Remove the specified Connector from the set associated from this Service. |
void |
removeLifecycleListener(LifecycleListener listener)
Remove a LifecycleEvent listener from this component. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove a property change listener from this component. |
void |
setContainer(Container container)
Set the Container that handles requests for all
Connectors associated with this Service. |
void |
setDebug(int debug)
Set the debugging detail level of this component. |
void |
setName(java.lang.String name)
Set the name of this Service. |
void |
setServer(Server server)
Set the Server with which we are associated (if any). |
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 |
Field Detail |
protected java.beans.PropertyChangeSupport support
protected java.lang.String type
protected java.lang.String domain
protected java.lang.String suffix
protected ObjectName (src) oname
protected ObjectName (src) controller
protected MBeanServer (src) mserver
Constructor Detail |
public StandardService()
Method Detail |
public Container getContainer()
Container
that handles requests for all
Connectors
associated with this Service.
public void setContainer(Container container)
Container
that handles requests for all
Connectors
associated with this Service.
container
- The new Containerpublic ObjectName (src) getContainerName()
public int getDebug()
public void setDebug(int debug)
debug
- The new debugging detail levelpublic java.lang.String getInfo()
<description>/<version>
.
public java.lang.String getName()
public void setName(java.lang.String name)
name
- The new service namepublic Server getServer()
Server
with which we are associated (if any).
public void setServer(Server server)
Server
with which we are associated (if any).
server
- The server that owns this Servicepublic void addConnector(Connector connector)
connector
- The Connector to be addedpublic ObjectName (src) [] getConnectorNames()
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The listener to addpublic Connector[] findConnectors()
public void removeConnector(Connector connector)
connector
- The Connector to be removedpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The listener to removepublic java.lang.String toString()
public void addLifecycleListener(LifecycleListener listener)
listener
- The listener to addpublic LifecycleListener[] findLifecycleListeners()
public void removeLifecycleListener(LifecycleListener listener)
listener
- The listener to removepublic void start() throws LifecycleException
LifecycleException
- if this component detects a fatal error
that prevents this component from being usedpublic void stop() throws LifecycleException
LifecycleException
- if this component detects a fatal error
that needs to be reportedpublic void initialize() throws LifecycleException
LifecycleException
public void destroy() throws LifecycleException
LifecycleException
public void init()
public ObjectName (src) getObjectName()
public java.lang.String getDomain()
public ObjectName (src) preRegister(MBeanServer (src) server, ObjectName (src) name) throws java.lang.Exception
MBeanRegistration (src)
The MBean can stop the registration by throwing an exception.The exception is forwarded to the invoker wrapped in an MBeanRegistrationException.
preRegister
in interface MBeanRegistration (src)
java.lang.Exception
- for any error, the MBean is not registered.public void postRegister(java.lang.Boolean registrationDone)
MBeanRegistration (src)
postRegister
in interface MBeanRegistration (src)
registrationDone
- the MBeanServer passes true when the
MBean was registered, false otherwise.public void preDeregister() throws java.lang.Exception
MBeanRegistration (src)
The MBean can throw an exception, this will stop the deregistration. The exception is forwarded to the invoker wrapped in an MBeanRegistrationException.
preDeregister
in interface MBeanRegistration (src)
java.lang.Exception
public void postDeregister()
MBeanRegistration (src)
postDeregister
in interface MBeanRegistration (src)
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |