FileDocCategorySizeDatePackage
OperationStatus.javaAPI DocGlassfish v2 API3434Fri May 04 22:30:30 BST 2007com.sun.appserv.management.base

OperationStatus

public interface OperationStatus implements MapCapable
Base interface for all OperationStatus objects.

Fields Summary
public static final String
THROWABLE_KEY
Key used to look up the Throwable (if any) from the Map. The value returned is a java.lang.Throwable.
public static final String
STATUS_CODE_KEY
Key used to look up the status code (if any) from the Map. The value returned is an Integer whose intValue() is the status code. Corresponds to {@link #getStatusCode}.
public final int
STATUS_CODE_SUCCESS
Status code indicating success of the operation.
public final int
STATUS_CODE_FAILURE
Status code indicating failure of the operation.
public static final int
STATUS_CODE_WARNING
Status code indicating success, with warning.
Constructors Summary
Methods Summary
public intgetStatusCode()
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

return
the status code

public java.lang.ThrowablegetThrowable()
If a Throwable was thrown, this implies some degree of failure from partial to total.

return
any Throwable that was thrown