|
Java EE 5 SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.appserv.management.base.MapCapableBase
com.sun.appserv.management.base.OperationStatusBase
public class OperationStatusBase
Base class for OperationStatus.
| Field Summary |
|---|
| Fields inherited from interface com.sun.appserv.management.base.OperationStatus |
|---|
STATUS_CODE_FAILURE, STATUS_CODE_KEY, STATUS_CODE_SUCCESS, STATUS_CODE_WARNING, THROWABLE_KEY |
| Fields inherited from interface com.sun.appserv.management.base.MapCapable |
|---|
MAP_CAPABLE_CLASS_NAME_KEY |
| Constructor Summary | |
|---|---|
OperationStatusBase(Map<String,T> m,
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. |
Throwable |
getThrowable()
If a Throwable was thrown, this implies some degree of failure from partial to total. |
void |
setStatusCode(int statusCode)
set the status code for the operation |
void |
setThrowable(Throwable t)
Set the Throwable for the operation, which may be null. |
protected boolean |
validate()
Return true if internal state is valid, false otherwise. |
| Methods inherited from class com.sun.appserv.management.base.MapCapableBase |
|---|
asMap, asMapHook, checkInJavaUtil, checkLegalObject, checkLegalObject, checkValidType, equals, getboolean, getBoolean, getByte, getField, getFile, getInteger, getMap, getMapClassName, getObject, getString, getStringArray, hashCode, illegalObject, makeImmutable, putAll, putField, putFieldHook, toString, validateNullOrOfType, validateThrow |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.sun.appserv.management.base.MapCapable |
|---|
asMap, getMapClassName |
| Constructor Detail |
|---|
public OperationStatusBase(Map<String,T> m,
String className)
m - a Map representing the appropriate classclassName - the class which the Map represents| Method Detail |
|---|
protected boolean validate()
MapCapableBase
validate in class MapCapableBasepublic int getStatusCode()
OperationStatusLegal status codes include:
getStatusCode in interface OperationStatuspublic void setStatusCode(int statusCode)
public Throwable getThrowable()
OperationStatus
getThrowable in interface OperationStatuspublic void setThrowable(Throwable t)
|
Java EE 5 SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved.