com.caucho.server.admin
Class JmxServiceImpl

java.lang.Object
  extended by com.caucho.bam.stream.AbstractMessageStream
      extended by com.caucho.bam.actor.SimpleActor
          extended by com.caucho.server.admin.JmxServiceImpl
All Implemented Interfaces:
Actor, ActorHolder, ManagedActor, MessageStream
Direct Known Subclasses:
JmxService

public class JmxServiceImpl
extends SimpleActor

Remote administration service for JMX


Constructor Summary
protected JmxServiceImpl()
           
 
Method Summary
 ManagedBroker getBroker()
          Returns the owning broker
 javax.management.MBeanInfo getMBeanInfo(java.lang.String name)
           
 void init()
          Start the JMXService
 java.lang.Object invoke(java.lang.String name, java.lang.String opName, java.lang.Object[] args, java.lang.String[] sig)
           
 java.util.HashMap<java.lang.String,java.lang.Object> lookup(java.lang.String name)
           
 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)
           
 
Methods inherited from class com.caucho.bam.actor.SimpleActor
getActor, getAddress, getMailbox, getSender, setAddress, setBroker, setMailbox
 
Methods inherited from class com.caucho.bam.stream.AbstractMessageStream
isClosed, message, messageError, queryError, queryResult, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.caucho.bam.stream.MessageStream
isClosed, message, messageError, queryError, queryResult
 

Constructor Detail

JmxServiceImpl

protected JmxServiceImpl()
Method Detail

getBroker

public ManagedBroker getBroker()
Description copied from interface: MessageStream
Returns the owning broker

Specified by:
getBroker in interface ActorHolder
Specified by:
getBroker in interface MessageStream
Overrides:
getBroker in class SimpleActor

setEnable

public void setEnable(boolean isEnable)

init

@PostConstruct
public void init()
Start the JMXService


query

public void query(long id,
                  java.lang.String to,
                  java.lang.String from,
                  java.io.Serializable query)
Description copied from class: AbstractMessageStream
Receives a query call, acting as a service for the query. The default implementation returns a feature-not-implemented QueryError message to the client.

Specified by:
query in interface MessageStream
Overrides:
query in class AbstractMessageStream
Parameters:
id - the query identifier used to match requests with responses
to - the service actor's address
from - the client actor's address
query - the query payload

getMBeanInfo

public javax.management.MBeanInfo getMBeanInfo(java.lang.String name)

lookup

public java.util.HashMap<java.lang.String,java.lang.Object> lookup(java.lang.String name)

query

public java.lang.String[] query(java.lang.String name)

invoke

public java.lang.Object invoke(java.lang.String name,
                               java.lang.String opName,
                               java.lang.Object[] args,
                               java.lang.String[] sig)