verinec.netsim.firewall.util
Class SimuLog

java.lang.Object
  extended by verinec.netsim.firewall.util.SimuLog

public class SimuLog
extends Object

Version:
$Revision: 825 $
Author:
jason.hug@unifr.ch

Constructor Summary
SimuLog()
           
 
Method Summary
private static void createEntry(ILogger eventsLog, FirewallEvent firewallEvent, String hostname, String simTime, IPacketAction action)
          Creates a new Event Element and adds the Firewall Event Details to this element.
static void log(ILogger eventsLog, IPacketAction action, PacketFilterChain chain, PacketFilterRule rule, String hostname, String simTime)
          Method that creates a Verinec Simulator Log entry.
static void log(ILogger eventsLog, IPacketAction action, PacketFilterChain chain, String hostname, String simTime)
          Method that creates a Verinec Simulator Log entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimuLog

public SimuLog()
Method Detail

log

public static void log(ILogger eventsLog,
                       IPacketAction action,
                       PacketFilterChain chain,
                       String hostname,
                       String simTime)
Method that creates a Verinec Simulator Log entry. This method logs an action event into Verinec's Simulator Log. This method only logs the action-event and not the rule that caused it. So usually it logs a default-policy-action.

Parameters:
eventsLog - Log Element to which the entry should be added.
action - The action object that should get logged.
chain - The chain from which the action originated from.
hostname - The hostname of the node where the event was observed.
simTime - Simulation time at which this event occurred.

log

public static void log(ILogger eventsLog,
                       IPacketAction action,
                       PacketFilterChain chain,
                       PacketFilterRule rule,
                       String hostname,
                       String simTime)
Method that creates a Verinec Simulator Log entry. This method logs an action event into Verinec's Simulator Log. This method logs the action and the rules that triggered the action.

Parameters:
eventsLog - Log Element to which the entry should be added.
action - The action object that should get logged.
chain - The chain from which the action originated from.
rule - The rule which triggered the action.
hostname - The hostname of the node where the event was observed.
simTime - Simulation time at which this event occurred.

createEntry

private static void createEntry(ILogger eventsLog,
                                FirewallEvent firewallEvent,
                                String hostname,
                                String simTime,
                                IPacketAction action)
Creates a new Event Element and adds the Firewall Event Details to this element. The newly created event is then added to Verinec's Simulator Log.

Parameters:
eventsLog - Log Element to which the entry should be added.
firewallEvent - The Firewall Event which should be added to the new Element.
hostname - The hostname of the node where the event was observed.
simTime - Simulation time at which this event occurred.
action - The action object which has to add the event.

Copyright © 2005 Verinec, DIUF