com.sun.appserv.management.base
Class OperationStatusBase
java.lang.Object
   com.sun.appserv.management.base.MapCapableBase
com.sun.appserv.management.base.MapCapableBase
       com.sun.appserv.management.base.OperationStatusBase
com.sun.appserv.management.base.OperationStatusBase
- All Implemented Interfaces: 
- MapCapable, OperationStatus
- Direct Known Subclasses: 
- DeploymentStatusImpl
- public class OperationStatusBase- extends MapCapableBase- implements OperationStatus
Base class for OperationStatus.
 
 
 
| Constructor Summary | 
| OperationStatusBase(java.util.Map m,
                    java.lang.String className)Create a new instance which represents the appropriate class.
 | 
 
| Method Summary | 
|  int | getStatusCode()If there is no explicit status code, an operation is considered
                successful if nothing was thrown.
 | 
|  java.lang.Throwable | getThrowable()If a Throwable was thrown, this implies some degree of failure
                from partial to total.
 | 
|  void | setStatusCode(int statusCode)
 | 
|  void | setThrowable(java.lang.Throwable t)
 | 
| protected  boolean | validate()Return true if internal state is valid, false otherwise.
 | 
 
| Methods inherited from class com.sun.appserv.management.base.MapCapableBase | 
| asMap, checkInJavaUtil, checkLegalObject, checkLegalObject, checkValidType, equals, getboolean, getBoolean, getByte, getField, getFile, getInteger, getMap, getMapClassName, getObject, getString, getStringArray, illegalObject, makeImmutable, putAll, putField, putFieldHook, toString, validateNullOrOfType, validateThrow | 
 
| Methods inherited from class java.lang.Object | 
| clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
 
OperationStatusBase
public OperationStatusBase(java.util.Map m,
                           java.lang.String className)
- Create a new instance which represents the appropriate class.
 
- Parameters:
- m- a Map representing the appropriate class
- className- the class which the Map represents
validate
protected boolean validate()
- Description copied from class: MapCapableBase
- Return true if internal state is valid, false otherwise.
 
- 
- Specified by:
- validatein class- MapCapableBase
 
- 
 
getStatusCode
public int getStatusCode()
- Description copied from interface: OperationStatus
- If there is no explicit status code, an operation is considered
                successful if nothing was thrown.
                
                Legal status codes include:
                 
                - #STATUS_CODE_SUCCESS
- #STATUS_CODE_FAILURE
- #STATUS_CODE_WARNING
- any other status codes defined by sub-interfaces/subclasses
 
 
- 
- Specified by:
- getStatusCodein interface- OperationStatus
 
- 
- Returns:
- the status code
 
setStatusCode
public void setStatusCode(int statusCode)
- 
 
- 
 
getThrowable
public java.lang.Throwable getThrowable()
- Description copied from interface: OperationStatus
- If a Throwable was thrown, this implies some degree of failure
                from partial to total.
 
- 
- Specified by:
- getThrowablein interface- OperationStatus
 
- 
- Returns:
- any Throwable that was thrown
 
setThrowable
public void setThrowable(java.lang.Throwable t)
- 
 
- 
 
Submit a bug or feature Copyright 2003 Sun Microsystems, Inc. All rights reserved.