Class sfclasses.Host
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sfclasses.Host

java.lang.Object
   |
   +----sfclasses.ManageObject
           |
           +----sfclasses.IconObject
                   |
                   +----sfclasses.Host

public class Host
extends IconObject
This class implements host objects. It describes the properties of general hosts, firewalls and servers.

Variable Index

 o actDate
 o addr
 o HostAddresses
 o hostTemplates
 o internalAddresses
 o isFirewall
 o isLoaded
 o isServer
 o mask
 o port
 o prend
 o publicServer
 o rules
 o tcpconns
 o transparent
 o varaddr
 o varnames
 o vartimeout
 o varvalues

Constructor Index

 o Host()
Initialize host and host icon

Method Index

 o execute(Frame)
Show the host properties dialog.
 o generateConfig()
Generate firewall configuration file and write it to the firewall
 o loadDynamicConfig()
Load the actual configuration data from the firewall
 o loadTcpConns()
Load the active TCP connections from the firewall
 o read(PersistentInputStream)
Read object data from a persistent input stream
 o reconfig()
Reconfigure firewall.
 o toString()
 o userAction(Frame, Graphics, int, int)
Show the firewall action window.
 o write(PersistentOutputStream)
Write object data to a persistent output stream

Variables

 o HostAddresses
  protected AddrList HostAddresses
 o internalAddresses
  protected AddrList internalAddresses
 o isFirewall
  protected boolean isFirewall
 o transparent
  protected boolean transparent
 o isServer
  protected boolean isServer
 o publicServer
  protected boolean publicServer
 o hostTemplates
  protected boolean hostTemplates[]
 o isLoaded
  protected transient boolean isLoaded
 o addr
  protected transient byte addr[][]
 o mask
  protected transient byte mask[][]
 o port
  protected transient short port[]
 o prend
  protected transient short prend[]
 o rules
  protected transient Vector rules
 o varnames
  protected transient String varnames[]
 o varvalues
  protected transient int varvalues[][]
 o varaddr
  protected transient byte varaddr[][][]
 o vartimeout
  protected transient Date vartimeout[][]
 o tcpconns
  protected transient Vector tcpconns
 o actDate
  protected transient Date actDate

Constructors

 o Host
  public Host()
Initialize host and host icon

Methods

 o loadDynamicConfig
  public boolean loadDynamicConfig()
Load the actual configuration data from the firewall
Returns:
true if successful, false otherwise
 o loadTcpConns
  public boolean loadTcpConns()
Load the active TCP connections from the firewall
Returns:
true if successful, false otherwise
 o execute
  public void execute(Frame parent)
Show the host properties dialog. The drag and drop panel calls this method when the user double clicks on the host icon in edit mode.
Parameters:
parent - Parent frame (drag and drop panel)
Overrides:
execute in class ManageObject
 o userAction
  public void userAction(Frame parent,
                         Graphics g,
                         int x_offset,
                         int y_offset)
Show the firewall action window. The drag and drop panel calls this method when the user double click on the host icon and edit mode is diabled.
Parameters:
parent - Parent frame (drag and drop panel)
g - Graphics context of the drag and drop canvas
x_offset - Horizontal offset of the virtual viewport
y_offset - Vertical offset of the virtual viewport
Overrides:
userAction in class ManageObject
 o generateConfig
  public boolean generateConfig()
Generate firewall configuration file and write it to the firewall
Returns:
true on success, false otherwise
 o reconfig
  public boolean reconfig()
Reconfigure firewall.
Returns:
true on success, false otherwise
 o write
  public void write(PersistentOutputStream ps)
Write object data to a persistent output stream
Parameters:
ps - Stream
Overrides:
write in class ManageObject
See Also:
PersistentOutputStream
 o read
  public void read(PersistentInputStream ps) throws IOException
Read object data from a persistent input stream
Parameters:
ps - Stream
Overrides:
read in class ManageObject
See Also:
PersistentInputStream
 o toString
  public String toString()
Returns:
string describing the host
Overrides:
toString in class ManageObject

All Packages  Class Hierarchy  This Package  Previous  Next  Index