Interface StaticMembershipServiceMBean
-
- All Known Implementing Classes:
StaticMembershipService
public interface StaticMembershipServiceMBeanMBean interface for the static membership service.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MemberfindMemberByName(java.lang.String name)Finds a member by name.intgetConnectTimeout()Returns the connection timeout in milliseconds.longgetExpirationTime()Returns the member expiration time in milliseconds.java.lang.String[]getMembersByName()Returns the names of all cluster members.longgetPingInterval()Returns the ping interval in milliseconds.java.util.PropertiesgetProperties()Returns the configuration properties.longgetRpcTimeout()Returns the RPC timeout in milliseconds.booleangetUseThread()Returns whether a background ping thread is in use.booleanhasMembers()Checks if there are any members in the cluster.
-
-
-
Method Detail
-
getExpirationTime
long getExpirationTime()
Returns the member expiration time in milliseconds.- Returns:
- the expiration time
-
getConnectTimeout
int getConnectTimeout()
Returns the connection timeout in milliseconds.- Returns:
- the connection timeout
-
getRpcTimeout
long getRpcTimeout()
Returns the RPC timeout in milliseconds.- Returns:
- the RPC timeout
-
getUseThread
boolean getUseThread()
Returns whether a background ping thread is in use.- Returns:
- true if a background thread is used
-
getPingInterval
long getPingInterval()
Returns the ping interval in milliseconds.- Returns:
- the ping interval
-
getProperties
java.util.Properties getProperties()
Returns the configuration properties.- Returns:
- the properties
-
hasMembers
boolean hasMembers()
Checks if there are any members in the cluster.- Returns:
- true if there are members
-
getMembersByName
java.lang.String[] getMembersByName()
Returns the names of all cluster members.- Returns:
- array of member names
-
findMemberByName
Member findMemberByName(java.lang.String name)
Finds a member by name.- Parameters:
name- the member name- Returns:
- the member, or null if not found
-
-