frontend
Class FENode

java.lang.Object
  extended byfrontend.FENode

public class FENode
extends Object

This is the individual link in which the frontEnd data structure will be comprised of. This class holds all the necissary information in which one will need for the frontEnd to behave.

For the frontEnd to use this data accordingly, it will need to use the class LinkedFENodeList. This class uses many methods for storing, retreiving and updating data from this class.

See Also:
LinkedFENodeList

Field Summary
 String curHostName
          This is the string value of the hostname for this particular node.
 String curIP
          This is the string value of the IP address for this particular node.
 JLabel curLabel
          This is the JLabel for this particular node.
 LanNode curLanNode
          This is the LanNode for this particular node.
 int lastUpdate
          This value is used as an indicator to specify the last status of this node.
 FENode next
          This is the link to the next FENode.
 
Constructor Summary
FENode()
           
 
Method Summary
 int getLastUpdateStatus()
          This method will return the status of this particular node.
 void setLastUpdateStatus(int inLastUpdate)
          This method will change the status of this particular node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

curLanNode

public LanNode curLanNode
This is the LanNode for this particular node.


curLabel

public JLabel curLabel
This is the JLabel for this particular node. This JLabel will be used to display to the user the status of this node, via the frontEnd.


curIP

public String curIP
This is the string value of the IP address for this particular node.


lastUpdate

public int lastUpdate
This value is used as an indicator to specify the last status of this node. The possible values are:


next

public FENode next
This is the link to the next FENode. This will be used in the LinkedFENodeList class.


curHostName

public String curHostName
This is the string value of the hostname for this particular node.

Constructor Detail

FENode

public FENode()
Method Detail

setLastUpdateStatus

public void setLastUpdateStatus(int inLastUpdate)
This method will change the status of this particular node. For more information, see getLastUpdateStatus()

Parameters:
inLastUpdate - This is the new status of this node. The values can be one of the following:
  • IS_NEUTRAL
  • IS_DOWN
  • IS_UP_PING
  • IS_UP_BOTH

getLastUpdateStatus

public int getLastUpdateStatus()
This method will return the status of this particular node. This is used so the frontEnd may indicate why the update method is being called in itself. For example: the frontEnd may be notified for many changes in regards to a particular LanNode. The status of the LanNode might have changed, a trap might of been received, etc. This method aids the frontEnd in determining why the update method is being called in regards to the previous status of a particular LanNode.

Returns:
The status of this node before a update has occured. This may be one of the following values:
  • IS_NEUTRAL
  • IS_DOWN
  • IS_UP_PING
  • IS_UP_BOTH