|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectMUM.data.IClientStateSynchronizer
This class implements a synchronizer to synchronize the ubiQoS client operations.
| Field Summary | |
static java.lang.String |
CLIENT_DESTROYED
In this state the needed software has been downloaded |
static java.lang.String |
NOT_CONSISTENT
In this state the client is in a not consistent state |
static java.lang.String |
PLAYING
In this state the UbiQoS client is playing |
static java.lang.String |
STOPPED
In this state the UbiQoS client is stopped |
static java.lang.String |
SW_DOWNLOADED
In this state the needed software has been downloaded |
static java.lang.String |
SYSTEM_INITIALIZED
In this state the distributed system has been initialized |
static java.lang.String |
SYSTEM_RECONFIGURED
In this state the system has been reconfigured |
static java.lang.String |
WAITING_NEW_REQUESTS
In this state the client is waiting new requests |
| Constructor Summary | |
IClientStateSynchronizer(java.io.PrintStream out)
|
|
| Method Summary | |
java.lang.String |
getCurrentState()
|
java.lang.String |
getNextState()
|
boolean |
isWaitingForNextState()
Checks if there is anyone bloked because we are waiting for a change of the state |
void |
notifyState(java.lang.String changeToState)
This method changes the current state and notifies this to all the other threads waiting for a state change |
void |
waitState(java.lang.String targetState)
This method stops the thread until the target state (the parameter) is reached |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String NOT_CONSISTENT
public static final java.lang.String SW_DOWNLOADED
public static final java.lang.String WAITING_NEW_REQUESTS
public static final java.lang.String SYSTEM_INITIALIZED
public static final java.lang.String PLAYING
public static final java.lang.String STOPPED
public static final java.lang.String SYSTEM_RECONFIGURED
public static final java.lang.String CLIENT_DESTROYED
| Constructor Detail |
public IClientStateSynchronizer(java.io.PrintStream out)
| Method Detail |
public void waitState(java.lang.String targetState)
targetState - the state we are waiting forpublic void notifyState(java.lang.String changeToState)
public java.lang.String getCurrentState()
public java.lang.String getNextState()
public boolean isWaitingForNextState()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||