|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClusterDaemonMBean
Method Summary | |
---|---|
void |
addServer(String name,
String description,
String jonasRoot,
String jonasBase,
String javaHome,
String xprm,
String autoBoot,
String jonasCmd,
String saveIt)
Add a server configuration. |
boolean |
checkServerState(String srvName)
Retrieve the state of the given controlled server. |
String |
getAutoBoot4Server(String name)
True if autoboot is enabled for the given server. |
ArrayList |
getControlledServersNames()
Controlled servers. |
Hashtable<String,String> |
getDynamicHostAttributes()
Get dynamic host attributes. |
String |
getJavaHome4Server(String name)
|
String |
getJmxUrl()
Get jmx url of the cluster daemon. |
String |
getJonasBase4Server(String name)
Get JONAS_BASE for the given server. |
String |
getJonasCmd4Server(String name)
Get command for the given server. |
String |
getJonasRoot4Server(String name)
get JONAS_ROOT for the given server. |
String |
getobjectName()
|
String |
getOperatingSystemArch()
get OS architecture. |
String |
getOperatingSystemAvailableProcessors()
Get available processors of the OS. |
String |
getOperatingSystemName()
Get OS name. |
String |
getOperatingSystemVersion()
Get OS version. |
String |
getOsCurrentUsedSpace()
Getting Operating system Current used space. |
String |
getOsTotalSpace()
Getting Operating system Current used space. |
String |
getRunTimeSpecVendor()
Get spec. |
String |
getRunTimeSpecVersion()
Get runtime spec. |
String |
getRunTimeVmName()
Get runtime vm name. |
String |
getRunTimeVmVendor()
Get runtime vendor. |
String |
getRunTimeVmVersion()
Get runtime vm version. |
String |
getVmCurrentUsedHeapMemory()
Getting remote Vm's Current used Heap memory. |
String |
getVmCurrentUsedMemory()
Get remote Vm used Memory. |
String |
getVmCurrentUsedNonHeapMemory()
Getting remote Vm's Current used non Heap memory. |
String |
getVmTotalMemory()
Getting remote Vm Total Memory. |
String |
getXprm4Server(String name)
Get extra parameters for the given server. |
void |
haltJOnAS(String name)
Halt a JOnAS instance. |
boolean |
iseventProvider()
|
boolean |
isstateManageable()
|
boolean |
isstatisticsProvider()
|
void |
modifyServer(String name,
String description,
String javaHome,
String jonasRoot,
String jonasBase,
String xprm,
String autoBoot,
String jonasCmd)
Modify a server configuration. |
int |
pingJOnAS(String name)
Ping a JOnAS instance (MBean interface). |
void |
reloadConfiguration()
Reload the configuration. |
void |
removeServer(String serverName)
Remove this server from cluster daemon control. |
void |
removeServer(String serverName,
String saveIt)
Remove this server from cluster daemon control. |
void |
saveConfiguration()
Save the configuration. |
ArrayList |
serversNames()
|
void |
setobjectName(String name)
Sets the object name of this mbean |
String |
startAllJOnAS(String domainName,
String prm)
Start all the JOnAS instances configured with auto-reboot. |
void |
startJOnAS(String name,
String domainName,
String prm)
Start a JOnAS instance. |
String |
stopAllJOnAS()
Stop all the JOnAS instances. |
void |
stopClusterDaemon()
Stop the cluster daemon instance. |
void |
stopJOnAS(String name)
Stop a JOnAS instance. |
Method Detail |
---|
String getobjectName() throws ClusterDaemonException
ClusterDaemonException
void setobjectName(String name) throws ClusterDaemonException
name
- the Object Name
ClusterDaemonException
- any.boolean iseventProvider() throws ClusterDaemonException
ClusterDaemonException
- any.boolean isstateManageable() throws ClusterDaemonException
ClusterDaemonException
- any.boolean isstatisticsProvider() throws ClusterDaemonException
ClusterDaemonException
- any.ArrayList serversNames() throws ClusterDaemonException
ClusterDaemonException
ArrayList getControlledServersNames() throws ClusterDaemonException
ClusterDaemonException
String getJavaHome4Server(String name) throws ClusterDaemonException
name
- JOnAS instance name
ClusterDaemonException
- any.String getJonasRoot4Server(String name) throws ClusterDaemonException
JONAS_ROOT
for the given server.
name
- JOnAS instance name
ClusterDaemonException
- any.String getJonasBase4Server(String name) throws ClusterDaemonException
JONAS_BASE
for the given server.
name
- JOnAS instance name
ClusterDaemonException
- any.String getJonasCmd4Server(String name) throws ClusterDaemonException
name
- JOnAS instance name
ClusterDaemonException
- any.String getXprm4Server(String name) throws ClusterDaemonException
name
- JOnAS instance name
ClusterDaemonException
- any.String getAutoBoot4Server(String name) throws ClusterDaemonException
autoboot
is enabled for the given server.
name
- JOnAS instance name
ClusterDaemonException
void reloadConfiguration() throws ClusterDaemonException
ClusterDaemonException
- if an error occursvoid addServer(String name, String description, String jonasRoot, String jonasBase, String javaHome, String xprm, String autoBoot, String jonasCmd, String saveIt) throws ClusterDaemonException
name
- server namedescription
- server descriptionjavaHome
- JAVA_HOME dirjonasBase
- JONAS_BASE dirjonasRoot
- JONAS_ROOT dirxprm
- extra JVM parametersautoBoot
- automatic startjonasCmd
- user command
ClusterDaemonException
- if an error occursvoid modifyServer(String name, String description, String javaHome, String jonasRoot, String jonasBase, String xprm, String autoBoot, String jonasCmd) throws ClusterDaemonException
name
- server namedescription
- server descriptionjavaHome
- JAVA_HOME dirjonasBase
- JONAS_BASE dirjonasRoot
- JONAS_ROOT dirxprm
- extra JVM parametersautoBoot
- automatic startjonasCmd
- user command
ClusterDaemonException
- if an error occursvoid removeServer(String serverName, String saveIt) throws ClusterDaemonException
serverName
- the server to removesaveIt
- if true then flush the configuration
ClusterDaemonException
void saveConfiguration() throws ClusterDaemonException
ClusterDaemonException
- any.void removeServer(String serverName) throws ClusterDaemonException
serverName
- the server to remove
ClusterDaemonException
void startJOnAS(String name, String domainName, String prm) throws ClusterDaemonException
name
- instance namedomainName
- domain nameprm
- extra parameters
ClusterDaemonException
- if an error occursvoid stopJOnAS(String name) throws ClusterDaemonException
name
- instance name
ClusterDaemonException
- if an error occursvoid haltJOnAS(String name) throws ClusterDaemonException
name
- instance name
ClusterDaemonException
- if an error occursint pingJOnAS(String name) throws ClusterDaemonException
name
- instance name
ClusterDaemonException
- if an error occursString startAllJOnAS(String domainName, String prm) throws ClusterDaemonException
domainName
- domain nameprm
- extra parameters
ClusterDaemonException
String stopAllJOnAS() throws ClusterDaemonException
ClusterDaemonException
- any.void stopClusterDaemon() throws ClusterDaemonException
ClusterDaemonException
- any.String getJmxUrl() throws ClusterDaemonException
ClusterDaemonException
String getOperatingSystemAvailableProcessors() throws ClusterDaemonException
ClusterDaemonException
String getOperatingSystemName() throws ClusterDaemonException
ClusterDaemonException
- any.String getOperatingSystemArch() throws ClusterDaemonException
ClusterDaemonException
- any.String getOperatingSystemVersion() throws ClusterDaemonException
ClusterDaemonException
- any.String getRunTimeSpecVendor() throws ClusterDaemonException
ClusterDaemonException
- any.String getRunTimeSpecVersion() throws ClusterDaemonException
ClusterDaemonException
- any.String getRunTimeVmName() throws ClusterDaemonException
ClusterDaemonException
- any.String getRunTimeVmVendor() throws ClusterDaemonException
ClusterDaemonException
- any.String getRunTimeVmVersion() throws ClusterDaemonException
ClusterDaemonException
- any.Hashtable<String,String> getDynamicHostAttributes() throws ClusterDaemonException
ClusterDaemonException
- any.boolean checkServerState(String srvName) throws ClusterDaemonException
srvName
- server's name.
ClusterDaemonException
- any.String getVmCurrentUsedMemory() throws ClusterDaemonException
ClusterDaemonException
- any.String getVmTotalMemory() throws ClusterDaemonException
ClusterDaemonException
- any.String getVmCurrentUsedHeapMemory() throws ClusterDaemonException
ClusterDaemonException
- any.String getVmCurrentUsedNonHeapMemory() throws ClusterDaemonException
ClusterDaemonException
- any.String getOsCurrentUsedSpace() throws ClusterDaemonException
ClusterDaemonException
- any.String getOsTotalSpace() throws ClusterDaemonException
ClusterDaemonException
- any.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |