public class JMXService extends SimpleActor
Constructor and Description |
---|
JMXService(ProManagement management) |
Modifier and Type | Method and Description |
---|---|
ManagedBroker |
getBroker()
Returns the owning broker
|
java.lang.Object |
invoke(java.lang.String name,
java.lang.String opName,
java.lang.Object[] args,
java.lang.String[] sig) |
void |
query(long id,
java.lang.String to,
java.lang.String from,
java.io.Serializable query)
Receives a query call, acting as a service for
the query.
|
java.lang.String[] |
query(java.lang.String name) |
void |
setEnable(boolean isEnable) |
void |
setPassword(java.lang.String password) |
void |
start()
Start the JMXService
|
getActor, getAddress, getMailbox, getSender, setAddress, setBroker, setMailbox
isClosed, message, messageError, queryError, queryResult, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isClosed, message, messageError, queryError, queryResult
public JMXService(ProManagement management)
public ManagedBroker getBroker()
MessageStream
getBroker
in interface ActorHolder
getBroker
in interface MessageStream
getBroker
in class SimpleActor
public void setEnable(boolean isEnable)
public void setPassword(java.lang.String password)
public void start()
public void query(long id, java.lang.String to, java.lang.String from, java.io.Serializable query)
AbstractMessageStream
query
in interface MessageStream
query
in class AbstractMessageStream
id
- the query identifier used to match requests with responsesto
- the service actor's addressfrom
- the client actor's addressquery
- the query payloadpublic java.lang.String[] query(java.lang.String name)
public java.lang.Object invoke(java.lang.String name, java.lang.String opName, java.lang.Object[] args, java.lang.String[] sig)