org.sape.carbon.services.management.interceptor
Class MBeanOperationImpactEnum

java.lang.Object
  |
  +--org.sape.carbon.core.util.enum.BaseEnum
        |
        +--org.sape.carbon.services.management.interceptor.MBeanOperationImpactEnum
All Implemented Interfaces:
Serializable

public class MBeanOperationImpactEnum
extends BaseEnum
implements Serializable

Maps to the JMX severities of an Operation that are labeled in

Since:
carbon 1.1
Version:
$Revision: 1.6 $($Author: dvoet $ / $Date: 2003/05/05 21:21:33 $)
Author:
Greg Hinkle, October 2002
See Also:
Serialized Form

Nested Class Summary
 class MBeanOperationImpactEnum.MBeanOperationImpactEnumNotFoundException
          This class is a typesafe retriever exception for an enumeration
 
Nested classes inherited from class org.sape.carbon.core.util.enum.BaseEnum
 
Field Summary
static MBeanOperationImpactEnum ACTION
          Action: Operations that change the state of some part of the system
static MBeanOperationImpactEnum ACTION_INFO
          Action & Info: Operations taht both change the state of the system as well as reveal that state.
static MBeanOperationImpactEnum INFO
          Info: Operations that purely expose the state of something in the system, but in no way change it.
static MBeanOperationImpactEnum UKNOWN
          Unknown: Describes an impact that is unknown
 
Fields inherited from class org.sape.carbon.core.util.enum.BaseEnum
name, ordinal
 
Constructor Summary
private MBeanOperationImpactEnum(String name, int ordinal)
          Constructs a enumeration of type LifecycleStateEnum
 
Method Summary
static MBeanOperationImpactEnum getByName(String name)
          Strongly typed enum retriever
static MBeanOperationImpactEnum getByOrdinal(int ordinal)
          Strongly typed enum retriever
 int getImpactConstant()
          Returns the library constant for the impact number.
(package private)  Object readResolve()
          Overrides part of serialization to return a reference to an existing static Enumeration
 
Methods inherited from class org.sape.carbon.core.util.enum.BaseEnum
equals, getByName, getByOrdinal, getName, getOrdinal, hashCode, iterator, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ACTION

public static final MBeanOperationImpactEnum ACTION
Action: Operations that change the state of some part of the system


ACTION_INFO

public static final MBeanOperationImpactEnum ACTION_INFO
Action & Info: Operations taht both change the state of the system as well as reveal that state.


INFO

public static final MBeanOperationImpactEnum INFO
Info: Operations that purely expose the state of something in the system, but in no way change it.


UKNOWN

public static final MBeanOperationImpactEnum UKNOWN
Unknown: Describes an impact that is unknown

Constructor Detail

MBeanOperationImpactEnum

private MBeanOperationImpactEnum(String name,
                                 int ordinal)
Constructs a enumeration of type LifecycleStateEnum

Parameters:
name - the name of the enumeration instance to create
ordinal - the ordinal of the enumeration instance
Method Detail

getImpactConstant

public int getImpactConstant()
Returns the library constant for the impact number.

Returns:
the int impact number for an operation impact
Since:
carbon 1.1

getByName

public static final MBeanOperationImpactEnum getByName(String name)
                                                throws MBeanOperationImpactEnum.MBeanOperationImpactEnumNotFoundException
Strongly typed enum retriever

MBeanOperationImpactEnum.MBeanOperationImpactEnumNotFoundException
See Also:
BaseEnum.getByName(java.lang.String, java.lang.Class)

getByOrdinal

public static final MBeanOperationImpactEnum getByOrdinal(int ordinal)
                                                   throws MBeanOperationImpactEnum.MBeanOperationImpactEnumNotFoundException
Strongly typed enum retriever

MBeanOperationImpactEnum.MBeanOperationImpactEnumNotFoundException
See Also:
BaseEnum.getByOrdinal(int, java.lang.Class)

readResolve

final Object readResolve()
                  throws ObjectStreamException
Overrides part of serialization to return a reference to an existing static Enumeration

ObjectStreamException
See Also:
BaseEnum#readResolve


Copyright 1999-2003 Sapient Corporation. All Rights Reserved.