Class sfclasses.Notification
All Packages Class Hierarchy This Package Previous Next Index
Class sfclasses.Notification
java.lang.Object
|
+----sfclasses.Notification
- public class Notification
- extends Object
- implements Persistent
This class implements notification levels. An object of this
class holds all information about level. The static parts of
the class take care of the level vectors and of static levels.
Static levels are stored in the vector staticLevels and are
inserted into that vector in a static initializer. Dynamic levels
are stored in a vector in the ManageDomain class.
-
firstDynamic
-
-
levelName
-
-
levelNumber
-
-
levelText
-
-
STATIC_CHECKATTACK
-
-
STATIC_CHECKSATAN
-
-
STATIC_CHKPORTSCAN
-
-
STATIC_ICMP
-
-
STATIC_IDENT
-
-
STATIC_LOGATTACK
-
-
STATIC_OUTGOING
-
-
STATIC_OVERLOAD
-
-
STATIC_PING
-
-
STATIC_SERVER
-
-
STATIC_SOURCEROUTE
-
-
STATIC_TRACEROUTE
-
-
staticLevels
-
-
Notification()
- Initialize empty level.
-
Notification(int)
- Initialize level.
-
constructList(List, Vector)
-
-
constructList(List, Vector, int)
-
-
edit(Refreshable, Frame, ManageDomain, boolean)
- Open a dialog to edit the notification level.
-
getLevel(int, Vector)
-
-
getLevel(String, Vector)
-
-
printAllLevels(PrintStream, Vector)
-
-
printLevel(PrintStream)
- Print the notification level in configuration file format
-
read(PersistentInputStream)
- Read object data from a persistent input stream
-
staticLevel(int)
-
-
staticLevel(String)
-
-
write(PersistentOutputStream)
- Write object data to a persistent output stream
levelText
protected String levelText
levelNumber
protected int levelNumber
levelName
protected String levelName
STATIC_SOURCEROUTE
public final static int STATIC_SOURCEROUTE
STATIC_SERVER
public final static int STATIC_SERVER
STATIC_IDENT
public final static int STATIC_IDENT
STATIC_TRACEROUTE
public final static int STATIC_TRACEROUTE
STATIC_OUTGOING
public final static int STATIC_OUTGOING
STATIC_PING
public final static int STATIC_PING
STATIC_ICMP
public final static int STATIC_ICMP
STATIC_OVERLOAD
public final static int STATIC_OVERLOAD
STATIC_CHKPORTSCAN
public final static int STATIC_CHKPORTSCAN
STATIC_CHECKSATAN
public final static int STATIC_CHECKSATAN
STATIC_LOGATTACK
public final static int STATIC_LOGATTACK
STATIC_CHECKATTACK
public final static int STATIC_CHECKATTACK
staticLevels
public static Vector staticLevels
firstDynamic
public final static int firstDynamic
Notification
protected Notification()
- Initialize empty level. This is used when loading data from a
persistent input stream.
Notification
public Notification(int number)
- Initialize level.
- Parameters:
- number - Level number
edit
public void edit(Refreshable co,
Frame p,
ManageDomain md,
boolean newLevel)
- Open a dialog to edit the notification level.
- Parameters:
- co - Calling object, will be notified when the edit dialog is closed.
- p - Parent frame
- md - ManageDomain object holding the configuration data
- newLevel - The level is being created and not changed. If the user
cancels the operation, the level will be deleted from the vector.
- See Also:
- Refreshable
printLevel
public void printLevel(PrintStream ps)
- Print the notification level in configuration file format
- Parameters:
- ps - PrintStream to write the output to
write
public void write(PersistentOutputStream ps)
- Write object data to a persistent output stream
- Parameters:
- ps - Stream
- See Also:
- PersistentOutputStream
read
public void read(PersistentInputStream ps) throws IOException
- Read object data from a persistent input stream
- Parameters:
- ps - Stream
- See Also:
- PersistentInputStream
staticLevel
public static Notification staticLevel(int number)
- Parameters:
- number - number of notification level
- Returns:
- notification level
staticLevel
public static Notification staticLevel(String name)
- Parameters:
- name - name of notification level
- Returns:
- notification level
getLevel
public static Notification getLevel(String name,
Vector dynLevels)
getLevel
public static Notification getLevel(int number,
Vector dynLevels)
constructList
public static void constructList(List l,
Vector dynLevels,
int levelnum)
constructList
public static void constructList(List l,
Vector dynLevels)
printAllLevels
public static void printAllLevels(PrintStream ps,
Vector dynLevels)
All Packages Class Hierarchy This Package Previous Next Index