|
CSP for Java (JCSP) 1.1-rc4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jcsp.lang.SpuriousLog
public class SpuriousLog
This holds the log of spurious wakeups and early timeouts.
Some JVMs also timeout on calls of wait(timeout) early. This class enables the specification of how early will be acceptable to JCSP. ``Timeouts'' returned earlier than the set threshold are treated as spurious wakeups (i.e. the process is put back to sleep). Provision is also made for counting and reporting the accepted early timeouts.
To operate, this logging must first be switched on (start()
).
Field Summary | |
---|---|
static int |
AlternativeSelect
This indexes the counts of spurious wakeups ( getSpuriousWakeUpCounts() ),
indicating the class and operation that suffered. |
static int |
AlternativeSelectWithTimeout
This indexes the counts of spurious wakeups ( report() ),
indicating the class and operation that suffered. |
static int |
AltingBarrierCoordinateStartEnable
This indexes the counts of spurious wakeups ( getSpuriousWakeUpCounts() ),
indicating the class and operation that suffered. |
static int |
Any2AnyChannelIntRead
This indexes the counts of spurious wakeups ( getSpuriousWakeUpCounts() ),
indicating the class and operation that suffered. |
static int |
Any2AnyChannelIntWrite
This indexes the counts of spurious wakeups ( report() ),
indicating the class and operation that suffered. |
static int |
Any2AnyChannelIntXRead
This indexes the counts of spurious wakeups ( getSpuriousWakeUpCounts() ),
indicating the class and operation that suffered. |
static int |
Any2AnyChannelIntXWrite
This indexes the counts of spurious wakeups ( report() ),
indicating the class and operation that suffered. |
static int |
Any2AnyChannelRead
This indexes the counts of spurious wakeups ( getSpuriousWakeUpCounts() ),
indicating the class and operation that suffered. |
static int |
Any2AnyChannelWrite
This indexes the counts of spurious wakeups ( report() ),
indicating the class and operation that suffered. |
static int |
Any2AnyChannelXRead
This indexes the counts of spurious wakeups ( getSpuriousWakeUpCounts() ),
indicating the class and operation that suffered. |
static int |
Any2AnyChannelXWrite
This indexes the counts of spurious wakeups ( report() ),
indicating the class and operation that suffered. |
static int |
Any2OneChannelIntRead
This indexes the counts of spurious wakeups ( getSpuriousWakeUpCounts() ),
indicating the class and operation that suffered. |
static int |
Any2OneChannelIntWrite
This indexes the counts of spurious wakeups ( report() ),
indicating the class and operation that suffered. |
static int |
Any2OneChannelIntXRead
This indexes the counts of spurious wakeups ( getSpuriousWakeUpCounts() ),
indicating the class and operation that suffered. |
static int |
Any2OneChannelIntXWrite
This indexes the counts of spurious wakeups ( report() ),
indicating the class and operation that suffered. |
static int |
Any2OneChannelRead
This indexes the counts of spurious wakeups ( getSpuriousWakeUpCounts() ),
indicating the class and operation that suffered. |
static int |
Any2OneChannelWrite
This indexes the counts of spurious wakeups ( report() ),
indicating the class and operation that suffered. |
static int |
Any2OneChannelXRead
This indexes the counts of spurious wakeups ( getSpuriousWakeUpCounts() ),
indicating the class and operation that suffered. |
static int |
Any2OneChannelXWrite
This indexes the counts of spurious wakeups ( report() ),
indicating the class and operation that suffered. |
static int |
BarrierSync
This indexes the counts of spurious wakeups ( getSpuriousWakeUpCounts() ),
indicating the class and operation that suffered. |
static int |
BucketFallInto
This indexes the counts of spurious wakeups ( report() ),
indicating the class and operation that suffered. |
static int |
One2AnyChannelIntRead
This indexes the counts of spurious wakeups ( getSpuriousWakeUpCounts() ),
indicating the class and operation that suffered. |
static int |
One2AnyChannelIntWrite
This indexes the counts of spurious wakeups ( report() ),
indicating the class and operation that suffered. |
static int |
One2AnyChannelIntXRead
This indexes the counts of spurious wakeups ( getSpuriousWakeUpCounts() ),
indicating the class and operation that suffered. |
static int |
One2AnyChannelIntXWrite
This indexes the counts of spurious wakeups ( report() ),
indicating the class and operation that suffered. |
static int |
One2AnyChannelRead
This indexes the counts of spurious wakeups ( getSpuriousWakeUpCounts() ),
indicating the class and operation that suffered. |
static int |
One2AnyChannelWrite
This indexes the counts of spurious wakeups ( report() ),
indicating the class and operation that suffered. |
static int |
One2AnyChannelXRead
This indexes the counts of spurious wakeups ( getSpuriousWakeUpCounts() ),
indicating the class and operation that suffered. |
static int |
One2AnyChannelXWrite
This indexes the counts of spurious wakeups ( report() ),
indicating the class and operation that suffered. |
static int |
One2OneChannelIntRead
This indexes the counts of spurious wakeups ( getSpuriousWakeUpCounts() ),
indicating the class and operation that suffered. |
static int |
One2OneChannelIntWrite
This indexes the counts of spurious wakeups ( report() ),
indicating the class and operation that suffered. |
static int |
One2OneChannelIntXRead
This indexes the counts of spurious wakeups ( getSpuriousWakeUpCounts() ),
indicating the class and operation that suffered. |
static int |
One2OneChannelIntXWrite
This indexes the counts of spurious wakeups ( report() ),
indicating the class and operation that suffered. |
static int |
One2OneChannelRead
This indexes the counts of spurious wakeups ( getSpuriousWakeUpCounts() ),
indicating the class and operation that suffered. |
static int |
One2OneChannelWrite
This indexes the counts of spurious wakeups ( report() ),
indicating the class and operation that suffered. |
static int |
One2OneChannelXRead
This indexes the counts of spurious wakeups ( getSpuriousWakeUpCounts() ),
indicating the class and operation that suffered. |
static int |
One2OneChannelXWrite
This indexes the counts of spurious wakeups ( report() ),
indicating the class and operation that suffered. |
static int |
StopRun
This indexes the counts of spurious wakeups ( report() ),
indicating the class and operation that suffered. |
Method Summary | |
---|---|
static void |
finish()
Finish logging of spurious wakeups. |
static long |
getEarlyTimeout()
This returns the allowed early timeout (in msecs). |
static int[] |
getSpuriousWakeUpCounts()
Returns the counts of spurious wakeups so far. |
static int |
numberEarlyTimeouts()
Returns the number of early timeouts accepted so far. |
static int |
numberSpuriousWakeUps()
Returns the number of spurious wakeups so far. |
static String |
report()
This returns a report on the counts of spurious wakeups and early timeouts so far. |
static void |
setEarlyTimeout(long earlyTimeout)
This sets the allowed early timeout (in msecs). |
static void |
start()
Start logging of spurious wakeups. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int One2OneChannelIntRead
getSpuriousWakeUpCounts()
),
indicating the class and operation that suffered.
public static final int One2OneChannelIntWrite
report()
),
indicating the class and operation that suffered.
public static final int One2OneChannelIntXRead
getSpuriousWakeUpCounts()
),
indicating the class and operation that suffered.
public static final int One2OneChannelIntXWrite
report()
),
indicating the class and operation that suffered.
public static final int One2OneChannelRead
getSpuriousWakeUpCounts()
),
indicating the class and operation that suffered.
public static final int One2OneChannelWrite
report()
),
indicating the class and operation that suffered.
public static final int One2OneChannelXRead
getSpuriousWakeUpCounts()
),
indicating the class and operation that suffered.
public static final int One2OneChannelXWrite
report()
),
indicating the class and operation that suffered.
public static final int Any2OneChannelIntRead
getSpuriousWakeUpCounts()
),
indicating the class and operation that suffered.
public static final int Any2OneChannelIntWrite
report()
),
indicating the class and operation that suffered.
public static final int Any2OneChannelIntXRead
getSpuriousWakeUpCounts()
),
indicating the class and operation that suffered.
public static final int Any2OneChannelIntXWrite
report()
),
indicating the class and operation that suffered.
public static final int Any2OneChannelRead
getSpuriousWakeUpCounts()
),
indicating the class and operation that suffered.
public static final int Any2OneChannelWrite
report()
),
indicating the class and operation that suffered.
public static final int Any2OneChannelXRead
getSpuriousWakeUpCounts()
),
indicating the class and operation that suffered.
public static final int Any2OneChannelXWrite
report()
),
indicating the class and operation that suffered.
public static final int One2AnyChannelIntRead
getSpuriousWakeUpCounts()
),
indicating the class and operation that suffered.
public static final int One2AnyChannelIntWrite
report()
),
indicating the class and operation that suffered.
public static final int One2AnyChannelIntXRead
getSpuriousWakeUpCounts()
),
indicating the class and operation that suffered.
public static final int One2AnyChannelIntXWrite
report()
),
indicating the class and operation that suffered.
public static final int One2AnyChannelRead
getSpuriousWakeUpCounts()
),
indicating the class and operation that suffered.
public static final int One2AnyChannelWrite
report()
),
indicating the class and operation that suffered.
public static final int One2AnyChannelXRead
getSpuriousWakeUpCounts()
),
indicating the class and operation that suffered.
public static final int One2AnyChannelXWrite
report()
),
indicating the class and operation that suffered.
public static final int Any2AnyChannelIntRead
getSpuriousWakeUpCounts()
),
indicating the class and operation that suffered.
public static final int Any2AnyChannelIntWrite
report()
),
indicating the class and operation that suffered.
public static final int Any2AnyChannelIntXRead
getSpuriousWakeUpCounts()
),
indicating the class and operation that suffered.
public static final int Any2AnyChannelIntXWrite
report()
),
indicating the class and operation that suffered.
public static final int Any2AnyChannelRead
getSpuriousWakeUpCounts()
),
indicating the class and operation that suffered.
public static final int Any2AnyChannelWrite
report()
),
indicating the class and operation that suffered.
public static final int Any2AnyChannelXRead
getSpuriousWakeUpCounts()
),
indicating the class and operation that suffered.
public static final int Any2AnyChannelXWrite
report()
),
indicating the class and operation that suffered.
public static final int AlternativeSelect
getSpuriousWakeUpCounts()
),
indicating the class and operation that suffered.
public static final int AlternativeSelectWithTimeout
report()
),
indicating the class and operation that suffered.
public static final int BarrierSync
getSpuriousWakeUpCounts()
),
indicating the class and operation that suffered.
public static final int BucketFallInto
report()
),
indicating the class and operation that suffered.
public static final int AltingBarrierCoordinateStartEnable
getSpuriousWakeUpCounts()
),
indicating the class and operation that suffered.
Note: this field is not operative in the current JCSP release. Spurious wakeups on AltingBarriers are handled correctly -- just not recorded.
public static final int StopRun
report()
),
indicating the class and operation that suffered.
Method Detail |
---|
public static void start()
public static void finish()
public static int numberSpuriousWakeUps()
public static int[] getSpuriousWakeUpCounts()
public static void setEarlyTimeout(long earlyTimeout)
This should be set before any concurrency is started. It should only be set once. There is no concurrency protection!
earlyTimeout
- the allowed early timeout (in msecs).public static long getEarlyTimeout()
public static int numberEarlyTimeouts()
public static String report()
|
CSP for Java (JCSP) 1.1-rc4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |