| 
 | 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 | AlternativeSelectThis indexes the counts of spurious wakeups ( getSpuriousWakeUpCounts()),
 indicating the class and operation that suffered. | 
| static int | AlternativeSelectWithTimeoutThis indexes the counts of spurious wakeups ( report()),
 indicating the class and operation that suffered. | 
| static int | AltingBarrierCoordinateStartEnableThis indexes the counts of spurious wakeups ( getSpuriousWakeUpCounts()),
 indicating the class and operation that suffered. | 
| static int | Any2AnyChannelIntReadThis indexes the counts of spurious wakeups ( getSpuriousWakeUpCounts()),
 indicating the class and operation that suffered. | 
| static int | Any2AnyChannelIntWriteThis indexes the counts of spurious wakeups ( report()),
 indicating the class and operation that suffered. | 
| static int | Any2AnyChannelIntXReadThis indexes the counts of spurious wakeups ( getSpuriousWakeUpCounts()),
 indicating the class and operation that suffered. | 
| static int | Any2AnyChannelIntXWriteThis indexes the counts of spurious wakeups ( report()),
 indicating the class and operation that suffered. | 
| static int | Any2AnyChannelReadThis indexes the counts of spurious wakeups ( getSpuriousWakeUpCounts()),
 indicating the class and operation that suffered. | 
| static int | Any2AnyChannelWriteThis indexes the counts of spurious wakeups ( report()),
 indicating the class and operation that suffered. | 
| static int | Any2AnyChannelXReadThis indexes the counts of spurious wakeups ( getSpuriousWakeUpCounts()),
 indicating the class and operation that suffered. | 
| static int | Any2AnyChannelXWriteThis indexes the counts of spurious wakeups ( report()),
 indicating the class and operation that suffered. | 
| static int | Any2OneChannelIntReadThis indexes the counts of spurious wakeups ( getSpuriousWakeUpCounts()),
 indicating the class and operation that suffered. | 
| static int | Any2OneChannelIntWriteThis indexes the counts of spurious wakeups ( report()),
 indicating the class and operation that suffered. | 
| static int | Any2OneChannelIntXReadThis indexes the counts of spurious wakeups ( getSpuriousWakeUpCounts()),
 indicating the class and operation that suffered. | 
| static int | Any2OneChannelIntXWriteThis indexes the counts of spurious wakeups ( report()),
 indicating the class and operation that suffered. | 
| static int | Any2OneChannelReadThis indexes the counts of spurious wakeups ( getSpuriousWakeUpCounts()),
 indicating the class and operation that suffered. | 
| static int | Any2OneChannelWriteThis indexes the counts of spurious wakeups ( report()),
 indicating the class and operation that suffered. | 
| static int | Any2OneChannelXReadThis indexes the counts of spurious wakeups ( getSpuriousWakeUpCounts()),
 indicating the class and operation that suffered. | 
| static int | Any2OneChannelXWriteThis indexes the counts of spurious wakeups ( report()),
 indicating the class and operation that suffered. | 
| static int | BarrierSyncThis indexes the counts of spurious wakeups ( getSpuriousWakeUpCounts()),
 indicating the class and operation that suffered. | 
| static int | BucketFallIntoThis indexes the counts of spurious wakeups ( report()),
 indicating the class and operation that suffered. | 
| static int | One2AnyChannelIntReadThis indexes the counts of spurious wakeups ( getSpuriousWakeUpCounts()),
 indicating the class and operation that suffered. | 
| static int | One2AnyChannelIntWriteThis indexes the counts of spurious wakeups ( report()),
 indicating the class and operation that suffered. | 
| static int | One2AnyChannelIntXReadThis indexes the counts of spurious wakeups ( getSpuriousWakeUpCounts()),
 indicating the class and operation that suffered. | 
| static int | One2AnyChannelIntXWriteThis indexes the counts of spurious wakeups ( report()),
 indicating the class and operation that suffered. | 
| static int | One2AnyChannelReadThis indexes the counts of spurious wakeups ( getSpuriousWakeUpCounts()),
 indicating the class and operation that suffered. | 
| static int | One2AnyChannelWriteThis indexes the counts of spurious wakeups ( report()),
 indicating the class and operation that suffered. | 
| static int | One2AnyChannelXReadThis indexes the counts of spurious wakeups ( getSpuriousWakeUpCounts()),
 indicating the class and operation that suffered. | 
| static int | One2AnyChannelXWriteThis indexes the counts of spurious wakeups ( report()),
 indicating the class and operation that suffered. | 
| static int | One2OneChannelIntReadThis indexes the counts of spurious wakeups ( getSpuriousWakeUpCounts()),
 indicating the class and operation that suffered. | 
| static int | One2OneChannelIntWriteThis indexes the counts of spurious wakeups ( report()),
 indicating the class and operation that suffered. | 
| static int | One2OneChannelIntXReadThis indexes the counts of spurious wakeups ( getSpuriousWakeUpCounts()),
 indicating the class and operation that suffered. | 
| static int | One2OneChannelIntXWriteThis indexes the counts of spurious wakeups ( report()),
 indicating the class and operation that suffered. | 
| static int | One2OneChannelReadThis indexes the counts of spurious wakeups ( getSpuriousWakeUpCounts()),
 indicating the class and operation that suffered. | 
| static int | One2OneChannelWriteThis indexes the counts of spurious wakeups ( report()),
 indicating the class and operation that suffered. | 
| static int | One2OneChannelXReadThis indexes the counts of spurious wakeups ( getSpuriousWakeUpCounts()),
 indicating the class and operation that suffered. | 
| static int | One2OneChannelXWriteThis indexes the counts of spurious wakeups ( report()),
 indicating the class and operation that suffered. | 
| static int | StopRunThis 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 | ||||||||