@ManagementOperation(description="Get a collection of the names of all keys for which the DistributedReplicantManager has bindings", impact=Impact.ReadOnly) public Collection<String> getDRMServiceNames() { DistributedReplicantManagerImpl drm = getDistributedReplicantManagerImpl(); return drm == null ? null : drm.getAllServices(); }
@ManagementOperation(description="List all known DistributedReplicantManager keys and the nodes that have registered bindings", impact=Impact.ReadOnly) public String listDRMContent() throws Exception { DistributedReplicantManagerImpl drm = getDistributedReplicantManagerImpl(); return drm == null ? null : drm.listContent(); }
@ManagementOperation(description="List in XML format all known DistributedReplicantManager keys and the nodes that have registered bindings", impact=Impact.ReadOnly) public String listDRMContentAsXml() throws Exception { DistributedReplicantManagerImpl drm = getDistributedReplicantManagerImpl(); return drm == null ? null : drm.listXmlContent(); }
@ManagementOperation(description="Returns whether the DistributedReplicantManager considers this node to be the master for the given service", impact=Impact.ReadOnly, params={@ManagementParameter(name="key", description="The name of the service")}) public boolean isDRMMasterForService(String key) { DistributedReplicantManagerImpl drm = getDistributedReplicantManagerImpl(); return drm == null ? null : drm.isMasterReplica(key); }
@ManagementOperation(description="Returns the names of the nodes that have registered objects with the DistributedReplicantManager under the given key", impact=Impact.ReadOnly, params={@ManagementParameter(name="key", description="The name of the service")}) public List<String> lookupDRMNodeNames(String key) { DistributedReplicantManagerImpl drm = getDistributedReplicantManagerImpl(); return drm == null ? null : drm.lookupReplicantsNodeNames(key); }
@ManagementOperation(description="Returns a hash of the list of nodes that " + "have registered an object with the DistributedReplicantManager under the given key", impact=Impact.ReadOnly, params={@ManagementParameter(name="key", description="The name of the service")}) public int getDRMServiceViewId(String key) { DistributedReplicantManagerImpl drm = getDistributedReplicantManagerImpl(); return drm == null ? null : drm.getReplicantsViewId(key); }