public class JolokiaMuleAgent extends org.mule.AbstractAgent implements MuleAgentConfig
Modifier and Type | Field and Description |
---|---|
protected MuleAgentHttpServer |
server |
Modifier | Constructor and Description |
---|---|
protected |
JolokiaMuleAgent() |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Unused lifecycle hook
|
int |
getDebugMaxEntries()
How many debug entries to keep within the debug history
|
String |
getDescription()
Description including agent URL
|
int |
getHistoryMaxEntries()
Maximum number of entries to keep in the call history
|
String |
getHost()
Hostname to bind the server to or
null if
the default jetty host is to be used |
int |
getMaxCollectionSize()
Maximum collection size after which a collection is trunctated for
a return value
|
int |
getMaxDepth()
How many level deep to go when serializing beans for a return value
|
int |
getMaxObjects()
Maximum number of object to serialize for a response
|
String |
getPassword()
Password when authentication is used
|
int |
getPort()
Port to bind to
|
String |
getUser()
User when authentication is active
|
void |
initialise()
Initialise the agent and start up an internal jetty server
|
boolean |
isDebug()
Whether debug is switched on
|
void |
registered()
Lifecycle hook for Mule 2, unused
|
void |
setDebug(boolean pDebug) |
void |
setDebugMaxEntries(int pDebugMaxEntries) |
void |
setHistoryMaxEntries(int pHistoryMaxEntries) |
void |
setHost(String pHost) |
void |
setMaxCollectionSize(int pMaxCollectionSize) |
void |
setMaxDepth(int pMaxDepth) |
void |
setMaxObjects(int pMaxObjects) |
void |
setPassword(String pPassword) |
void |
setPort(int pPort) |
void |
setUser(String pUser) |
void |
start()
Lifecycle method called by mule during startup
|
void |
stop()
Lifecycle hook called by Mule while shuttding down the agent
|
void |
unregistered()
Lifecycle hook for Mule 2, unused
|
protected MuleAgentHttpServer server
public void start() throws org.mule.api.MuleException
start
in interface org.mule.api.lifecycle.Startable
org.mule.api.MuleException
- if something failspublic void stop() throws org.mule.api.MuleException
stop
in interface org.mule.api.lifecycle.Stoppable
org.mule.api.MuleException
- if something failspublic String getDescription()
getDescription
in interface org.mule.api.agent.Agent
getDescription
in class org.mule.AbstractAgent
public void dispose()
dispose
in interface org.mule.api.lifecycle.Disposable
public void registered()
public void unregistered()
public void initialise() throws org.mule.api.lifecycle.InitialisationException
initialise
in interface org.mule.api.lifecycle.Initialisable
org.mule.api.lifecycle.InitialisationException
public String getHost()
MuleAgentConfig
null
if
the default jetty host is to be usedgetHost
in interface MuleAgentConfig
public void setHost(String pHost)
public int getPort()
MuleAgentConfig
getPort
in interface MuleAgentConfig
public void setPort(int pPort)
public String getUser()
MuleAgentConfig
getUser
in interface MuleAgentConfig
public void setUser(String pUser)
public String getPassword()
MuleAgentConfig
getPassword
in interface MuleAgentConfig
public void setPassword(String pPassword)
public boolean isDebug()
MuleAgentConfig
isDebug
in interface MuleAgentConfig
public void setDebug(boolean pDebug)
public int getHistoryMaxEntries()
MuleAgentConfig
getHistoryMaxEntries
in interface MuleAgentConfig
public void setHistoryMaxEntries(int pHistoryMaxEntries)
public int getDebugMaxEntries()
MuleAgentConfig
getDebugMaxEntries
in interface MuleAgentConfig
public void setDebugMaxEntries(int pDebugMaxEntries)
public int getMaxDepth()
MuleAgentConfig
getMaxDepth
in interface MuleAgentConfig
public void setMaxDepth(int pMaxDepth)
public int getMaxCollectionSize()
MuleAgentConfig
getMaxCollectionSize
in interface MuleAgentConfig
public void setMaxCollectionSize(int pMaxCollectionSize)
public int getMaxObjects()
MuleAgentConfig
getMaxObjects
in interface MuleAgentConfig
public void setMaxObjects(int pMaxObjects)
Copyright © 2017. All rights reserved.