|
SmartFrog 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.smartfrog.sfcore.prim.TerminationRecord
public class TerminationRecord
Represents a termination status for components. Components use this record to indicate how they have failed. This record is passed to other components in the containment tree on termination.
| Field Summary | |
|---|---|
static java.lang.String |
ABNORMAL
String name for errortype abnormal. |
java.lang.Throwable |
cause
exception causing a failure. |
java.lang.String |
description
Description. |
java.lang.String |
errorType
Errortype. |
static java.lang.String |
EXTERNAL_REFERENCE_DEAD
String name for errortype externalReferenceDead. |
Reference |
id
id of failing component. |
static java.lang.String |
NORMAL
String name for errortype normal. |
| Constructor Summary | |
|---|---|
TerminationRecord(java.lang.String errType,
java.lang.String descr,
Reference id)
Constructs a new termination record. |
|
TerminationRecord(java.lang.String errType,
java.lang.String descr,
Reference id,
java.lang.Throwable cause)
Constructs a new termination record. |
|
| Method Summary | |
|---|---|
static TerminationRecord |
abnormal(java.lang.String descr,
Reference id)
Utility method. |
static TerminationRecord |
abnormal(java.lang.String descr,
Reference id,
java.lang.Throwable cause)
Utility method. |
static TerminationRecord |
externalReferenceDead(Reference id)
Utility method. |
static TerminationRecord |
normal(Reference id)
Utility method. |
java.lang.String |
toString()
Returns string representation of termination record. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String NORMAL
public static final java.lang.String ABNORMAL
public static final java.lang.String EXTERNAL_REFERENCE_DEAD
public java.lang.String errorType
public java.lang.String description
public Reference id
public java.lang.Throwable cause
| Constructor Detail |
|---|
public TerminationRecord(java.lang.String errType,
java.lang.String descr,
Reference id)
errType - error type, system recognized types are "normal",
"abnormal" and "externalReferenceDead".descr - description of terminationid - id of failing component
public TerminationRecord(java.lang.String errType,
java.lang.String descr,
Reference id,
java.lang.Throwable cause)
errType - error type, system recognized types are "normal",
"abnormal" and "externalReferenceDead".descr - description of terminationid - id of failing componentcause - the exception that caused the abnormal termination| Method Detail |
|---|
public static TerminationRecord normal(Reference id)
id - id of component
public static TerminationRecord abnormal(java.lang.String descr,
Reference id)
descr - description of abnormal failureid - id of component
public static TerminationRecord abnormal(java.lang.String descr,
Reference id,
java.lang.Throwable cause)
descr - description of abnormal failureid - id of componentcause - the exception that caused the abnormal termination
public static TerminationRecord externalReferenceDead(Reference id)
id - id of component
public java.lang.String toString()
toString in class java.lang.Object
|
SmartFrog CORE 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||