|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.geronimo.jetty6.JettyContainerImpl
public class JettyContainerImpl
Field Summary | |
---|---|
static GBeanInfo |
GBEAN_INFO
|
Constructor Summary | |
---|---|
JettyContainerImpl(String objectName,
WebManager manager,
String jettyHome,
ServerInfo serverInfo)
|
Method Summary | |
---|---|
void |
addContext(org.mortbay.jetty.handler.AbstractHandlerContainer context)
|
void |
addListener(org.mortbay.jetty.Connector listener)
|
InternalJAASJettyRealm |
addRealm(String realmName)
|
void |
addWebService(String contextPath,
String[] virtualHosts,
WebServiceContainer webServiceContainer,
String securityRealmName,
String realmName,
String transportGuarantee,
String authMethod,
ClassLoader classLoader)
|
void |
doFail()
Fails the GBean. |
void |
doStart()
Starts the GBean. |
void |
doStop()
Stops the target. |
long |
getCollectStatisticsStarted()
|
NetworkConnector[] |
getConnectors()
Gets any existing connectors associated with this network container. |
NetworkConnector[] |
getConnectors(String protocol)
Gets any existing connectors for this network container for the specified protocol. |
static GBeanInfo |
getGBeanInfo()
|
String |
getObjectName()
Gets the unique name of this object. |
org.mortbay.jetty.RequestLog |
getRequestLog()
|
Stats |
getStats()
Gets the statistics collected for this class. |
boolean |
isEventProvider()
Determines if this object implemnts the event provider type defined in the J2EE Management specification. |
boolean |
isStateManageable()
Determines if this object implements the state manageable type defined in the J2EE Management specification. |
boolean |
isStatisticsProvider()
Determines if this object implemnts the statistics provider type defined in the J2EE Management specification. |
boolean |
isStatsOn()
|
void |
removeContext(org.mortbay.jetty.handler.AbstractHandlerContainer context)
|
void |
removeListener(org.mortbay.jetty.Connector listener)
|
void |
removeRealm(String realmName)
|
void |
removeWebService(String contextPath)
|
void |
resetStats()
Reset the startTime for all statistics |
File |
resolveToJettyHome(String workDir)
|
void |
setRequestLog(org.mortbay.jetty.RequestLog log)
|
void |
setStatsOn(boolean on)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final GBeanInfo GBEAN_INFO
Constructor Detail |
---|
public JettyContainerImpl(String objectName, WebManager manager, String jettyHome, ServerInfo serverInfo)
Method Detail |
---|
public String getObjectName()
J2EEManagedObject
getObjectName
in interface J2EEManagedObject
public boolean isStateManageable()
J2EEManagedObject
isStateManageable
in interface J2EEManagedObject
public boolean isStatisticsProvider()
J2EEManagedObject
isStatisticsProvider
in interface J2EEManagedObject
public boolean isEventProvider()
J2EEManagedObject
isEventProvider
in interface J2EEManagedObject
public NetworkConnector[] getConnectors()
NetworkContainer
getConnectors
in interface NetworkContainer
public NetworkConnector[] getConnectors(String protocol)
NetworkContainer
getConnectors
in interface NetworkContainer
protocol
- A protocol as returned by getSupportedProtocolspublic void resetStats()
StatisticsProvider
resetStats
in interface JettyContainer
resetStats
in interface StatisticsProvider
public long getCollectStatisticsStarted()
getCollectStatisticsStarted
in interface JettyContainer
public boolean isStatsOn()
isStatsOn
in interface JettyContainer
isStatsOn
in interface LazyStatisticsProvider
public void setStatsOn(boolean on)
setStatsOn
in interface JettyContainer
setStatsOn
in interface LazyStatisticsProvider
public Stats getStats()
StatisticsProvider
getStats
in interface StatisticsProvider
public void addListener(org.mortbay.jetty.Connector listener)
addListener
in interface JettyContainer
public void removeListener(org.mortbay.jetty.Connector listener)
removeListener
in interface JettyContainer
public void addContext(org.mortbay.jetty.handler.AbstractHandlerContainer context)
addContext
in interface JettyContainer
public void removeContext(org.mortbay.jetty.handler.AbstractHandlerContainer context)
removeContext
in interface JettyContainer
public InternalJAASJettyRealm addRealm(String realmName)
addRealm
in interface JettyContainer
public void removeRealm(String realmName)
removeRealm
in interface JettyContainer
public void addWebService(String contextPath, String[] virtualHosts, WebServiceContainer webServiceContainer, String securityRealmName, String realmName, String transportGuarantee, String authMethod, ClassLoader classLoader) throws Exception
addWebService
in interface SoapHandler
Exception
public void removeWebService(String contextPath)
removeWebService
in interface SoapHandler
public void setRequestLog(org.mortbay.jetty.RequestLog log)
setRequestLog
in interface JettyContainer
public File resolveToJettyHome(String workDir)
resolveToJettyHome
in interface JettyContainer
public org.mortbay.jetty.RequestLog getRequestLog()
getRequestLog
in interface JettyContainer
public void doStart() throws Exception
GBeanLifecycle
doStart
in interface GBeanLifecycle
Exception
- if the target failed to start; this will cause a transition to the failed statepublic void doStop()
GBeanLifecycle
doStop
in interface GBeanLifecycle
public void doFail()
GBeanLifecycle
doFail
in interface GBeanLifecycle
public static GBeanInfo getGBeanInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |