|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DomainManagement
This is a variation on the javax.management.j2ee.Management interface
required to be exposed by JOnAS through the MEJB session bean. This extends
the main functionality of the MEJB session bean by allowing clients to query
mbean information from other servers within the same domain.
Please Note: domainServerName
in any of the exposed methods
can be set to one of the values of the array returned by the following call
to a master server:
getAttribute(null, domainObjectName, "serverNames")
where
ObjectName domainObjectName
corresponds to the ObjectName:
domainName:j2eeType=J2EEDomain,name=domainName
Method Summary | |
---|---|
java.lang.Object |
getAttribute(java.lang.String domainServerName,
javax.management.ObjectName name,
java.lang.String attribute)
Gets the value of a specified attribute inside the mbean corresponding to the objectname name for the server with name
domainServerName . |
javax.management.AttributeList |
getAttributes(java.lang.String domainServerName,
javax.management.ObjectName name,
java.lang.String[] attributes)
Gets the values of attributes in attributes inside the
mbean corresponding to the objectname name for the server
with name domainServerName . |
java.lang.Integer |
getMBeanCount(java.lang.String domainServerName)
The number of MBeans registered in the mbean server corresponding to the server domainServerName in the domain. |
javax.management.MBeanInfo |
getMBeanInfo(java.lang.String domainServerName,
javax.management.ObjectName name)
Get information about a specific MBean with ObjectName name
registered on server domainServerName . |
java.lang.Object |
invoke(java.lang.String domainServerName,
javax.management.ObjectName name,
java.lang.String operationName,
java.lang.Object[] params,
java.lang.String[] signature)
Invoke an operation on an MBean with ObjectName name . |
boolean |
isRegistered(java.lang.String domainServerName,
javax.management.ObjectName name)
Check if the MBean with ObjectName name is registered in
the server with the name domainServerName . |
java.util.Set |
queryNames(java.lang.String domainServerName,
javax.management.ObjectName name,
javax.management.QueryExp query)
Query for ObjectNames on the server named domainServerName based
on a query string. |
void |
setAttribute(java.lang.String domainServerName,
javax.management.ObjectName name,
javax.management.Attribute attribute)
Sets the value of a specified attribute inside the mbean corresponding to the objectname name for the server with name
domainServerName . |
javax.management.AttributeList |
setAttributes(java.lang.String domainServerName,
javax.management.ObjectName name,
javax.management.AttributeList attributes)
Sets the values of attributes in attributes inside the
mbean corresponding to the objectname name for the server
with name domainServerName . |
Methods inherited from interface javax.management.j2ee.Management |
---|
getAttribute, getAttributes, getDefaultDomain, getListenerRegistry, getMBeanCount, getMBeanInfo, invoke, isRegistered, queryNames, setAttribute, setAttributes |
Methods inherited from interface javax.ejb.EJBObject |
---|
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove |
Method Detail |
---|
java.lang.Object getAttribute(java.lang.String domainServerName, javax.management.ObjectName name, java.lang.String attribute) throws javax.management.MBeanException, javax.management.AttributeNotFoundException, javax.management.InstanceNotFoundException, javax.management.ReflectionException, java.rmi.RemoteException
name
for the server with name
domainServerName
.
domainServerName
- Name of the server in domain. Use null
for
referring to this server.name
- ObjectName corresponding to the MBean to query.attribute
- The member attribute to be queried.
javax.management.MBeanException
javax.management.AttributeNotFoundException
javax.management.InstanceNotFoundException
javax.management.ReflectionException
java.rmi.RemoteException
javax.management.AttributeList getAttributes(java.lang.String domainServerName, javax.management.ObjectName name, java.lang.String[] attributes) throws javax.management.InstanceNotFoundException, javax.management.ReflectionException, java.rmi.RemoteException
attributes
inside the
mbean corresponding to the objectname name
for the server
with name domainServerName
.
domainServerName
- Name of the server in domain. Use null
for
referring to this server.name
- ObjectName corresponding to the MBean to query.attributes
- Array of attribute names to be queried.
javax.management.InstanceNotFoundException
javax.management.ReflectionException
java.rmi.RemoteException
java.lang.Integer getMBeanCount(java.lang.String domainServerName) throws javax.management.MBeanException, javax.management.AttributeNotFoundException, javax.management.InstanceNotFoundException, javax.management.ReflectionException, java.rmi.RemoteException
domainServerName
in the domain.
domainServerName
- Name of the server in domain. Use null
for
referring to this server.
javax.management.MBeanException
javax.management.AttributeNotFoundException
javax.management.InstanceNotFoundException
javax.management.ReflectionException
java.rmi.RemoteException
javax.management.MBeanInfo getMBeanInfo(java.lang.String domainServerName, javax.management.ObjectName name) throws javax.management.IntrospectionException, javax.management.InstanceNotFoundException, javax.management.ReflectionException, java.rmi.RemoteException
name
registered on server domainServerName
.
domainServerName
- Name of the server in domain. Use null
for
referring to this server.name
- ObjectName corresponding to the MBean to query.
javax.management.IntrospectionException
javax.management.InstanceNotFoundException
javax.management.ReflectionException
java.rmi.RemoteException
java.lang.Object invoke(java.lang.String domainServerName, javax.management.ObjectName name, java.lang.String operationName, java.lang.Object[] params, java.lang.String[] signature) throws javax.management.MBeanException, javax.management.InstanceNotFoundException, javax.management.ReflectionException, java.rmi.RemoteException
name
.
domainServerName
- Name of the server in domain. Use null
for
referring to this server.name
- ObjectName corresponding to the MBean to query.operationName
- Name of operation to invoke.params
- Parameters to pass to the operation.signature
- Signature of operation.
javax.management.MBeanException
javax.management.InstanceNotFoundException
javax.management.ReflectionException
java.rmi.RemoteException
boolean isRegistered(java.lang.String domainServerName, javax.management.ObjectName name) throws java.rmi.RemoteException
name
is registered in
the server with the name domainServerName
.
domainServerName
- Name of the server in domain. Use null
for
referring to this server.name
- ObjectName corresponding to the MBean to query.
true
if registered.
java.rmi.RemoteException
java.util.Set queryNames(java.lang.String domainServerName, javax.management.ObjectName name, javax.management.QueryExp query) throws java.rmi.RemoteException
domainServerName
based
on a query string.
domainServerName
- Name of the server in domain. Use null
for
referring to this server.name
- ObjectName corresponding to the query string.query
- Query expression to apply on ObjectName.
java.rmi.RemoteException
void setAttribute(java.lang.String domainServerName, javax.management.ObjectName name, javax.management.Attribute attribute) throws javax.management.MBeanException, javax.management.AttributeNotFoundException, javax.management.InstanceNotFoundException, javax.management.InvalidAttributeValueException, javax.management.ReflectionException, java.rmi.RemoteException
name
for the server with name
domainServerName
.
domainServerName
- Name of the server in domain. Use null
for
referring to this server.name
- ObjectName corresponding to the query string.attribute
- The member attribute to be set.
javax.management.MBeanException
javax.management.AttributeNotFoundException
javax.management.InstanceNotFoundException
javax.management.InvalidAttributeValueException
javax.management.ReflectionException
java.rmi.RemoteException
javax.management.AttributeList setAttributes(java.lang.String domainServerName, javax.management.ObjectName name, javax.management.AttributeList attributes) throws javax.management.InstanceNotFoundException, javax.management.ReflectionException, java.rmi.RemoteException
attributes
inside the
mbean corresponding to the objectname name
for the server
with name domainServerName
.
domainServerName
- Name of the server in domain. Use null
for
referring to this server.name
- ObjectName corresponding to the MBean.attributes
- Array of attribute names to be set.
javax.management.InstanceNotFoundException
javax.management.ReflectionException
java.rmi.RemoteException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |