netcom.log
Interface LoggerInterface

All Known Implementing Classes:
MDS, MDSProxy

public interface LoggerInterface

Title: LoggerInterface This is an interface used by the Logger to request for data about the MDS/proxy node. The data is used for statistics that will be put into a LogMessage and sent back to the GUI. Copyright: Copyright (c) 2002 Company NETCOM


Method Summary
 java.util.Collection getFriends()
          gets collection of friends mds node has
 java.lang.String getIP()
          gets what the IP of the proxy/mds node is
 java.lang.String getNodeName()
          gets what the name of the proxy/mds node is
 int getNodeType()
          gets whether the node is a mds or proxy node
 int getNumConnections()
          gets what the number of connections the mds or proxy node has.
 int getThePort()
          gets what the port of the mds or proxy node is.
 

Method Detail

getNodeType

public int getNodeType()
gets whether the node is a mds or proxy node

Returns:
int that defines type of node. 1 id MDS, 2 if proxy

getNodeName

public java.lang.String getNodeName()
gets what the name of the proxy/mds node is

Returns:
String that tells name of node.

getIP

public java.lang.String getIP()
gets what the IP of the proxy/mds node is

Returns:
String that tells IP of node.

getThePort

public int getThePort()
gets what the port of the mds or proxy node is.

Returns:
int that tells port number.

getFriends

public java.util.Collection getFriends()
gets collection of friends mds node has

Returns:
Collection that is made of InetSocketAddress objects

getNumConnections

public int getNumConnections()
gets what the number of connections the mds or proxy node has.

Returns:
int that tells number of connections.