Class WebServerComponent
- java.lang.Object
-
- org.apache.activemq.artemis.component.WebServerComponent
-
- All Implemented Interfaces:
org.apache.activemq.artemis.components.ExternalComponent,org.apache.activemq.artemis.core.server.ActiveMQComponent,org.apache.activemq.artemis.core.server.ServiceComponent
public class WebServerComponent extends java.lang.Object implements org.apache.activemq.artemis.components.ExternalComponent
-
-
Constructor Summary
Constructors Constructor Description WebServerComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidcleanupWebTemporaryFiles(java.util.List<org.eclipse.jetty.webapp.WebAppContext> webContexts)voidconfigure(org.apache.activemq.artemis.dto.ComponentDTO config, java.lang.String artemisInstance, java.lang.String artemisHome)intgetPort()Deprecated.intgetPort(int connectorIndex)java.util.List<org.eclipse.jetty.webapp.WebAppContext>getWebContexts()voidinternalStop()booleanisStarted()voidstart()voidstop()voidstop(boolean isShutdown)
-
-
-
Method Detail
-
configure
public void configure(org.apache.activemq.artemis.dto.ComponentDTO config, java.lang.String artemisInstance, java.lang.String artemisHome) throws java.lang.Exception- Specified by:
configurein interfaceorg.apache.activemq.artemis.components.ExternalComponent- Throws:
java.lang.Exception
-
start
public void start() throws java.lang.Exception- Specified by:
startin interfaceorg.apache.activemq.artemis.core.server.ActiveMQComponent- Throws:
java.lang.Exception
-
internalStop
public void internalStop() throws java.lang.Exception- Throws:
java.lang.Exception
-
cleanupWebTemporaryFiles
public void cleanupWebTemporaryFiles(java.util.List<org.eclipse.jetty.webapp.WebAppContext> webContexts) throws java.lang.Exception- Throws:
java.lang.Exception
-
isStarted
public boolean isStarted()
- Specified by:
isStartedin interfaceorg.apache.activemq.artemis.core.server.ActiveMQComponent
-
getPort
@Deprecated public int getPort()
Deprecated.- Returns:
- started server's port number; useful if it was specified as 0 (to use a random port)
-
getPort
public int getPort(int connectorIndex)
-
stop
public void stop() throws java.lang.Exception- Specified by:
stopin interfaceorg.apache.activemq.artemis.core.server.ActiveMQComponent- Throws:
java.lang.Exception
-
stop
public void stop(boolean isShutdown) throws java.lang.Exception- Specified by:
stopin interfaceorg.apache.activemq.artemis.core.server.ServiceComponent- Throws:
java.lang.Exception
-
getWebContexts
public java.util.List<org.eclipse.jetty.webapp.WebAppContext> getWebContexts()
-
-