|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectno.ntnu.vegare.visualizer.client.prototype.DataGenerator
public class DataGenerator
Provides methods to generate random security incidents, according to the specification. The generation is based on very simple principles, and should not be considered an approximation of a real world system.
For the purpose of empirical tests or feasibility studies, this class should be expanded to support realistic probability distributions
IP addresses were loaded from Malware Patrol's block list, available at http://www.malwarepatrol.net. The IP addresses are not necessarily malicious when this software is executed.
Constructor Summary | |
---|---|
DataGenerator()
|
Method Summary | |
---|---|
static void |
createBacklog(AbstractLogDatabase db)
Create a backlog of log entries. |
static java.lang.String |
getRandomFacility()
Generates a random facility. |
static java.lang.String |
getRandomIpAddress()
Generate a random IP from Malware Patrol's block list, available at http://www.malwarepatrol.net. |
static int |
getRandomSeverity()
Generates a random severity level, as specified by syslog: |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataGenerator()
Method Detail |
---|
public static void createBacklog(AbstractLogDatabase db)
db
- Database to load entries intopublic static int getRandomSeverity()
Generates a random severity level, as specified by syslog:
public static java.lang.String getRandomFacility()
public static java.lang.String getRandomIpAddress()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |