GemFire 6.5

com.gemstone.gemfire.admin
Class SystemMemberType

java.lang.Object
  extended by com.gemstone.gemfire.admin.SystemMemberType
All Implemented Interfaces:
Serializable

public class SystemMemberType
extends Object
implements Serializable

Type-safe definition for system members.

Since:
3.5
See Also:
Serialized Form

Field Summary
static SystemMemberType APPLICATION
          Application connected to the distributed system
static SystemMemberType CACHE_SERVER
          Deprecated. as of 5.7 use CACHE_VM instead.
static SystemMemberType CACHE_VM
          GemFire Cache VM connected to the distributed system
static SystemMemberType MANAGER
          GemFire shared-memory manager connected to the distributed system
 int ordinal
          int used as ordinal to represent this Scope
 
Method Summary
 boolean equals(Object other)
          Indicates whether some other object is "equal to" this one.
static SystemMemberType fromOrdinal(int ordinal)
          Return the SystemMemberType represented by specified ordinal
 String getName()
           
 int hashCode()
          Returns a hash code for the object.
 boolean isApplication()
          Return whether this is APPLICATION.
 boolean isCacheServer()
          Deprecated. as of 5.7 use isCacheVm() instead.
 boolean isCacheVm()
          Return whether this is CACHE_VM.
 boolean isManager()
          Return whether this is MANAGER.
 String toString()
          Returns a string representation for this system member type.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MANAGER

public static final SystemMemberType MANAGER
GemFire shared-memory manager connected to the distributed system


APPLICATION

public static final SystemMemberType APPLICATION
Application connected to the distributed system


CACHE_VM

public static final SystemMemberType CACHE_VM
GemFire Cache VM connected to the distributed system


CACHE_SERVER

@Deprecated
public static final SystemMemberType CACHE_SERVER
Deprecated. as of 5.7 use CACHE_VM instead.
GemFire Cache Server connected to the distributed system


ordinal

public final int ordinal
int used as ordinal to represent this Scope

Method Detail

fromOrdinal

public static SystemMemberType fromOrdinal(int ordinal)
Return the SystemMemberType represented by specified ordinal


getName

public String getName()

isManager

public boolean isManager()
Return whether this is MANAGER.


isApplication

public boolean isApplication()
Return whether this is APPLICATION.


isCacheServer

@Deprecated
public boolean isCacheServer()
Deprecated. as of 5.7 use isCacheVm() instead.

Return whether this is CACHE_SERVER.


isCacheVm

public boolean isCacheVm()
Return whether this is CACHE_VM.


toString

public String toString()
Returns a string representation for this system member type.

Overrides:
toString in class Object
Returns:
the name of this system member type

equals

public boolean equals(Object other)
Indicates whether some other object is "equal to" this one.

Overrides:
equals in class Object
Parameters:
other - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.

hashCode

public int hashCode()
Returns a hash code for the object. This method is supported for the benefit of hashtables such as those provided by java.util.Hashtable.

Overrides:
hashCode in class Object
Returns:
the integer 0 if description is null; otherwise a unique integer.

GemFire 6.5

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