|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object infoservice.tor.MixminionDirectoryAgent
public class MixminionDirectoryAgent
This class is responsible for fetching the information about the active tor nodes. This class is a singleton.
Field Summary | |
---|---|
private static java.lang.String |
DEFAULT_DIRECTORY_FILE
The filename where we can find the TOR nodes file on a TOR directory server. |
private byte[] |
m_currentMixminionNodesList
Stores the XML container with the current tor nodes list. |
private long |
m_updateInterval
Stores the cycle time (in milliseconds) for updating the tor nodes list. |
private java.net.URL |
m_urlDirectoryServer
|
private static MixminionDirectoryAgent |
ms_mdaInstance
Stores the instance of MixminionDirectoryAgent (singleton). |
Constructor Summary | |
---|---|
private |
MixminionDirectoryAgent()
Creates a new instance of MixminionDirectoryAgent. |
Method Summary | |
---|---|
void |
addDirectoryServer(java.net.URL directoryServer)
|
static MixminionDirectoryAgent |
getInstance()
Returns the instance of MixminionDirectoryAgent (singleton). |
byte[] |
getMixminionNodesList()
Returns the ZLib commpresed current Mixminion nodes list. |
void |
run()
This is the implementation of the mixminion nodes list update thread. |
void |
startUpdateThread(long a_updateInterval)
This starts the internal mixminion nodes list update thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String DEFAULT_DIRECTORY_FILE
private static MixminionDirectoryAgent ms_mdaInstance
private java.net.URL m_urlDirectoryServer
private byte[] m_currentMixminionNodesList
private long m_updateInterval
Constructor Detail |
---|
private MixminionDirectoryAgent()
Method Detail |
---|
public static MixminionDirectoryAgent getInstance()
public void addDirectoryServer(java.net.URL directoryServer)
public void startUpdateThread(long a_updateInterval)
a_updateInterval
- The cycle time in milliseconds for fetching the current list of the
tor nodes.public byte[] getMixminionNodesList()
public void run()
run
in interface java.lang.Runnable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |