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.
-
actDate
-
-
addr
-
-
HostAddresses
-
-
hostTemplates
-
-
internalAddresses
-
-
isFirewall
-
-
isLoaded
-
-
isServer
-
-
mask
-
-
port
-
-
prend
-
-
publicServer
-
-
rules
-
-
tcpconns
-
-
transparent
-
-
varaddr
-
-
varnames
-
-
vartimeout
-
-
varvalues
-
-
Host()
- Initialize host and host icon
-
execute(Frame)
- Show the host properties dialog.
-
generateConfig()
- Generate firewall configuration file and write it to the firewall
-
loadDynamicConfig()
- Load the actual configuration data from the firewall
-
loadTcpConns()
- Load the active TCP connections from the firewall
-
read(PersistentInputStream)
- Read object data from a persistent input stream
-
reconfig()
- Reconfigure firewall.
-
toString()
-
-
userAction(Frame, Graphics, int, int)
- Show the firewall action window.
-
write(PersistentOutputStream)
- Write object data to a persistent output stream
HostAddresses
protected AddrList HostAddresses
internalAddresses
protected AddrList internalAddresses
isFirewall
protected boolean isFirewall
transparent
protected boolean transparent
isServer
protected boolean isServer
publicServer
protected boolean publicServer
hostTemplates
protected boolean hostTemplates[]
isLoaded
protected transient boolean isLoaded
addr
protected transient byte addr[][]
mask
protected transient byte mask[][]
port
protected transient short port[]
prend
protected transient short prend[]
rules
protected transient Vector rules
varnames
protected transient String varnames[]
varvalues
protected transient int varvalues[][]
varaddr
protected transient byte varaddr[][][]
vartimeout
protected transient Date vartimeout[][]
tcpconns
protected transient Vector tcpconns
actDate
protected transient Date actDate
Host
public Host()
- Initialize host and host icon
loadDynamicConfig
public boolean loadDynamicConfig()
- Load the actual configuration data from the firewall
- Returns:
- true if successful, false otherwise
loadTcpConns
public boolean loadTcpConns()
- Load the active TCP connections from the firewall
- Returns:
- true if successful, false otherwise
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
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
generateConfig
public boolean generateConfig()
- Generate firewall configuration file and write it to the firewall
- Returns:
- true on success, false otherwise
reconfig
public boolean reconfig()
- Reconfigure firewall.
- Returns:
- true on success, false otherwise
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
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
toString
public String toString()
- Returns:
- string describing the host
- Overrides:
- toString in class ManageObject
All Packages Class Hierarchy This Package Previous Next Index