com.caucho.server.admin
Class ManagerClient

java.lang.Object
  extended by com.caucho.server.admin.ManagerClient

public class ManagerClient
extends java.lang.Object

Deploy Client API


Constructor Summary
ManagerClient()
           
ManagerClient(ActorSender bamClient)
           
ManagerClient(java.lang.String serverId)
           
ManagerClient(java.lang.String host, int serverPort, int httpPort, java.lang.String userName, java.lang.String password)
           
 
Method Summary
 java.lang.String addLicense(java.lang.String licenseContent, java.lang.String fileName, boolean overwrite, boolean restart)
           
 java.lang.String addUser(java.lang.String user, char[] password, java.lang.String[] roles)
           
 java.lang.String callJmx(java.lang.String pattern, java.lang.String operation, int opIndex, java.lang.String[] trailingArgs)
           
 void close()
           
 java.lang.String doHeapDump(boolean raw)
           
 java.lang.String doJmxDump()
           
 java.lang.String doThreadDump()
           
 ActorSender getSender()
           
 java.lang.String getUrl()
           
 java.lang.String listJmx(java.lang.String pattern, boolean isPrintAttributes, boolean isPrintValues, boolean isPrintOperations, boolean isAll, boolean isPlatform)
           
 java.lang.String listRestarts(long period)
           
 java.lang.String listUsers()
           
 java.lang.String pdfReport(java.lang.String path, java.lang.String report, long period, java.lang.String logDirectory, long profileTime, long samplePeriod, boolean isSnapshot, boolean isWatchdog)
           
 java.lang.String profile(long activeTime, long period, int depth)
           
protected  java.io.Serializable query(java.io.Serializable query)
           
protected  java.io.Serializable query(java.io.Serializable query, long timeout)
           
 java.lang.String removeUser(java.lang.String user)
           
 java.lang.String setJmx(java.lang.String pattern, java.lang.String attribute, java.lang.String value)
           
 java.lang.String setLogLevel(java.lang.String[] loggers, java.util.logging.Level logLevel, long period)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ManagerClient

public ManagerClient()

ManagerClient

public ManagerClient(java.lang.String serverId)

ManagerClient

public ManagerClient(ActorSender bamClient)

ManagerClient

public ManagerClient(java.lang.String host,
                     int serverPort,
                     int httpPort,
                     java.lang.String userName,
                     java.lang.String password)
Method Detail

getUrl

public java.lang.String getUrl()

getSender

public ActorSender getSender()

addUser

public java.lang.String addUser(java.lang.String user,
                                char[] password,
                                java.lang.String[] roles)

removeUser

public java.lang.String removeUser(java.lang.String user)

listUsers

public java.lang.String listUsers()

doThreadDump

public java.lang.String doThreadDump()

doHeapDump

public java.lang.String doHeapDump(boolean raw)

doJmxDump

public java.lang.String doJmxDump()

setLogLevel

public java.lang.String setLogLevel(java.lang.String[] loggers,
                                    java.util.logging.Level logLevel,
                                    long period)

listJmx

public java.lang.String listJmx(java.lang.String pattern,
                                boolean isPrintAttributes,
                                boolean isPrintValues,
                                boolean isPrintOperations,
                                boolean isAll,
                                boolean isPlatform)

setJmx

public java.lang.String setJmx(java.lang.String pattern,
                               java.lang.String attribute,
                               java.lang.String value)

callJmx

public java.lang.String callJmx(java.lang.String pattern,
                                java.lang.String operation,
                                int opIndex,
                                java.lang.String[] trailingArgs)

pdfReport

public java.lang.String pdfReport(java.lang.String path,
                                  java.lang.String report,
                                  long period,
                                  java.lang.String logDirectory,
                                  long profileTime,
                                  long samplePeriod,
                                  boolean isSnapshot,
                                  boolean isWatchdog)

profile

public java.lang.String profile(long activeTime,
                                long period,
                                int depth)

listRestarts

public java.lang.String listRestarts(long period)

addLicense

public java.lang.String addLicense(java.lang.String licenseContent,
                                   java.lang.String fileName,
                                   boolean overwrite,
                                   boolean restart)

query

protected java.io.Serializable query(java.io.Serializable query)

query

protected java.io.Serializable query(java.io.Serializable query,
                                     long timeout)

close

public void close()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object