Commit ae245dfb authored by Andre Freyssinet's avatar Andre Freyssinet

Code cleaning.

parent cda63255
......@@ -147,6 +147,9 @@ public final class AdminTopic extends Topic implements AdminTopicMBean {
/** Reference of the server's local AdminTopic instance. */
private static AdminTopic ref;
// TODO (AF): Should be transient and initialized at starting, or we could use
// AgentServer.getServerId() method.
/** Identifier of the server this topic is deployed on. */
private int serverId;
......@@ -157,7 +160,7 @@ public final class AdminTopic extends Topic implements AdminTopicMBean {
* <b>Key:</b> destination name<br>
* <b>Object:</b> destination agent identifier
*/
private Map destinationsTable = new Hashtable();
private Map<String, DestinationDesc> destinationsTable = new Hashtable<String, DestinationDesc>();
/**
* Table holding the TCP users identifications.
......@@ -165,7 +168,7 @@ public final class AdminTopic extends Topic implements AdminTopicMBean {
* <b>Key:</b> user name<br>
* <b>Object:</b> user password
*/
private Map usersTable = new Hashtable();
private Map<String, Identity> usersTable = new Hashtable<String, Identity>();
/**
* Table holding the TCP users proxies identifiers.
......@@ -173,7 +176,7 @@ public final class AdminTopic extends Topic implements AdminTopicMBean {
* <b>Key:</b> user name<br>
* <b>Object:</b> proxy's identifier
*/
private Map proxiesTable = new Hashtable();
private Map<String, AgentId> proxiesTable = new Hashtable<String, AgentId>();
/**
* Table keeping the administrator's requests.
......@@ -181,7 +184,7 @@ public final class AdminTopic extends Topic implements AdminTopicMBean {
* <b>Key:</b> request's message identifier<br>
* <b>Value:</b> request's message ReplyTo field
*/
private Map requestsTable = new Hashtable();
private Map<String, AgentId> requestsTable = new Hashtable<String, AgentId>();
/** Counter of messages produced by this AdminTopic. */
private long msgCounter = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment