|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjap.forward.JAPRoutingSettingsPropagandaThreadLock
public class JAPRoutingSettingsPropagandaThreadLock
This class is used for synchronization between the threads, when startPropaganda() is called.
| Field Summary | |
|---|---|
private boolean |
m_propagandaThreadReady
Stores whether the propaganda thread has come to the end (true) or not (false). |
private int |
m_registrationStatus
Stores the status of the forwarding server registration process at the infoservices. |
| Constructor Summary | |
|---|---|
JAPRoutingSettingsPropagandaThreadLock()
This constructs a new JAPRoutingSettingsPropagandaThreadLock. |
|
| Method Summary | |
|---|---|
int |
getRegistrationStatus()
Returns the status of the registration process of the local forwarding server at the infoservices. |
boolean |
isPropagandaThreadReady()
Returns whether the propaganda thread has come to the end (registered the forwarding server at all specified infoservices or was interrupted while registering). |
void |
propagandaThreadIsReady()
Sets the propagandaThreadReady value to the ready state (propaganda thread has come to the end. |
void |
registrationWasInterrupted()
Sets the internal registration status to the interrupted state. |
void |
updateRegistrationStatus(ServerSocketPropagandist a_currentPropagandist)
Updates the stored registration status according to the status of the supplied ServerSocketPropagandist. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private boolean m_propagandaThreadReady
private int m_registrationStatus
JAPRoutingSettings| Constructor Detail |
|---|
public JAPRoutingSettingsPropagandaThreadLock()
| Method Detail |
|---|
public void propagandaThreadIsReady()
public boolean isPropagandaThreadReady()
public void updateRegistrationStatus(ServerSocketPropagandist a_currentPropagandist)
a_currentPropagandist - The ServerSocketPropagandist, which is used for updating the
internal stored registration status. So it is considered, if
you call getRegistrationStatus() later.public void registrationWasInterrupted()
JAPRoutingSettings.REGISTRATION_INTERRUPTEDpublic int getRegistrationStatus()
JAPConfRouting
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||