|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object netcom.log.LogMessage
Title: LogMessage This is the object which is used to communicate between the logger and the GUI This object is sent via ObjectIOStream and thus has to implement Serializable Copyright: Copyright (c) 2002 Company NETCOM
Field Summary | |
static int |
DISCONNECT
|
static int |
LOG_ENTRIES
|
static int |
STATISTICS
|
Constructor Summary | |
LogMessage()
Default Constructor |
|
LogMessage(int the_type,
int the_session,
int from,
int till,
java.lang.String the_ip)
Constructor Creates new LogMessage used when GUI wants LogEntries and asks by sending this |
|
LogMessage(int the_type,
java.lang.String the_ip)
Creates new LogMessage used when GUI wants stats, or wants to disconnect ... |
|
LogMessage(int mdsnode_type,
java.lang.String the_name,
java.lang.String the_IP,
int the_port,
int the__current_session,
java.util.Collection the_friends,
int the_num_connections)
Creates new LogMessage that will be sent back to GUI upon request for stats of mds |
|
LogMessage(int mdsnode_type,
java.lang.String the_name,
java.lang.String the_IP,
int the_port,
int the__current_session,
int the_num_connections)
Creates new LogMessage that will be sent back to GUI upon request for stats of proxy |
|
LogMessage(int mdsnode_type,
java.lang.String the_name,
java.lang.String the_IP,
int the_port,
java.util.Vector the_log_sessions)
LogMessage object that Logger will send back to GUI when GUI requests for LogEntries in a specified LogRange |
Method Summary | |
java.util.Collection |
getFreinds()
accessor for Collection that holds the names of the friends of the node Only used if parent is mds node... |
java.lang.String |
getIP()
accessor for IP of node that Logmessage is sent to |
java.util.Vector |
getLogEntries()
accessor for Vector that holds the LogEntries that are requested for by GUI |
java.lang.String |
getNodeName()
accessor for name of node that Logmessage is sent to |
int |
getNodeType()
Accessor for variable that tells if logger is looging for a mds node or proxy node |
int |
getNumConnections()
accessor for variable that holds number of connections the node has at time of request |
int |
getPort()
accessor for variable that holds port number of parent node |
int |
getRangeFrom()
Accessor for variable that tells where the range of requested Logentries begin |
int |
getRangeTo()
Accessor for variable that tells where the range of requested Logentries end |
int |
getSession()
Accessor for variable that tells which session we want logentries from |
int |
getType()
accessor for variable that specifies the request type of GUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int STATISTICS
public static final int LOG_ENTRIES
public static final int DISCONNECT
Constructor Detail |
public LogMessage()
public LogMessage(int the_type, java.lang.String the_ip)
the_type
- 0 if asking for stats the_type, 2 if Disconnectingthe_ip
- put the ip address of Logger the GUI sendig this will connect to you can put null if you don't knowpublic LogMessage(int the_type, int the_session, int from, int till, java.lang.String the_ip)
the_type
- 1 if asking for LogEntriesthe_session
- specifies session number the GUI wants LogEntries ofthe_ip
- put the ip address of Logger the GUI sendig this will connect to you can put null if you don't knowpublic LogMessage(int mdsnode_type, java.lang.String the_name, java.lang.String the_IP, int the_port, int the__current_session, java.util.Collection the_friends, int the_num_connections)
mdsnode_type
- you have to put 1 because you only use this when sending stats for mdsthe_name
- specifies the name of the mds nodethe_IP
- specifies the ip of parent mdsthe_port
- specifies port listening for proxy nodesthe__current_session
- specifies current log session of the log file particular to that mds nodethe_num_connections
- specifies number of connections mds currently haspublic LogMessage(int mdsnode_type, java.lang.String the_name, java.lang.String the_IP, int the_port, int the__current_session, int the_num_connections)
mdsnode_type
- you have to put 2 because you only use this when sending stats for proxythe_name
- specifies the name of the proxy nodethe_IP
- specifies the ip of parent proxythe_port
- specifies port listening for pclients/pserversthe__current_session
- specifies current log session of the log file particular to that proxy nodethe_num_connections
- specifies number of connections proxy currently haspublic LogMessage(int mdsnode_type, java.lang.String the_name, java.lang.String the_IP, int the_port, java.util.Vector the_log_sessions)
mdsnode_type
- returns type of node parent of logger is... 1 if mds, 2 if proxythe_name
- returns name of parent nodethe_IP
- returns ip of parent nodethe_port
- returns port of parent nodethe_log_sessions
- returns Vector of LogEntriesMethod Detail |
public int getType()
public int getRangeFrom()
public int getRangeTo()
public int getSession()
public int getNodeType()
public java.lang.String getNodeName()
public java.lang.String getIP()
public java.util.Collection getFreinds()
public java.util.Vector getLogEntries()
public int getNumConnections()
public int getPort()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |