|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.petals.tools.webadmin.util.JMXUtils
public final class JMXUtils
Method Summary | |
---|---|
java.util.List<ServerConfiguration> |
getAllServers(ServerConfiguration serverConf)
Returns all servers of the domain, started and stopped, via a JMX call to a known server |
static JMXUtils |
getJMXUtils()
returns the singleton JMXUtils object |
java.lang.String |
getServerName(ServerConfiguration serverConf)
Returns a server's name, based on his jmx informations |
java.util.List<ServerConfiguration> |
getStartedServers(ServerConfiguration serverConf)
Retrieve all servers actually started on a domain via a JMX call to a server known. |
java.util.Map<java.lang.String,JBIEntity> |
listComponents(javax.management.MBeanServerConnection connection)
Return all components installed on a server. |
java.util.Map<java.lang.String,JBIEntity> |
listComponents(javax.management.MBeanServerConnection connection,
java.lang.String type)
Lists the deployed JBI components of a specified type. |
boolean |
petalsServerReachable(ServerConfiguration serverConf)
Indicates if a PEtALS server is accessible via JMX or not by calling a getAttribute on the administration MBean via his connection attribute |
javax.management.remote.JMXConnector |
retrieveConnector(ServerConfiguration serverConf)
Retrieve a JMX connector for a given server |
javax.management.remote.JMXConnector |
retrieveConnector(java.lang.String host,
java.lang.String jmxPort,
java.lang.String jmxLogin,
java.lang.String jmxPassword)
Retrieve a JMX connector for a server with connection parameters given |
boolean |
storageServerReachable(ServerConfiguration serverConf)
Indicates if a storage server is reachable by calling a getAttribute on its administration MBean via his connection attribute |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static JMXUtils getJMXUtils()
public java.util.List<ServerConfiguration> getAllServers(ServerConfiguration serverConf) throws java.io.IOException, javax.management.MBeanException, javax.management.AttributeNotFoundException
serverConf
- the ServerConfiguration of a server known on the domain
java.io.IOException
- PEtALS server to contact is unreachable
javax.management.MBeanException
- a communication occured when getting servers
javax.management.AttributeNotFoundException
public java.lang.String getServerName(ServerConfiguration serverConf) throws javax.management.MBeanException, java.io.IOException, javax.management.AttributeNotFoundException
serverConf
- the configuration of the server
java.io.IOException
javax.management.MBeanException
javax.management.AttributeNotFoundException
public java.util.List<ServerConfiguration> getStartedServers(ServerConfiguration serverConf) throws java.io.IOException, javax.management.MBeanException, javax.management.AttributeNotFoundException
serverConf
- the ServerConfiguration of a server known on the domain
java.io.IOException
- PEtALS server to contact is unreachable
javax.management.MBeanException
- a communication occured when getting servers
javax.management.AttributeNotFoundException
public java.util.Map<java.lang.String,JBIEntity> listComponents(javax.management.MBeanServerConnection connection) throws javax.management.MBeanException
connection
- a MBeanServerConnection to the server
javax.management.MBeanException
public java.util.Map<java.lang.String,JBIEntity> listComponents(javax.management.MBeanServerConnection connection, java.lang.String type) throws javax.management.MBeanException
connection
- a MBeanServerConnection to the servertype
- type of component : BC for Binding Components, SE for Service
Engine, ALL for both BC and SE
javax.management.MBeanException
java.lang.Exception
public javax.management.remote.JMXConnector retrieveConnector(ServerConfiguration serverConf) throws java.io.IOException
java.io.IOException
public javax.management.remote.JMXConnector retrieveConnector(java.lang.String host, java.lang.String jmxPort, java.lang.String jmxLogin, java.lang.String jmxPassword) throws java.io.IOException
java.io.IOException
public boolean petalsServerReachable(ServerConfiguration serverConf)
serverConf
- the server's configuration of the server to test
public boolean storageServerReachable(ServerConfiguration serverConf)
serverConf
- the configuration of the server to test
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |