| java.lang.Object javax.management.relation.RelationSupport example.jmx.relation.SimpleRelation
SimpleRelation | public class SimpleRelation extends RelationSupport implements SimpleRelationMBean(Code) | | Simple definition of a standard MBean, named "SimpleRelation".
The "SimpleRelation" standard MBean shows how to define a relation MBean,
i.e. expected to represent a relation but also including attributes and
operations for management by implementing its corresponding
"SimpleRelationMBean" management interface.
This MBean has two attributes and one operation exposed
for management by a JMX agent:
- the read/write "State" attribute,
- the read only "NbChanges" attribute,
- the "reset()" operation.
This object also has one property and one method not exposed
for management by a JMX agent:
- the "NbResets" property,
- the "getNbResets()" method.
It extends the RelationSupport class to retrieve the implementation of the
Relation interface.
|
Method Summary | |
public Integer | getNbChanges() Getter: get the "NbChanges" attribute of the "SimpleRelation" standard MBean. | public Integer | getNbResets() Return the "NbResets" property. | public String | getState() Getter: get the "State" attribute of the "SimpleRelation" standard MBean. | public void | reset() Operation: reset to their initial values the "State" and "NbChanges"
attributes of the "SimpleRelation" standard MBean. | public void | setState(String s) Setter: set the "State" attribute of the "SimpleRelation" standard MBean. |
getNbChanges | public Integer getNbChanges()(Code) | | Getter: get the "NbChanges" attribute of the "SimpleRelation" standard MBean.
the current value of the "NbChanges" attribute. |
getNbResets | public Integer getNbResets()(Code) | | Return the "NbResets" property.
This method is not a Getter in the JMX sense because
it is not exposed in the "SimpleRelationMBean" interface.
the current value of the "NbResets" property. |
getState | public String getState()(Code) | | Getter: get the "State" attribute of the "SimpleRelation" standard MBean.
the current value of the "State" attribute. |
reset | public void reset()(Code) | | Operation: reset to their initial values the "State" and "NbChanges"
attributes of the "SimpleRelation" standard MBean.
|
setState | public void setState(String s)(Code) | | Setter: set the "State" attribute of the "SimpleRelation" standard MBean.
|
Methods inherited from javax.management.relation.RelationSupport | protected Object _getRole(String roleName) throws IllegalArgumentException, RelationServiceNotRegisteredException(Code)(Java Doc) protected Object _setRole(Role role) throws IllegalArgumentException, RelationServiceNotRegisteredException, RelationTypeNotFoundException, RelationNotFoundException(Code)(Java Doc) public RoleResult getAllRoles() throws RelationServiceNotRegisteredException(Code)(Java Doc) public Map getReferencedMBeans()(Code)(Java Doc) public String getRelationId()(Code)(Java Doc) public ObjectName getRelationServiceName()(Code)(Java Doc) public String getRelationTypeName()(Code)(Java Doc) public List getRole(String roleName) throws IllegalArgumentException, RoleNotFoundException, RelationServiceNotRegisteredException(Code)(Java Doc) public Integer getRoleCardinality(String roleName) throws IllegalArgumentException, RoleNotFoundException(Code)(Java Doc) public RoleResult getRoles(String[] roleNames) throws IllegalArgumentException, RelationServiceNotRegisteredException(Code)(Java Doc) public void handleMBeanUnregistration(ObjectName objectName, String roleName) throws IllegalArgumentException, RoleNotFoundException, InvalidRoleValueException, RelationServiceNotRegisteredException, RelationTypeNotFoundException, RelationNotFoundException(Code)(Java Doc) public Boolean isInRelationService()(Code)(Java Doc) public void postDeregister()(Code)(Java Doc) public void postRegister(Boolean registrationDone)(Code)(Java Doc) public void preDeregister() throws Exception(Code)(Java Doc) public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception(Code)(Java Doc) public RoleList retrieveAllRoles()(Code)(Java Doc) public void setRelationServiceManagementFlag(Boolean flag) throws IllegalArgumentException(Code)(Java Doc) public void setRole(Role role) throws IllegalArgumentException, RoleNotFoundException, RelationTypeNotFoundException, InvalidRoleValueException, RelationServiceNotRegisteredException, RelationNotFoundException(Code)(Java Doc) public RoleResult setRoles(RoleList roleList) throws IllegalArgumentException, RelationServiceNotRegisteredException, RelationTypeNotFoundException, RelationNotFoundException(Code)(Java Doc)
|
|
|