org.jolokia.jvmagent
Class JolokiaServer

java.lang.Object
  extended by org.jolokia.jvmagent.JolokiaServer

public class JolokiaServer
extends Object

Factory for creating the HttpServer used for exporting the Jolokia protocol

Since:
12.08.11
Author:
roland

Constructor Summary
JolokiaServer(ServerConfig pConfig)
          Create the Jolokia server, i.e.
 
Method Summary
 String getUrl()
          URL how this agent can be reached from the outsid.
 void start()
          Start HttpServer
 void stop()
          Stop the HTTP server
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JolokiaServer

public JolokiaServer(ServerConfig pConfig)
              throws IOException
Create the Jolokia server, i.e. the HttpServer for serving Jolokia requests.

Parameters:
pConfig - configuration for this server
Throws:
IOException - if initialization fails
Method Detail

start

public void start()
Start HttpServer


stop

public void stop()
Stop the HTTP server


getUrl

public String getUrl()
URL how this agent can be reached from the outsid.

Returns:
the agent URL


Copyright © 2012. All Rights Reserved.