|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.lib.management.extensions.manager.ManagementEntryPoint
public final class ManagementEntryPoint
Implements singleton for all management operations in JOnAS.
Method Summary | |
---|---|
void |
addCluster(String clusterName)
Add a new cluster in the domain. |
void |
addServer(String serverName,
String serverURL,
String userName,
String password,
String clusterdaemon)
Add a new server in the domain. |
void |
addServer(String clusterDaemonName,
String serverName,
String description,
String jonasRoot,
String jonasBase,
String javaHome,
String xprem,
String autoBoot,
String jonasCmd,
String saveIt)
Add a server to cluster daemon control |
void |
addServerToCluster(String clusterName,
String serverName,
String clusterDaemon,
String serverURL)
Add server to cluster. |
void |
deploy(String fileName,
String serverName)
Deploy a module on a target server in the domain. |
boolean |
developmentMode(String serviceName,
String serverName)
Return true if a given service is in 'development' mode for a given server managed in the domain. |
int |
getAllThreadsCount(String server)
Get the number of threads used by a server in the domain. |
Object |
getAttribute(ObjectName on,
String attribute,
String serverName)
Gets the value of a specific attribute of a named MBean. |
J2EEMBeanAttributeInfo[] |
getAttributes(ObjectName objectName,
String serverName)
Get management attributes. |
String |
getAutoBoot(String server)
Get the Auto Boot |
long |
getBytesReceivedByConnectorTomcat(String server)
|
long |
getBytesSentByConnectorTomcat(String server)
|
String[] |
getClusterDaemonNames()
|
String[] |
getclusterDaemons()
Return the clusterDaemons in the domain. |
String |
getClusterdaemonState(String clusterdaemonName)
|
String[] |
getClusters()
Return the clusters in the domain. |
String[] |
getClustersNames()
|
String |
getClusterState(String clusterName)
Return the state of a cluster in the domain. |
String |
getClusterType(String clusterName)
Return the type of a cluster in the current domain. |
String |
getConnectionUrl(String server)
Get the JMX connection URL of the server. |
String[] |
getControlledServersNames(String clusterdaemonName)
|
int |
getCurrentNumberOfEJB(String server)
|
int |
getCurrentNumberOfEntityBean(String server)
|
int |
getCurrentNumberOfMDB(String server)
|
int |
getCurrentNumberOfSBF(String server)
|
int |
getCurrentNumberOfSBL(String server)
|
int |
getCurrentThreadBusyByConnectorTomcat(String server)
|
int |
getCurrentThreadCountByConnectorTomcat(String server)
|
Long |
getCurrentTotalMemory(String server)
Get the total memory of the server in the domain. |
long |
getCurrentUsedMemory(String server)
Get the memory used by a server in the domain. |
int |
getDelayToRefresh(String clusterName)
|
String |
getDescription(String server)
Get the Description |
String |
getDomainName()
Get the domain name. |
int |
getErrorCountByConnectorTomcat(String server)
|
String |
getHostName(String serverName)
|
static ManagementEntryPoint |
getInstance()
|
int |
getIntegerAttribute(ObjectName objectName,
String attrName)
Get the integer attribute value of an MBean in the current MBean Server. |
String |
getJavaHome(String serverName)
Get the Java home |
String |
getJavaVendor(String server)
Get the JVM vendor. |
String |
getJavaVersion(String server)
Get the java version. |
String |
getJonasBase(String server)
Get the Jonas Base |
String |
getJonasRoot(String server)
Get the Jonas Root |
String |
getKeyValue(String objectName,
String keyName)
Return the value of a key property in an OBJECT_NAME. |
String[] |
getKeyValues(String[] objectNames,
String keyName)
Return the values of a key property in String OBJECT_NAMEs. |
List |
getListMbean(ObjectName on,
String serverName)
Return the list of ObjectName Mbean gotten by the query in
the current MbeanServer. |
int |
getMaxThreadsByConnectorTomcat(String server)
|
String |
getMcastAddr(String clusterName)
|
int |
getMcastPort(String clusterName)
|
String |
getOperatingSystemArch(String clusterDaemonName)
Get the OperatingSystemArch a cluster Daemon Name in the domain. |
String |
getOperatingSystemAvailableProcessors(String clusterDaemonName)
Get the OperatingSystemAvailableProcessorsof a cluster Daemon Name in the domain. |
String |
getOperatingSystemName(String clusterDaemonName)
Get the OperatingSystemName a cluster Daemon Name in the domain. |
String |
getOperatingSystemVersion(String clusterDaemonName)
Get the OperatingSystemVersion a cluster Daemon Name in the domain. |
String |
getOsCurrentUsedSpace(String clusterDaemonName)
Getting Operating system Current used space |
String |
getOsTotalSpace(String clusterDaemonName)
Getting Operating system Total space |
long |
getProcessingTimeByConnectorTomcat(String server)
|
String |
getProtocols(String server)
Get the the protocols used bye the server. |
List<?> |
getRealmItems(String realmType,
String securityRealmUsed)
Get realm items of the given type within the current server of the current domain. |
List<?> |
getRealmItems(String realmType,
String securityRealmUsed,
String domainName,
String serverName)
Get realm items of the given type. |
int |
getRequestCountByConnectorTomcat(String server)
|
String |
getRunTimeSpecVendor(String clusterDaemonName)
Get the RunTimeSpecVendor a cluster Daemon Name in the domain. |
String |
getRunTimeSpecVersion(String clusterDaemonName)
Get the RunTimeSpecVersion a cluster Daemon Name in the domain. |
String |
getRunTimeVmName(String clusterDaemonName)
Get the RunTimeVmName a cluster Daemon Name in the domain. |
String |
getRunTimeVmVendor(String clusterDaemonName)
Get the RunTimeVmVendor a cluster Daemon Name in the domain. |
String |
getRunTimeVmVersion(String clusterDaemonName)
Get the RunTimeVmVersion a cluster Daemon Name in the domain. |
String |
getServerClusterdaemon(String serverName)
Return the clusterDaemon of a server in the domain. |
MBeanServerConnection |
getServerConnection()
Return the MBeanServer connection corresponding to a current server in the current domain. |
MBeanServerConnection |
getServerConnection(String serverName)
Return the MBeanServer connection corresponding to a given server in the current domain. |
String |
getServerHost()
|
String |
getServerName()
Get the name of the server providing the ManagementEntryEndpoint. |
String[] |
getServerNames()
Return the server names that are belonging to the domain. |
String[] |
getServerNames(String clusterName)
|
String |
getServerPort()
|
String[] |
getServersNotInCluster(String clusterName)
Get the name of the servers in the domain except the ones that are belonging to this cluster. |
String |
getServerState(String serverName)
Return the state of a server in the domain. |
List<List<String>> |
getServerThreadsInformation(String serverName)
Get threads information for a given server managed in the domain. |
List<List<String>> |
getServerThreadsInformation(String jmxUrl,
String username,
String password)
Get threads information for a server identified by the a JMX Url. |
String |
getServerVersion(String server)
Get the version of a server in the domain. |
String |
getStringAttribute(ObjectName objectName,
String attrName)
Get the String attribute value of an MBean in the current MBean Server. |
ObjectName |
getTomcatRealm(String domainName,
String serverName)
Get the ObjectName of the Tomcat Realm MBean. |
List<?> |
getTomcatRealmItems(String usedSecurityRealm,
String domainName,
String serverName)
|
int |
getTotalBegunTransactions(String server)
|
int |
getTotalCommittedTransactions(String server)
|
int |
getTotalCurrentTransactions(String server)
|
int |
getTotalExpiredTransactions(String server)
|
int |
getTotalRolledbackTransactions(String server)
|
String |
getVmCurrentUsedHeapMemory(String clusterDaemonName)
Getting remote Vm's Current used Heap memory |
String |
getVmCurrentUsedMemory(String clusterDaemonName)
Get the vmCurrentUsedMemory a cluster Daemon Name in the domain. |
String |
getVmCurrentUsedNonHeapMemory(String clusterDaemonName)
Getting remote Vm's Current used non Heap memory |
String |
getVmTotalMemory(String clusterDaemonName)
Get the vmTotalMemory a cluster Daemon Name in the domain. |
String |
getXprem(String server)
Get the Xprem |
void |
haltServer(String serverName)
Halt the server. |
Object |
invoke(ObjectName on,
String operation,
Object[] param,
String[] signature,
String serverName)
Implementation of the invoke method to be applied to a
server in the domain. |
boolean |
isMaster()
Return True if the current server is a master. |
boolean |
isMaster(String serverName)
Return True if the managed server is a master. |
boolean |
isRegistered(ObjectName on,
String serverName)
Implementation of the isRegistered method to be applied to a
server in the domain. |
boolean |
isRunning(String clusterdaemonName)
|
boolean |
remove(String fileName,
String serverName)
Remove a module on a target server. |
void |
removeServer(String clusterDaemonName,
String serverName,
String saveIt)
Remove this server from cluster daemon control. |
void |
removeServers(String[] serversToRemove)
Remove a list of servers from the domain. |
void |
setAttribute(ObjectName on,
String attribute,
Object value)
Sets the value of a specific attribute of a named MBean within the current server. |
void |
setAttribute(ObjectName on,
String attribute,
Object value,
String serverName)
Sets the value of a specific attribute of a named MBean. |
void |
startAllServers(String clusterName)
start all servers in the cluster. |
void |
startAllServers(String clusterDaemonName,
String otherParams)
Ask Cluster Daemon to start all the Servers from cluster daemon control. |
void |
startServer(String serverName)
Start the server. |
void |
startServer(String serverName,
boolean standby)
Start the server. |
boolean |
startServer(String clusterdaemonName,
String serverName)
Start a server controlled by a cluster daemon |
void |
stopAllServers(String clusterName)
stop all servers in the cluster. |
void |
stopAllServers(String clusterDaemonName,
String otherParams)
Ask Cluster Daemon to stop all the Servers from cluster daemon control. |
void |
stopServer(String serverName)
Stop the server. |
void |
stopServer(String serverName,
boolean standby)
Stop the server. |
boolean |
stopServer(String clusterdaemonName,
String serverName)
Stop a server controlled by a cluster daemon |
void |
undeploy(String fileName,
String serverName)
Uneploy a module on a target server. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ManagementEntryPoint getInstance()
public String getDomainName()
IDomain
getDomainName
in interface IBaseManagement
getDomainName
in interface IDomain
public String getServerName()
IDomain
getServerName
in interface IBaseManagement
getServerName
in interface IDomain
public String getServerHost()
getServerHost
in interface IDomain
public String getServerPort()
getServerPort
in interface IDomain
public boolean isMaster(String serverName)
isMaster
in interface IDomain
serverName
- managed server name
public boolean isMaster()
isMaster
in interface IDomain
public String[] getServerNames()
getServerNames
in interface IDomain
public String[] getClustersNames()
getClustersNames
in interface IDomain
public String[] getClusterDaemonNames()
getClusterDaemonNames
in interface IDomain
public String[] getClusters()
getClusters
in interface IDomain
public String[] getclusterDaemons()
getclusterDaemons
in interface IDomain
public void addServer(String serverName, String serverURL, String userName, String password, String clusterdaemon)
addServer
in interface IDomain
serverName
- the server's name.connector
- the server's connector it can be JRMP, IRMI or IIOP.userName
- the user of the new server.password
- the password of the new server.clusterDaemon
- the name of clusterDaemon if this server will take
part of clusterDaemon.public void removeServers(String[] serversToRemove)
removeServers
in interface IDomain
serversToRemove
- the list of servers to remove.public void addCluster(String clusterName)
addCluster
in interface IDomain
clusterName
- the new cluster's name.public String getServerState(String serverName)
getServerState
in interface IDomain
serverName
- the server's name
public void startServer(String serverName)
serverName
- the name of the server to startpublic void startServer(String serverName, boolean standby)
startServer
in interface IDomain
serverName
- the name of the server to startstandby
- true
to activate standby mode.public void stopServer(String serverName)
serverName
- the name of the server to stop (stop the JVM)public void stopServer(String serverName, boolean standby)
stopServer
in interface IDomain
serverName
- the name of the server to stopstandby
- public void haltServer(String serverName)
serverName
- the name of the server to haltpublic String getServerClusterdaemon(String serverName)
getServerClusterdaemon
in interface IDomain
serverName
- the server's name
public String getClusterState(String clusterName)
getClusterState
in interface IDomain
clusterName
- the cluster's name
public String getClusterType(String clusterName)
getClusterType
in interface IDomain
clusterName
- the cluster's name
public String[] getServerNames(String clusterName)
getServerNames
in interface IDomain
clusterName
- the cluster name
public String getJavaHome(String serverName)
getJavaHome
in interface IServer
server
- the server's name.
public long getCurrentUsedMemory(String server)
getCurrentUsedMemory
in interface IServer
server
- the server's name.
public String getServerVersion(String server)
getServerVersion
in interface IServer
server
- the server's name.
public int getAllThreadsCount(String server)
getAllThreadsCount
in interface IServer
server
- the server's name.
public Long getCurrentTotalMemory(String server)
getCurrentTotalMemory
in interface IServer
server
- the server's name.
public String getConnectionUrl(String server)
getConnectionUrl
in interface IServer
server
- the server's name.
public String getJonasBase(String server)
getJonasBase
in interface IServer
server
- the server's name.
public String getJonasRoot(String server)
getJonasRoot
in interface IServer
server
- the server's name.
public String getXprem(String server)
getXprem
in interface IServer
server
- the server's name.
public String getDescription(String server)
getDescription
in interface IServer
server
- the server's name.
public String getAutoBoot(String server)
getAutoBoot
in interface IServer
server
- the server's name.
public String getJavaVendor(String server)
getJavaVendor
in interface IServer
server
- the server's name.
public String getJavaVersion(String server)
getJavaVersion
in interface IServer
server
- the server's name.
public String getProtocols(String server)
getProtocols
in interface IServer
server
- the server's name.
public int getTotalBegunTransactions(String server)
getTotalBegunTransactions
in interface IServer
server
- Server name
public int getTotalCommittedTransactions(String server)
getTotalCommittedTransactions
in interface IServer
server
- Server name
public int getTotalExpiredTransactions(String server)
getTotalExpiredTransactions
in interface IServer
server
- Server name
public int getTotalRolledbackTransactions(String server)
getTotalRolledbackTransactions
in interface IServer
server
- Server name
public int getTotalCurrentTransactions(String server)
getTotalCurrentTransactions
in interface IServer
server
- Server name
public long getBytesReceivedByConnectorTomcat(String server)
getBytesReceivedByConnectorTomcat
in interface IServer
server
- Server name
public long getBytesSentByConnectorTomcat(String server)
getBytesSentByConnectorTomcat
in interface IServer
server
- Server name
public int getCurrentThreadBusyByConnectorTomcat(String server)
getCurrentThreadBusyByConnectorTomcat
in interface IServer
server
- Server name
public int getCurrentThreadCountByConnectorTomcat(String server)
getCurrentThreadCountByConnectorTomcat
in interface IServer
server
- Server name
public int getErrorCountByConnectorTomcat(String server)
getErrorCountByConnectorTomcat
in interface IServer
server
- Server name
public String getHostName(String serverName)
getHostName
in interface IServer
server
- Server name.
public int getMaxThreadsByConnectorTomcat(String server)
getMaxThreadsByConnectorTomcat
in interface IServer
server
- Server name
public long getProcessingTimeByConnectorTomcat(String server)
getProcessingTimeByConnectorTomcat
in interface IServer
server
- Server name
public int getRequestCountByConnectorTomcat(String server)
getRequestCountByConnectorTomcat
in interface IServer
server
- Server name
public int getCurrentNumberOfEJB(String server)
getCurrentNumberOfEJB
in interface IServer
server
- Server name
public int getCurrentNumberOfEntityBean(String server)
getCurrentNumberOfEntityBean
in interface IServer
server
- Server name
public int getCurrentNumberOfMDB(String server)
getCurrentNumberOfMDB
in interface IServer
server
- Server name
public int getCurrentNumberOfSBF(String server)
getCurrentNumberOfSBF
in interface IServer
server
- Server name
public int getCurrentNumberOfSBL(String server)
getCurrentNumberOfSBL
in interface IServer
server
- Server name
public String[] getControlledServersNames(String clusterdaemonName)
getControlledServersNames
in interface IClusterdaemon
clusterdaemonName
- name
public boolean isRunning(String clusterdaemonName)
isRunning
in interface IClusterdaemon
clusterdaemonName
- name of the cluster daemon to manage.
public String getClusterdaemonState(String clusterdaemonName)
getClusterdaemonState
in interface IClusterdaemon
getClusterdaemonState
in interface IDomain
clusterdaemonName
- name of the cluster daemon to manage
public boolean startServer(String clusterdaemonName, String serverName)
startServer
in interface IClusterdaemon
clusterdaemonName
- name of the cluster daemonserverName
- name of the server to start
public boolean stopServer(String clusterdaemonName, String serverName)
stopServer
in interface IClusterdaemon
clusterdaemonName
- name of the cluster daemonserverName
- name of the server to stop
public void addServer(String clusterDaemonName, String serverName, String description, String jonasRoot, String jonasBase, String javaHome, String xprem, String autoBoot, String jonasCmd, String saveIt)
addServer
in interface IClusterdaemon
clusterDaemonName
- the cluster Daemon nameserverName
- the server namedescription
- server descriptionjavaHome
- path to JREjonasRoot
- path to bin repositoryjonasBase
- path to lib repositoryxprem
- extra parameter e.g: -Djava.net.preferIPv4Stack=trueautoBoot
- true if the server is launched when cluster daemon startsjonasCmd
- user commandsaveIt
- true to flush the clusterd configurationpublic String getOperatingSystemAvailableProcessors(String clusterDaemonName)
getOperatingSystemAvailableProcessors
in interface IClusterdaemon
clusterDaemonName
- the cluster Daemon Name's name.
public String getOperatingSystemName(String clusterDaemonName)
getOperatingSystemName
in interface IClusterdaemon
clusterDaemonName
- the cluster Daemon Name's name.
public String getOperatingSystemVersion(String clusterDaemonName)
getOperatingSystemVersion
in interface IClusterdaemon
clusterDaemonName
- the cluster Daemon Name's name.
public String getRunTimeSpecVendor(String clusterDaemonName)
getRunTimeSpecVendor
in interface IClusterdaemon
clusterDaemonName
- the cluster Daemon Name's name.
public String getRunTimeSpecVersion(String clusterDaemonName)
getRunTimeSpecVersion
in interface IClusterdaemon
clusterDaemonName
- the cluster Daemon Name's name.
public String getRunTimeVmName(String clusterDaemonName)
getRunTimeVmName
in interface IClusterdaemon
clusterDaemonName
- the cluster Daemon Name's name.
public String getRunTimeVmVendor(String clusterDaemonName)
getRunTimeVmVendor
in interface IClusterdaemon
clusterDaemonName
- the cluster Daemon Name's name.
public String getRunTimeVmVersion(String clusterDaemonName)
getRunTimeVmVersion
in interface IClusterdaemon
clusterDaemonName
- the cluster Daemon Name's name.
public String getOperatingSystemArch(String clusterDaemonName)
getOperatingSystemArch
in interface IClusterdaemon
clusterDaemonName
- the cluster Daemon Name's name.
public String getVmCurrentUsedMemory(String clusterDaemonName)
getVmCurrentUsedMemory
in interface IClusterdaemon
clusterDaemonName
- the cluster Daemon Name's name. Getting remote
Vm used Memory
public String getVmTotalMemory(String clusterDaemonName)
getVmTotalMemory
in interface IClusterdaemon
clusterDaemonName
- the cluster Daemon Name's name. Getting remote
Vm Total Memory
public String getVmCurrentUsedHeapMemory(String clusterDaemonName)
getVmCurrentUsedHeapMemory
in interface IClusterdaemon
clusterDaemonName
- the cluster Daemon Name's name.
public String getVmCurrentUsedNonHeapMemory(String clusterDaemonName)
getVmCurrentUsedNonHeapMemory
in interface IClusterdaemon
clusterDaemonName
- the cluster Daemon Name's name.
public String getOsCurrentUsedSpace(String clusterDaemonName)
getOsCurrentUsedSpace
in interface IClusterdaemon
clusterDaemonName
- the cluster Daemon Name's name.
public String getOsTotalSpace(String clusterDaemonName)
getOsTotalSpace
in interface IClusterdaemon
clusterDaemonName
- the cluster Daemon Name's name.
public void removeServer(String clusterDaemonName, String serverName, String saveIt)
removeServer
in interface IClusterdaemon
serverName
- the server to removesaveIt
- true to flush the clusterd configurationpublic void startAllServers(String clusterDaemonName, String otherParams)
startAllServers
in interface IClusterdaemon
clusterdaemonName
- name of the cluster daemonotherParams
- the servers to startpublic void stopAllServers(String clusterDaemonName, String otherParams)
stopAllServers
in interface IClusterdaemon
clusterdaemonName
- name of the cluster daemonotherParams
- the servers to stoppublic void addServerToCluster(String clusterName, String serverName, String clusterDaemon, String serverURL)
addServerToCluster
in interface ICluster
clusterName
- cluster nameserverName
- server nameclusterDaemon
- cluster daemon nameserverURL
- server urlpublic void startAllServers(String clusterName)
startAllServers
in interface ICluster
clusterName
- public void stopAllServers(String clusterName)
stopAllServers
in interface ICluster
clusterName
- public String getMcastAddr(String clusterName)
getMcastAddr
in interface ICluster
clusterName
-
public int getMcastPort(String clusterName)
getMcastPort
in interface ICluster
clusterName
-
public int getDelayToRefresh(String clusterName)
getDelayToRefresh
in interface ICluster
clusterName
-
public String[] getServersNotInCluster(String clusterName)
getServersNotInCluster
in interface IDomain
clusterName
- the cluster name
public List<List<String>> getServerThreadsInformation(String serverName) throws Exception
IServerManagement
getServerThreadsInformation
in interface IServerManagement
serverName
- Server name
Exception
- when operation invocation failspublic List<List<String>> getServerThreadsInformation(String jmxUrl, String username, String password) throws Exception
IServerManagement
getServerThreadsInformation
in interface IServerManagement
jmxUrl
- username
- password
-
Exception
- when operation invocation failspublic void deploy(String fileName, String serverName) throws Exception
deploy
in interface IServerManagement
fileName
- Name of the module's file.serverName
- Target server name.
Exception
- deploy operation failed.public void undeploy(String fileName, String serverName) throws Exception
undeploy
in interface IServerManagement
fileName
- Name of the module's file.serverName
- Target server name.
Exception
- undeploy operation failed.public boolean remove(String fileName, String serverName) throws Exception
remove
in interface IServerManagement
fileName
- Name of the module's file.serverName
- Target server name.
Exception
- remove operation failed.public boolean developmentMode(String serviceName, String serverName) throws Exception
developmentMode
in interface IServerManagement
serviceName
- The service name, for example "depmonitor".serverName
- Target server name.
Exception
public Object getAttribute(ObjectName on, String attribute, String serverName) throws ManagementException
getAttribute
in interface IBaseManagement
on
- The ObjectName of the MBean.attribute
- A String specifying the name of the attribute to be
retrieved.serverName
- The server name
ManagementException
- management operation failedpublic J2EEMBeanAttributeInfo[] getAttributes(ObjectName objectName, String serverName) throws ManagementException
getAttributes
in interface IBaseManagement
objectName
- serverName
-
ManagementException
public int getIntegerAttribute(ObjectName objectName, String attrName) throws ManagementException
getIntegerAttribute
in interface IBaseManagement
objectName
- The MBean's ObjectNameattrName
- The attribute name
ManagementException
public String getKeyValue(String objectName, String keyName) throws ManagementException
getKeyValue
in interface IBaseManagement
objectName
- the OBJECT_NAME (String form)keyName
- key property name
ManagementException
public String[] getKeyValues(String[] objectNames, String keyName) throws ManagementException
getKeyValues
in interface IBaseManagement
objectNames
- the OBJECT_NAMEskeyName
- key name
ManagementException
public List getListMbean(ObjectName on, String serverName) throws ManagementException
ObjectName
Mbean gotten by the query in
the current MbeanServer.
getListMbean
in interface IBaseManagement
p_On
- Query Mbeans to search
ObjectName
ManagementException
public String getStringAttribute(ObjectName objectName, String attrName) throws ManagementException
getStringAttribute
in interface IBaseManagement
objectName
- The MBean's ObjectNameattrName
- The attribute name
ManagementException
public Object invoke(ObjectName on, String operation, Object[] param, String[] signature, String serverName) throws ManagementException
invoke
method to be applied to a
server in the domain.
invoke
in interface IBaseManagement
on
- the ObjectName of the MBean that is the target of the invoke.operation
- operation to invokeparam
- invoke parameterssignature
- invoke parameters signatureserverName
- The server's name
ManagementException
- management operation failedpublic boolean isRegistered(ObjectName on, String serverName) throws ManagementException
isRegistered
method to be applied to a
server in the domain.
isRegistered
in interface IBaseManagement
on
- ObjectName of the MBean we are looking forserverName
- The server name
ManagementException
- management operation failedpublic MBeanServerConnection getServerConnection(String serverName) throws ManagementException
getServerConnection
in interface IBaseManagement
serverName
- The managed server name
ManagementException
- Couldn't get the connectionpublic MBeanServerConnection getServerConnection() throws ManagementException
getServerConnection
in interface IBaseManagement
ManagementException
- Couldn't get the connectionpublic void setAttribute(ObjectName on, String attribute, Object value, String serverName) throws ManagementException
setAttribute
in interface IBaseManagement
on
- The ObjectName of the MBean.serverName
- The server nameattribute
- A String specifying the name of the attribute to be set.value
- The value to set to the attribute.
ManagementException
- management operation failedpublic void setAttribute(ObjectName on, String attribute, Object value) throws ManagementException
setAttribute
in interface IBaseManagement
on
- The ObjectName of the MBean.attribute
- A String specifying the name of the attribute to be set.value
- The value to set to the attribute.
ManagementException
- management operation failedpublic ObjectName getTomcatRealm(String domainName, String serverName) throws ManagementException
IBaseManagement
getTomcatRealm
in interface IBaseManagement
domainName
- the domain's nameserverName
- the server's name
ManagementException
public List<?> getRealmItems(String realmType, String securityRealmUsed, String domainName, String serverName) throws ManagementException
IBaseManagement
getRealmItems
in interface IBaseManagement
realmType
- realm type.securityRealmUsed
- the used security realm.domainName
- the domain's nameserverName
- server's name
ManagementException
- any.public List<?> getRealmItems(String realmType, String securityRealmUsed) throws ManagementException
IBaseManagement
getRealmItems
in interface IBaseManagement
realmType
- realm type.securityRealmUsed
- the used security realm.
ManagementException
- any.public List<?> getTomcatRealmItems(String usedSecurityRealm, String domainName, String serverName) throws ManagementException
getTomcatRealmItems
in interface IBaseManagement
ManagementException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |