com.caucho.server.resin
Class ManagementAdmin

java.lang.Object
  extended by com.caucho.management.server.AbstractManagedObject
      extended by com.caucho.server.resin.ManagementAdmin
All Implemented Interfaces:
ManagedObjectMXBean, ManagementMXBean

public class ManagementAdmin
extends AbstractManagedObject
implements ManagementMXBean


Constructor Summary
ManagementAdmin(Resin resin)
          Creates the admin object and registers with JMX.
 
Method Summary
 java.lang.String callJmx(java.lang.String serverId, java.lang.String pattern, java.lang.String operation, java.lang.String operationIdx, java.lang.String values)
           
 java.lang.String dumpJmx(java.lang.String serverId)
           
 java.lang.String dumpThreads(java.lang.String serverId)
           
 java.lang.String getName()
          The JMX name property of the mbean.
 java.lang.String getStatus(java.lang.String serverId)
           
 java.lang.String hello()
          Test interface
 java.lang.String listJmx(java.lang.String serverId, java.lang.String pattern, boolean isPrintAttributes, boolean isPrintValues, boolean isPrintOperations, boolean isPrintAllBeans, boolean isPrintPlatformBeans)
           
 java.lang.String logLevel(java.lang.String serverId, java.lang.String loggersValue, java.lang.String levelValue, java.lang.String activeTime)
           
 java.lang.String pdfReport(java.lang.String serverId, java.lang.String path, java.lang.String report, java.lang.String periodStr, java.lang.String logDirectory, java.lang.String profileTimeStr, java.lang.String samplePeriodStr, boolean isSnapshot, boolean isWatchdog)
           
 java.lang.String setJmx(java.lang.String serverId, java.lang.String pattern, java.lang.String attribute, java.lang.String value)
           
 java.io.InputStream test(java.lang.String value, java.io.InputStream is)
           
 
Methods inherited from class com.caucho.management.server.AbstractManagedObject
addObjectNameProperties, getObjectName, getType, registerSelf, toString, unregisterSelf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.caucho.management.server.ManagedObjectMXBean
getObjectName, getType
 

Constructor Detail

ManagementAdmin

public ManagementAdmin(Resin resin)
Creates the admin object and registers with JMX.

Method Detail

getName

public java.lang.String getName()
Description copied from class: AbstractManagedObject
The JMX name property of the mbean.

Specified by:
getName in interface ManagedObjectMXBean
Specified by:
getName in class AbstractManagedObject

hello

public java.lang.String hello()
Test interface

Specified by:
hello in interface ManagementMXBean

listJmx

public java.lang.String listJmx(java.lang.String serverId,
                                java.lang.String pattern,
                                boolean isPrintAttributes,
                                boolean isPrintValues,
                                boolean isPrintOperations,
                                boolean isPrintAllBeans,
                                boolean isPrintPlatformBeans)
Specified by:
listJmx in interface ManagementMXBean

logLevel

public java.lang.String logLevel(java.lang.String serverId,
                                 java.lang.String loggersValue,
                                 java.lang.String levelValue,
                                 java.lang.String activeTime)
Specified by:
logLevel in interface ManagementMXBean

dumpThreads

public java.lang.String dumpThreads(java.lang.String serverId)
Specified by:
dumpThreads in interface ManagementMXBean

pdfReport

public java.lang.String pdfReport(java.lang.String serverId,
                                  java.lang.String path,
                                  java.lang.String report,
                                  java.lang.String periodStr,
                                  java.lang.String logDirectory,
                                  java.lang.String profileTimeStr,
                                  java.lang.String samplePeriodStr,
                                  boolean isSnapshot,
                                  boolean isWatchdog)
Specified by:
pdfReport in interface ManagementMXBean

setJmx

public java.lang.String setJmx(java.lang.String serverId,
                               java.lang.String pattern,
                               java.lang.String attribute,
                               java.lang.String value)
Specified by:
setJmx in interface ManagementMXBean

callJmx

public java.lang.String callJmx(java.lang.String serverId,
                                java.lang.String pattern,
                                java.lang.String operation,
                                java.lang.String operationIdx,
                                java.lang.String values)
Specified by:
callJmx in interface ManagementMXBean

dumpJmx

public java.lang.String dumpJmx(java.lang.String serverId)
Specified by:
dumpJmx in interface ManagementMXBean

getStatus

public java.lang.String getStatus(java.lang.String serverId)
Specified by:
getStatus in interface ManagementMXBean

test

public java.io.InputStream test(java.lang.String value,
                                java.io.InputStream is)
                         throws java.io.IOException
Specified by:
test in interface ManagementMXBean
Throws:
java.io.IOException