Package com.uc4.api.objects
Class ConsoleWindows
- java.lang.Object
-
- com.uc4.api.objects.ConsoleEventSetting
-
- com.uc4.api.objects.ConsoleWindows
-
- All Implemented Interfaces:
java.lang.Iterable<ConsoleWindows.ConsoleWindowsFilter>
public class ConsoleWindows extends ConsoleEventSetting implements java.lang.Iterable<ConsoleWindows.ConsoleWindowsFilter>
Console Event Settings for Windows.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ConsoleWindows.ConsoleWindowsFilter
An instance of this class reprensents a single filter line.
-
Field Summary
Fields Modifier and Type Field 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.-
Fields inherited from class com.uc4.api.objects.ConsoleEventSetting
TYPE_BS2000, TYPE_OS390, TYPE_OS400, TYPE_R3, TYPE_WINDOWS
-
-
Constructor Summary
Constructors Constructor Description ConsoleWindows()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 anIterator
overConsoleWindowsFilter
.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)
-
Methods inherited from class com.uc4.api.objects.ConsoleEventSetting
getHostName, setHostName
-
-
-
-
Field Detail
-
TYPE_SYSTEM
public static final int TYPE_SYSTEM
System.- See Also:
- Constant Field Values
-
TYPE_SECURITY
public static final int TYPE_SECURITY
Security.- See Also:
- Constant Field Values
-
TYPE_APPLICATION
public static final int TYPE_APPLICATION
Application.- See Also:
- Constant Field Values
-
TYPE_DIRECTORY_SERVICE
public static final int TYPE_DIRECTORY_SERVICE
Directory service.- See Also:
- Constant Field Values
-
TYPE_DNS_SERVER
public static final int TYPE_DNS_SERVER
DNS server.- See Also:
- Constant Field Values
-
TYPE_FILE_REPLICATION_SERVICE
public static final int TYPE_FILE_REPLICATION_SERVICE
File replication service.- See Also:
- Constant Field Values
-
-
Method Detail
-
loadConsole
protected void loadConsole(com.uc4.util.XMLDocument doc, org.w3c.dom.Element eventCons)
- Specified by:
loadConsole
in classConsoleEventSetting
-
storeConsole
protected void storeConsole(com.uc4.util.XMLDocument doc, org.w3c.dom.Element eventCons)
- Specified by:
storeConsole
in classConsoleEventSetting
-
size
public int size()
- Returns:
- Number of filter entries
-
clear
public void clear()
Removes all filters.
-
addFilter
public void addFilter(ConsoleWindows.ConsoleWindowsFilter filter)
Adds a filter for Windows Console Events.- Parameters:
filter
- Filter
-
iterator
public java.util.Iterator<ConsoleWindows.ConsoleWindowsFilter> iterator()
Returns anIterator
overConsoleWindowsFilter
. This iterator can also be used to remove filter entries.- Specified by:
iterator
in interfacejava.lang.Iterable<ConsoleWindows.ConsoleWindowsFilter>
- Returns:
- Iterator
-
getCategory
public int getCategory()
- Returns:
- Windows Event's category
-
setCategory
public void setCategory(int category)
Sets the Windows Event's category The category is defined by the source which has logged the Event. It is comprised of Events of the same categorical value. Category names must be numbers. No particular category is filtered if value "0" has been specified.- Parameters:
category
- Windows Event's category, integer between 0 and 99
-
getSource
public java.lang.String getSource()
- Returns:
- Windows Event's source
-
setSource
public void setSource(java.lang.String source)
Determine the Windows Event's source.- Parameters:
source
- Source
-
getType
public int getType()
- Returns:
- Type of the log that should be monitored
-
setType
public void setType(int type)
Select the log to be monitored (system, security, application, directory service, DNS server or File Replication Service). Use one of the public constants that are defined in this class.- Parameters:
type
- Type of the log that should be monitored
-
-