|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectstella.telescope.OpenPilarSocket.Monitor
private class OpenPilarSocket.Monitor
A class that takes a list of commands and checks incoming state changes if all of the monitored commands are completed/acknowledged.
| Field Summary | |
|---|---|
private Object |
acknowledge
The lock object for waits on acknowledge. |
private Collection |
commands
The list of commands monitored. |
private Object |
complete
The lock object for complete waits. |
| Constructor Summary | |
|---|---|
protected |
OpenPilarSocket.Monitor(Collection watch)
|
| Method Summary | |
|---|---|
protected boolean |
allAcknowledged()
Checks, if all monitored commands have been acknowledged. |
protected boolean |
allCompleted()
Checks, if all monitored commands have been completed. |
private void |
checkState(TplCommand ready)
Checks, if the incoming class is watched by this monitor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Collection commands
private Object acknowledge
private Object complete
| Constructor Detail |
|---|
protected OpenPilarSocket.Monitor(Collection watch)
| Method Detail |
|---|
private void checkState(TplCommand ready)
protected boolean allAcknowledged()
protected boolean allCompleted()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||