public class ConsoleWindows extends ConsoleEventSetting implements 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.
|
| 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() |
String |
getSource() |
int |
getType() |
Iterator<ConsoleWindows.ConsoleWindowsFilter> |
iterator()
Returns an
Iterator over ConsoleWindowsFilter. |
void |
setCategory(int category)
Sets the Windows Event's category
The category is defined by the source which has logged the Event.
|
void |
setSource(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() |
getHostName, setHostNameequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic 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
public int size()
public void clear()
public void addFilter(ConsoleWindows.ConsoleWindowsFilter filter)
filter - Filterpublic Iterator<ConsoleWindows.ConsoleWindowsFilter> iterator()
Iterator over ConsoleWindowsFilter.
This iterator can also be used to remove filter entries.iterator in interface Iterable<ConsoleWindows.ConsoleWindowsFilter>public int getCategory()
public void setCategory(int category)
category - Windows Event's category, integer between 0 and 99public String getSource()
public void setSource(String source)
source - Sourcepublic int getType()
public void setType(int type)
type - Type of the log that should be monitoredCopyright © 2021. All rights reserved.