public interface RemoteClusterService
extends java.rmi.Remote
RemoteClusterService
interface
provides methods to access cluster active members information and load balancer via RMI.
ClusterService
.ClusterService
Modifier and Type | Method and Description |
---|---|
Member |
getAdminMember()
Deprecated.
no replacement. As of 10.1. Further, the behavior of this call is never specified.
|
Member[] |
getAllMembers()
Returns all active members of the cluster.
|
java.lang.String |
getClusterName()
Returns the cluster name.
|
RemoteLoadBalancer |
getDefaultLoadBalancer()
Gets the default load balancer.
|
Member |
getLocalMember()
Returns the local member.
|
Member |
getMember()
Selects a member by a load balancer.
If the load balancer is null, this call returns localMember. |
boolean |
isAdminServerCrashed()
Deprecated.
no replacement. As of 10.0, this call returns false.
|
boolean |
isTaskQueueFull(int priority)
Deprecated.
no replacement. As of 10.0, this call returns false.
|
void |
registerLocalMember()
Deprecated.
no replacement. As of 10.0, this call NOP.
|
void |
removeLocalMember()
Deprecated.
no replacement. As of 10.0, this call NOP.
|
void |
setDefaultLoadBalancer(RemoteLoadBalancer lb)
Sets customized load balancer to replace the default load balancer.
|
java.lang.String getClusterName() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionMember[] getAllMembers() throws java.rmi.RemoteException, ClusterException
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionClusterException
- if this method is called after the cluster shuts down.Member getLocalMember() throws java.rmi.RemoteException
java.rmi.RemoteException
- if a RemoteException occurs in the remote Server.Member getAdminMember() throws java.rmi.RemoteException, ClusterException
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionClusterException
- if this method is called after the cluster shuts down.RemoteLoadBalancer getDefaultLoadBalancer() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionvoid setDefaultLoadBalancer(RemoteLoadBalancer lb) throws java.rmi.RemoteException
lb
- the load balancer instance, if null, getMember
will return localMember.java.rmi.RemoteException
- if communication-related error occurs during RMI call executiongetMember()
Member getMember() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionsetDefaultLoadBalancer(RemoteLoadBalancer)
void registerLocalMember() throws java.rmi.RemoteException, ClusterException
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionClusterException
- if this method is called after the cluster shuts down.void removeLocalMember() throws java.rmi.RemoteException, ClusterException
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionClusterException
- if this method is called after the cluster shuts down.boolean isAdminServerCrashed() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionboolean isTaskQueueFull(int priority) throws java.rmi.RemoteException, ClusterException
java.rmi.RemoteException
- if communication-related error occurs during RMI call executionClusterException
- if this method is called after the cluster shuts down.