public class ManagementAdmin extends AbstractManagedObject implements ManagementMXBean
Constructor and Description |
---|
ManagementAdmin(Resin resin)
Creates the admin object and registers with JMX.
|
Modifier and Type | Method and Description |
---|---|
StringQueryReply |
addLicense(java.lang.String serverId,
boolean isOverwrite,
java.lang.String to,
boolean isRestart,
java.io.InputStream in) |
AddUserQueryReply |
addUser(java.lang.String serverId,
java.lang.String user,
java.lang.String password,
java.lang.String rolesStr) |
JmxCallQueryReply |
callJmx(java.lang.String serverId,
java.lang.String pattern,
java.lang.String operation,
java.lang.String operationIdx,
java.lang.String values) |
java.io.InputStream |
configCat(java.lang.String serverId,
java.lang.String name,
java.lang.String stage,
java.lang.String version) |
java.lang.String |
configDeploy(java.lang.String serverId,
java.lang.String stage,
java.lang.String version,
java.lang.String message,
java.io.InputStream is) |
java.lang.String[] |
configLs(java.lang.String serverId,
java.lang.String name,
java.lang.String stage,
java.lang.String version) |
java.lang.String |
configUndeploy(java.lang.String serverId,
java.lang.String stage,
java.lang.String version,
java.lang.String message) |
java.lang.String |
deployCopy(java.lang.String serverId,
java.lang.String sourceContext,
java.lang.String sourceHost,
java.lang.String sourceStage,
java.lang.String sourceVersion,
java.lang.String targetContext,
java.lang.String targetHost,
java.lang.String targetStage,
java.lang.String targetVersion,
java.lang.String message) |
DeployTagResult[] |
deployList(java.lang.String serverId,
java.lang.String pattern) |
java.lang.String |
disable(java.lang.String serverId) |
java.lang.String |
disableSoft(java.lang.String serverId) |
JsonQueryReply |
doJmxDump(java.lang.String serverId) |
JsonQueryReply |
doThreadDump(java.lang.String serverId) |
java.lang.String |
enable(java.lang.String serverId) |
java.lang.String |
getName()
The JMX name property of the mbean.
|
StatServiceValuesQueryReply |
getStats(java.lang.String serverId,
java.lang.String metersStr,
java.lang.String periodStr) |
StringQueryReply |
getStatus(java.lang.String serverId) |
ListJmxQueryReply |
listJmx(java.lang.String serverId,
java.lang.String pattern,
boolean isPrintAttributes,
boolean isPrintValues,
boolean isPrintOperations,
boolean isPrintAllBeans,
boolean isPrintPlatformBeans) |
java.util.Date[] |
listRestarts(java.lang.String serverId,
java.lang.String periodStr) |
ListUsersQueryReply |
listUsers(java.lang.String serverId) |
PdfReportQueryReply |
pdfReport(java.lang.String serverId,
java.lang.String report,
java.lang.String periodStr,
java.lang.String logDirectory,
java.lang.String profileTimeStr,
java.lang.String samplePeriodStr,
boolean isSnapshot,
boolean isWatchdog,
boolean isLoadPdf) |
RemoveUserQueryReply |
removeUser(java.lang.String serverId,
java.lang.String user) |
DeployControllerState |
restartWebApp(java.lang.String serverId,
java.lang.String tag,
java.lang.String context,
java.lang.String stage,
java.lang.String host,
java.lang.String version) |
JmxSetQueryReply |
setJmx(java.lang.String serverId,
java.lang.String pattern,
java.lang.String attribute,
java.lang.String value) |
StringQueryReply |
setLogLevel(java.lang.String serverId,
java.lang.String loggersValue,
java.lang.String levelValue,
java.lang.String activeTime) |
DeployControllerState |
startWebApp(java.lang.String serverId,
java.lang.String tag,
java.lang.String context,
java.lang.String stage,
java.lang.String host,
java.lang.String version) |
DeployControllerState |
stopWebApp(java.lang.String serverId,
java.lang.String tag,
java.lang.String context,
java.lang.String stage,
java.lang.String host,
java.lang.String version) |
java.io.InputStream |
test(java.lang.String value,
java.io.InputStream is) |
java.lang.String |
undeploy(java.lang.String serverId,
java.lang.String context,
java.lang.String host,
java.lang.String stage,
java.lang.String version,
java.lang.String message) |
java.lang.String |
webappDeploy(java.lang.String serverId,
java.lang.String context,
java.lang.String host,
java.lang.String stage,
java.lang.String version,
java.lang.String message,
java.io.InputStream is) |
addObjectNameProperties, getObjectName, getType, registerSelf, toString, unregisterSelf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getObjectName, getType
public ManagementAdmin(Resin resin)
public java.lang.String getName()
AbstractManagedObject
getName
in interface ManagedObjectMXBean
getName
in class AbstractManagedObject
public java.lang.String configDeploy(java.lang.String serverId, java.lang.String stage, java.lang.String version, java.lang.String message, java.io.InputStream is) throws ReflectionException
configDeploy
in interface ManagementMXBean
ReflectionException
public java.io.InputStream configCat(java.lang.String serverId, java.lang.String name, java.lang.String stage, java.lang.String version) throws ReflectionException
configCat
in interface ManagementMXBean
ReflectionException
public java.lang.String[] configLs(java.lang.String serverId, java.lang.String name, java.lang.String stage, java.lang.String version) throws ReflectionException
configLs
in interface ManagementMXBean
ReflectionException
public java.lang.String configUndeploy(java.lang.String serverId, java.lang.String stage, java.lang.String version, java.lang.String message) throws ReflectionException
configUndeploy
in interface ManagementMXBean
ReflectionException
public StringQueryReply addLicense(java.lang.String serverId, boolean isOverwrite, java.lang.String to, boolean isRestart, java.io.InputStream in) throws ReflectionException
addLicense
in interface ManagementMXBean
ReflectionException
public java.util.Date[] listRestarts(java.lang.String serverId, java.lang.String periodStr) throws ReflectionException
listRestarts
in interface ManagementMXBean
ReflectionException
public ListJmxQueryReply listJmx(java.lang.String serverId, java.lang.String pattern, boolean isPrintAttributes, boolean isPrintValues, boolean isPrintOperations, boolean isPrintAllBeans, boolean isPrintPlatformBeans)
listJmx
in interface ManagementMXBean
public StringQueryReply setLogLevel(java.lang.String serverId, java.lang.String loggersValue, java.lang.String levelValue, java.lang.String activeTime)
setLogLevel
in interface ManagementMXBean
public JsonQueryReply doThreadDump(java.lang.String serverId)
doThreadDump
in interface ManagementMXBean
public PdfReportQueryReply pdfReport(java.lang.String serverId, java.lang.String report, java.lang.String periodStr, java.lang.String logDirectory, java.lang.String profileTimeStr, java.lang.String samplePeriodStr, boolean isSnapshot, boolean isWatchdog, boolean isLoadPdf)
pdfReport
in interface ManagementMXBean
public StatServiceValuesQueryReply getStats(java.lang.String serverId, java.lang.String metersStr, java.lang.String periodStr) throws ReflectionException
getStats
in interface ManagementMXBean
ReflectionException
public JmxSetQueryReply setJmx(java.lang.String serverId, java.lang.String pattern, java.lang.String attribute, java.lang.String value)
setJmx
in interface ManagementMXBean
public JmxCallQueryReply callJmx(java.lang.String serverId, java.lang.String pattern, java.lang.String operation, java.lang.String operationIdx, java.lang.String values)
callJmx
in interface ManagementMXBean
public DeployControllerState startWebApp(java.lang.String serverId, java.lang.String tag, java.lang.String context, java.lang.String stage, java.lang.String host, java.lang.String version) throws ReflectionException
startWebApp
in interface ManagementMXBean
ReflectionException
public DeployControllerState stopWebApp(java.lang.String serverId, java.lang.String tag, java.lang.String context, java.lang.String stage, java.lang.String host, java.lang.String version) throws ReflectionException
stopWebApp
in interface ManagementMXBean
ReflectionException
public DeployControllerState restartWebApp(java.lang.String serverId, java.lang.String tag, java.lang.String context, java.lang.String stage, java.lang.String host, java.lang.String version) throws ReflectionException
restartWebApp
in interface ManagementMXBean
ReflectionException
public java.lang.String webappDeploy(java.lang.String serverId, java.lang.String context, java.lang.String host, java.lang.String stage, java.lang.String version, java.lang.String message, java.io.InputStream is) throws ReflectionException
webappDeploy
in interface ManagementMXBean
ReflectionException
public java.lang.String deployCopy(java.lang.String serverId, java.lang.String sourceContext, java.lang.String sourceHost, java.lang.String sourceStage, java.lang.String sourceVersion, java.lang.String targetContext, java.lang.String targetHost, java.lang.String targetStage, java.lang.String targetVersion, java.lang.String message) throws ReflectionException
deployCopy
in interface ManagementMXBean
ReflectionException
public DeployTagResult[] deployList(java.lang.String serverId, java.lang.String pattern) throws ReflectionException
deployList
in interface ManagementMXBean
ReflectionException
public java.lang.String undeploy(java.lang.String serverId, java.lang.String context, java.lang.String host, java.lang.String stage, java.lang.String version, java.lang.String message) throws ReflectionException
undeploy
in interface ManagementMXBean
ReflectionException
public java.lang.String enable(java.lang.String serverId)
enable
in interface ManagementMXBean
public java.lang.String disable(java.lang.String serverId)
disable
in interface ManagementMXBean
public java.lang.String disableSoft(java.lang.String serverId) throws javax.management.ReflectionException
disableSoft
in interface ManagementMXBean
javax.management.ReflectionException
public JsonQueryReply doJmxDump(java.lang.String serverId)
doJmxDump
in interface ManagementMXBean
public AddUserQueryReply addUser(java.lang.String serverId, java.lang.String user, java.lang.String password, java.lang.String rolesStr) throws ReflectionException
addUser
in interface ManagementMXBean
ReflectionException
public ListUsersQueryReply listUsers(java.lang.String serverId) throws ReflectionException
listUsers
in interface ManagementMXBean
ReflectionException
public RemoveUserQueryReply removeUser(java.lang.String serverId, java.lang.String user) throws ReflectionException
removeUser
in interface ManagementMXBean
ReflectionException
public StringQueryReply getStatus(java.lang.String serverId)
getStatus
in interface ManagementMXBean
public java.io.InputStream test(java.lang.String value, java.io.InputStream is) throws java.io.IOException
java.io.IOException