|
|||||||||
| 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 | |
|---|---|
Object |
getAttribute(String domainServerName,
ObjectName name,
String attribute)
Gets the value of a specified attribute inside the mbean corresponding to the objectname name for the server with name
domainServerName . |
AttributeList |
getAttributes(String domainServerName,
ObjectName name,
String[] attributes)
Gets the values of attributes in attributes inside the
mbean corresponding to the objectname name for the server
with name domainServerName. |
Integer |
getMBeanCount(String domainServerName)
The number of MBeans registered in the mbean server corresponding to the server domainServerName in the domain. |
MBeanInfo |
getMBeanInfo(String domainServerName,
ObjectName name)
Get information about a specific MBean with ObjectName name
registered on server domainServerName. |
Object |
invoke(String domainServerName,
ObjectName name,
String operationName,
Object[] params,
String[] signature)
Invoke an operation on an MBean with ObjectName name. |
boolean |
isRegistered(String domainServerName,
ObjectName name)
Check if the MBean with ObjectName name is registered in
the server with the name domainServerName. |
Set |
queryNames(String domainServerName,
ObjectName name,
QueryExp query)
Query for ObjectNames on the server named domainServerNamebased
on a query string. |
void |
setAttribute(String domainServerName,
ObjectName name,
Attribute attribute)
Sets the value of a specified attribute inside the mbean corresponding to the objectname name for the server with name
domainServerName . |
AttributeList |
setAttributes(String domainServerName,
ObjectName name,
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 |
|---|
Object getAttribute(String domainServerName,
ObjectName name,
String attribute)
throws MBeanException,
AttributeNotFoundException,
InstanceNotFoundException,
ReflectionException,
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.
MBeanException
AttributeNotFoundException
InstanceNotFoundException
ReflectionException
RemoteException
AttributeList getAttributes(String domainServerName,
ObjectName name,
String[] attributes)
throws InstanceNotFoundException,
ReflectionException,
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.
InstanceNotFoundException
ReflectionException
RemoteException
Integer getMBeanCount(String domainServerName)
throws MBeanException,
AttributeNotFoundException,
InstanceNotFoundException,
ReflectionException,
RemoteException
domainServerName in the domain.
domainServerName - Name of the server in domain. Use null for
referring to this server.
MBeanException
AttributeNotFoundException
InstanceNotFoundException
ReflectionException
RemoteException
MBeanInfo getMBeanInfo(String domainServerName,
ObjectName name)
throws IntrospectionException,
InstanceNotFoundException,
ReflectionException,
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.
IntrospectionException
InstanceNotFoundException
ReflectionException
RemoteException
Object invoke(String domainServerName,
ObjectName name,
String operationName,
Object[] params,
String[] signature)
throws MBeanException,
InstanceNotFoundException,
ReflectionException,
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.
MBeanException
InstanceNotFoundException
ReflectionException
RemoteException
boolean isRegistered(String domainServerName,
ObjectName name)
throws 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.
RemoteException
Set queryNames(String domainServerName,
ObjectName name,
QueryExp query)
throws RemoteException
domainServerNamebased
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.
RemoteException
void setAttribute(String domainServerName,
ObjectName name,
Attribute attribute)
throws MBeanException,
AttributeNotFoundException,
InstanceNotFoundException,
InvalidAttributeValueException,
ReflectionException,
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.
MBeanException
AttributeNotFoundException
InstanceNotFoundException
InvalidAttributeValueException
ReflectionException
RemoteException
AttributeList setAttributes(String domainServerName,
ObjectName name,
AttributeList attributes)
throws InstanceNotFoundException,
ReflectionException,
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.
InstanceNotFoundException
ReflectionException
RemoteException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||