com.caucho.server.admin
Class JMXService

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

public class JMXService
extends SimpleActor

Remote administration service for JMX


Constructor Summary
JMXService(ProManagement management)
           
 
Method Summary
 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
 
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

JMXService

public JMXService(ProManagement management)
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)

setPassword

public void setPassword(java.lang.String password)

start

public void start()
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

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)