public abstract class EclipseMuleAgentHttpServer extends Object implements MuleAgentHttpServer
Modifier and Type | Method and Description |
---|---|
protected abstract org.eclipse.jetty.server.Connector |
createConnector(org.eclipse.jetty.server.Server pServer)
Create the one and only HTTP connector.
|
protected org.eclipse.jetty.server.Server |
getServer(MuleAgentConfig pConfig)
Get the agent server for suing it with mule
|
void |
start()
Startup the HTTP server
|
void |
stop()
Stop the internal HTTP server
|
public void start() throws org.mule.api.lifecycle.StartException
start
in interface MuleAgentHttpServer
org.mule.api.lifecycle.StartException
- if starting failspublic void stop() throws org.mule.api.lifecycle.StopException
stop
in interface MuleAgentHttpServer
org.mule.api.lifecycle.StopException
- when stopping failsprotected org.eclipse.jetty.server.Server getServer(MuleAgentConfig pConfig)
pConfig
- agent configurationprotected abstract org.eclipse.jetty.server.Connector createConnector(org.eclipse.jetty.server.Server pServer)
pServer
- the http serverCopyright © 2016. All rights reserved.