GemFire 6.6.4

com.gemstone.gemfire.admin
Class AlertLevel

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

public class AlertLevel
extends Object
implements Serializable

Type-safe enumeration for Alert level.

Since:
3.5
See Also:
Serialized Form

Field Summary
static AlertLevel ERROR
           
static AlertLevel OFF
           
 int ordinal
          int used as ordinal to represent this AlertLevel
static AlertLevel SEVERE
           
static AlertLevel WARNING
           
 
Method Summary
 boolean equals(Object other)
          Indicates whether some other object is "equal to" this one.
static AlertLevel forName(String name)
          Returns the AlertLevel with the given name
static AlertLevel forSeverity(int severity)
          Returns the AlertLevel for the given severity
static AlertLevel fromOrdinal(int ordinal)
          Return the AlertLevel represented by specified ordinal
 String getName()
           
 int getSeverity()
           
 int hashCode()
          Returns a hash code for the object.
 String toString()
          Returns a string representation for this alert level.
static AlertLevel[] values()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

WARNING

public static final AlertLevel WARNING

ERROR

public static final AlertLevel ERROR

SEVERE

public static final AlertLevel SEVERE

OFF

public static final AlertLevel OFF

ordinal

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

Method Detail

fromOrdinal

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


forSeverity

public static AlertLevel forSeverity(int severity)
Returns the AlertLevel for the given severity

Throws:
IllegalArgumentException - If there is no alert level with the given severity

forName

public static AlertLevel forName(String name)
Returns the AlertLevel with the given name

Throws:
IllegalArgumentException - If there is no alert level named name

getSeverity

public int getSeverity()

getName

public String getName()

values

public static AlertLevel[] values()

toString

public String toString()
Returns a string representation for this alert level.

Overrides:
toString in class Object
Returns:
the name of this alert level

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.6.4

Copyright © 1997-2012 VMware, Inc. All rights reserved.