public class ManagerClient
extends java.lang.Object
Constructor and Description |
---|
ManagerClient() |
ManagerClient(ActorSender bamClient) |
ManagerClient(BamManager bamManager,
ActorSender bamClient) |
ManagerClient(java.lang.String serverId) |
ManagerClient(java.lang.String host,
int serverPort,
int httpPort,
java.lang.String userName,
java.lang.String password) |
Modifier and Type | Method and Description |
---|---|
StringQueryReply |
addLicense(java.lang.String licenseContent,
java.lang.String fileName,
boolean overwrite,
boolean restart) |
AddUserQueryReply |
addUser(java.lang.String user,
char[] password,
java.lang.String[] roles) |
JmxCallQueryReply |
callJmx(java.lang.String pattern,
java.lang.String operation,
int opIndex,
java.lang.String[] trailingArgs) |
void |
close() |
<T> T |
createAgentProxy(java.lang.Class<T> api,
java.lang.String address) |
java.lang.String |
disable(java.lang.String serverId) |
StringQueryReply |
doHeapDump(boolean raw) |
JsonQueryReply |
doJmxDump() |
JsonQueryReply |
doJsonThreadDump() |
StringQueryReply |
doThreadDump() |
java.lang.String |
enable(java.lang.String serverId) |
ActorSender |
getSender() |
StatServiceValuesQueryReply |
getStats(java.lang.String[] meters,
java.util.Date from,
java.util.Date to) |
java.lang.String |
getUrl() |
ListJmxQueryReply |
listJmx(java.lang.String pattern,
boolean isPrintAttributes,
boolean isPrintValues,
boolean isPrintOperations,
boolean isAll,
boolean isPlatform) |
java.util.Date[] |
listRestarts(long period) |
ListUsersQueryReply |
listUsers() |
PdfReportQueryReply |
pdfReport(java.lang.String path,
java.lang.String report,
java.lang.String serverId,
long period,
java.lang.String logDirectory,
long profileTime,
long samplePeriod,
boolean isSnapshot,
boolean isWatchdog,
boolean isReportReturned) |
StringQueryReply |
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) |
RemoveUserQueryReply |
removeUser(java.lang.String user) |
StringQueryReply |
scoreboard(java.lang.String type,
boolean greedy) |
JmxSetQueryReply |
setJmx(java.lang.String pattern,
java.lang.String attribute,
java.lang.String value) |
StringQueryReply |
setLogLevel(java.lang.String[] loggers,
java.util.logging.Level logLevel,
long period) |
StringQueryReply |
status() |
java.lang.String |
toString() |
public ManagerClient()
public ManagerClient(java.lang.String serverId)
public ManagerClient(ActorSender bamClient)
public ManagerClient(BamManager bamManager, ActorSender bamClient)
public ManagerClient(java.lang.String host, int serverPort, int httpPort, java.lang.String userName, java.lang.String password)
public java.lang.String getUrl()
public ActorSender getSender()
public <T> T createAgentProxy(java.lang.Class<T> api, java.lang.String address)
public AddUserQueryReply addUser(java.lang.String user, char[] password, java.lang.String[] roles)
public RemoveUserQueryReply removeUser(java.lang.String user)
public ListUsersQueryReply listUsers()
public StringQueryReply doThreadDump()
public JsonQueryReply doJsonThreadDump()
public StringQueryReply doHeapDump(boolean raw)
public JsonQueryReply doJmxDump()
public StringQueryReply setLogLevel(java.lang.String[] loggers, java.util.logging.Level logLevel, long period)
public ListJmxQueryReply listJmx(java.lang.String pattern, boolean isPrintAttributes, boolean isPrintValues, boolean isPrintOperations, boolean isAll, boolean isPlatform)
public JmxSetQueryReply setJmx(java.lang.String pattern, java.lang.String attribute, java.lang.String value)
public JmxCallQueryReply callJmx(java.lang.String pattern, java.lang.String operation, int opIndex, java.lang.String[] trailingArgs)
public PdfReportQueryReply pdfReport(java.lang.String path, java.lang.String report, java.lang.String serverId, long period, java.lang.String logDirectory, long profileTime, long samplePeriod, boolean isSnapshot, boolean isWatchdog, boolean isReportReturned)
public StringQueryReply profile(long activeTime, long period, int depth)
public java.util.Date[] listRestarts(long period)
public StringQueryReply addLicense(java.lang.String licenseContent, java.lang.String fileName, boolean overwrite, boolean restart)
public StatServiceValuesQueryReply getStats(java.lang.String[] meters, java.util.Date from, java.util.Date to)
public StringQueryReply status()
public StringQueryReply scoreboard(java.lang.String type, boolean greedy)
public java.lang.String enable(java.lang.String serverId)
public java.lang.String disable(java.lang.String serverId)
protected java.io.Serializable query(java.io.Serializable query)
protected java.io.Serializable query(java.io.Serializable query, long timeout)
public void close()
public java.lang.String toString()
toString
in class java.lang.Object