|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--edu.mit.ai.psg.traveler.ActivityRecordBase
|
+--edu.mit.ai.psg.traveler.SynchronizationRecordDefault
|
+--edu.mit.ai.psg.traveler.CallRecordDefault
Default CallRecord used by TraceRecorderDefault.invoking(java.lang.Object, java.lang.reflect.Member, java.lang.Object[]).
If recording a synchronized method and target of call is cloneable,
creates a clone of the target then to record its state at the time of the
call. (Method arguments are not cloned, since they may be remote, and/or
may change state by the time their methods are invoked.)
TraceRecorderDefault.invoking(java.lang.Object, java.lang.reflect.Member, java.lang.Object[])| Inner classes inherited from class edu.mit.ai.psg.traveler.SynchronizationRecordDefault |
SynchronizationRecordDefault.Entry,
SynchronizationRecordDefault.Exit |
| Inner classes inherited from class edu.mit.ai.psg.traveler.SynchronizationRecord |
SynchronizationRecord.Entry,
SynchronizationRecord.Exit |
| Field Summary | |
protected static Object |
INCOMPLETE
|
protected Object[] |
myParameters
|
protected Object |
result
|
protected Object |
resultState
|
protected static Object |
RETURNED_VALUE
|
protected static Object |
RETURNED_VOID
|
protected static Object |
THREW_EXCEPTION
|
protected static Vector |
waitMethods
Object.wait methods that affect synchronization and therefore should be considered synchronization activities |
| Fields inherited from class edu.mit.ai.psg.traveler.SynchronizationRecordDefault |
myMember,
myTargetNow,
myTargetThen |
| Fields inherited from class edu.mit.ai.psg.traveler.ActivityRecordBase |
parent |
| Constructor Summary | |
CallRecordDefault(Object target,
Member member,
Object[] parameters)
|
|
| Method Summary | |
Object[] |
getParameters()
actual parameter values (not cloned) |
Object |
getResult()
value returned, exception thrown, or null |
String |
invocationString()
string describing invocation target.method(arguments...) |
boolean |
isComplete()
true if call record has been completed |
boolean |
isCompleteByReturn()
true if call completed by returning |
boolean |
isCompleteByReturnVoid()
true if call completed by returning void |
boolean |
isCompleteByThrow()
true if call completed by throwing an exception |
boolean |
isSynchronized()
true if member is synchronized method (or isSynchronizedWait) |
boolean |
isSynchronizedWait()
true if method is one of the Object.wait methods |
void |
recordReturned(Object value)
Record that call completed by returning value |
void |
recordReturnedVoid()
Record that call completed by returning void |
void |
recordThrew(Throwable thrown)
Record that call completed by throwing thrown |
String |
resultString()
string describing result: no recorded result, returned void, returned value, or threw exception |
String |
toString()
returns "(synchronized(target) in member)" |
| Methods inherited from class edu.mit.ai.psg.traveler.SynchronizationRecordDefault |
addSynchronizationChild,
addSynchronizationEntry,
addSynchronizationExit,
finished,
getMember,
getSynchronizationChildren,
getSynchronizationEntry,
getSynchronizationExit,
getSynchronizationParent,
getTargetNow,
getTargetThen,
makeSynchronizationEntryRecord,
makeSynchronizationExitRecord,
setSynchronizationParent |
| Methods inherited from class edu.mit.ai.psg.traveler.ActivityRecordBase |
addChild,
addThreadedChild,
cloneObject,
ensureListValue,
getChildren,
getChildrenInThread,
getParent,
getProperty,
getThreadedChildren,
isFinished,
putProperty,
removeProperty,
setParent |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
protected Object[] myParameters
protected static final Object INCOMPLETE
protected static final Object THREW_EXCEPTION
protected static final Object RETURNED_VOID
protected static final Object RETURNED_VALUE
protected Object resultState
protected Object result
protected static Vector waitMethods
| Constructor Detail |
public CallRecordDefault(Object target,
Member member,
Object[] parameters)
target - Object receiving call (If static method, declaring class
will be substituted so it may be null. If constructor, declaring class
is substituted only if null).member - Method or Constructorparameters - actual parameter values| Method Detail |
public Object[] getParameters()
public boolean isComplete()
public boolean isCompleteByThrow()
public boolean isCompleteByReturn()
public boolean isCompleteByReturnVoid()
public Object getResult()
public void recordReturnedVoid()
public void recordReturned(Object value)
valuepublic void recordThrew(Throwable thrown)
thrownpublic boolean isSynchronized()
public boolean isSynchronizedWait()
Object.wait()public String toString()
public String invocationString()
public String resultString()
|
Copyright (c) 1996-1999 Massachusetts Institute of Technology Feedback: jeva-feedback@ai.mit.edu |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||