public class ConsoleWindows extends ConsoleEventSetting implements java.lang.Iterable<ConsoleWindows.ConsoleWindowsFilter>
Modifier and Type | Class and Description |
---|---|
static class |
ConsoleWindows.ConsoleWindowsFilter
An instance of this class reprensents a single filter line.
|
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_APPLICATION
Application.
|
static int |
TYPE_DIRECTORY_SERVICE
Directory service.
|
static int |
TYPE_DNS_SERVER
DNS server.
|
static int |
TYPE_FILE_REPLICATION_SERVICE
File replication service.
|
static int |
TYPE_SECURITY
Security.
|
static int |
TYPE_SYSTEM
System.
|
TYPE_BS2000, TYPE_OS390, TYPE_OS400, TYPE_R3, TYPE_WINDOWS
Constructor and Description |
---|
ConsoleWindows() |
Modifier and Type | Method and Description |
---|---|
void |
addFilter(ConsoleWindows.ConsoleWindowsFilter filter)
Adds a filter for Windows Console Events.
|
void |
clear()
Removes all filters.
|
int |
getCategory() |
java.lang.String |
getSource() |
int |
getType() |
java.util.Iterator<ConsoleWindows.ConsoleWindowsFilter> |
iterator()
Returns an
Iterator over ConsoleWindowsFilter . |
protected void |
loadConsole(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element eventCons) |
void |
setCategory(int category)
Sets the Windows Event's category
The category is defined by the source which has logged the Event.
|
void |
setSource(java.lang.String source)
Determine the Windows Event's source.
|
void |
setType(int type)
Select the log to be monitored (system, security, application,
directory service, DNS server or File Replication Service).
|
int |
size() |
protected void |
storeConsole(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element eventCons) |
getHostName, setHostName
public static final int TYPE_SYSTEM
public static final int TYPE_SECURITY
public static final int TYPE_APPLICATION
public static final int TYPE_DIRECTORY_SERVICE
public static final int TYPE_DNS_SERVER
public static final int TYPE_FILE_REPLICATION_SERVICE
protected void loadConsole(com.uc4.util.XMLDocument doc, org.w3c.dom.Element eventCons)
loadConsole
in class ConsoleEventSetting
protected void storeConsole(com.uc4.util.XMLDocument doc, org.w3c.dom.Element eventCons)
storeConsole
in class ConsoleEventSetting
public int size()
public void clear()
public void addFilter(ConsoleWindows.ConsoleWindowsFilter filter)
filter
- Filterpublic java.util.Iterator<ConsoleWindows.ConsoleWindowsFilter> iterator()
Iterator
over ConsoleWindowsFilter
.
This iterator can also be used to remove filter entries.iterator
in interface java.lang.Iterable<ConsoleWindows.ConsoleWindowsFilter>
public int getCategory()
public void setCategory(int category)
category
- Windows Event's category, integer between 0 and 99public java.lang.String getSource()
public void setSource(java.lang.String source)
source
- Sourcepublic int getType()
public void setType(int type)
type
- Type of the log that should be monitored