|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IBaseManagement
Method Summary | |
---|---|
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 |
getDomainName()
|
int |
getIntegerAttribute(ObjectName objectName,
String attrName)
Get the integer attribute value of an MBean in the current MBean Server. |
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 p_On,
String serverName)
Return the list of ObjectName Mbean gotten by the query in
the current MbeanServer. |
List<?> |
getRealmItems(String realmType,
String sSecurityRealmUsed)
Get realm items of the given type within the current server of the current domain. |
List<?> |
getRealmItems(String realmType,
String sSecurityRealmUsed,
String domainName,
String serverName)
Get realm items of the given type. |
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 |
getServerName()
|
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)
|
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 |
isRegistered(ObjectName on,
String serverName)
Implementation of the isRegistered method to be applied to a
server in 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. |
Method Detail |
---|
String getServerName()
String getDomainName()
String getStringAttribute(ObjectName objectName, String attrName) throws ManagementException
objectName
- The MBean's ObjectNameattrName
- The attribute name
ManagementException
int getIntegerAttribute(ObjectName objectName, String attrName) throws ManagementException
objectName
- The MBean's ObjectNameattrName
- The attribute name
ManagementException
String getKeyValue(String objectName, String keyName) throws ManagementException
objectName
- the OBJECT_NAME (String form)keyName
- key property name
ManagementException
String[] getKeyValues(String[] objectNames, String keyName) throws ManagementException
objectNames
- the OBJECT_NAMEskeyName
- key name
ManagementException
J2EEMBeanAttributeInfo[] getAttributes(ObjectName objectName, String serverName) throws ManagementException
objectName
- serverName
-
ManagementException
Object getAttribute(ObjectName on, String attribute, String serverName) throws ManagementException
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 failedboolean isRegistered(ObjectName on, String serverName) throws ManagementException
isRegistered
method to be applied to a
server in the domain.
on
- ObjectName of the MBean we are looking forserverName
- The server name
ManagementException
- management operation failedObject invoke(ObjectName on, String operation, Object[] param, String[] signature, String serverName) throws ManagementException
invoke
method to be applied to a
server in the domain.
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 failedList getListMbean(ObjectName p_On, String serverName) throws ManagementException
ObjectName
Mbean gotten by the query in
the current MbeanServer.
p_On
- Query Mbeans to search
ObjectName
ManagementException
MBeanServerConnection getServerConnection(String serverName) throws ManagementException
serverName
- The managed server name
ManagementException
- Couldn't get the connectionvoid setAttribute(ObjectName on, String attribute, Object value, String serverName) throws ManagementException
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 failedMBeanServerConnection getServerConnection() throws ManagementException
ManagementException
- Couldn't get the connectionvoid setAttribute(ObjectName on, String attribute, Object value) throws ManagementException
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 failedObjectName getTomcatRealm(String domainName, String serverName) throws ManagementException
domainName
- the domain's nameserverName
- the server's name
ManagementException
List<?> getRealmItems(String realmType, String sSecurityRealmUsed, String domainName, String serverName) throws ManagementException
realmType
- realm type.sSecurityRealmUsed
- the used security realm.domainName
- the domain's nameserverName
- server's name
ManagementException
- any.List<?> getTomcatRealmItems(String usedSecurityRealm, String domainName, String serverName) throws ManagementException
ManagementException
List<?> getRealmItems(String realmType, String sSecurityRealmUsed) throws ManagementException
realmType
- realm type.sSecurityRealmUsed
- the used security realm.
ManagementException
- any.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |