GemFire 5.7.1

com.gemstone.gemfire.distributed
Interface Role

All Superinterfaces:
Comparable

public interface Role
extends Comparable

Members of the distributed system can fill one or more user defined roles. A role is metadata that describes how the member relates to other members or what purpose it fills. Roles are specified when connecting to the DistributedSystem.

Since:
5.0

Method Summary
 int getCount()
          Returns the count of members currently filling this role.
 String getName()
          Returns the name of this role.
 boolean isPresent()
          Returns true if this role is currently present in distributed system.
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getName

String getName()
Returns the name of this role.

Returns:
user-defined string name of this role

isPresent

boolean isPresent()
Returns true if this role is currently present in distributed system. If true, then at least one member in the system is configured with this role, regardless of whether or not that member has a cache.

Returns:
true if this role is currently present in distributed system

getCount

int getCount()
Returns the count of members currently filling this role. These members may or may not have a cache.

Returns:
number of members in system currently filling this role

GemFire 5.7.1

Copyright © 2002-2008 GemStone Systems, Inc. All Rights Reserved.