Package com.uc4.api.objects
Class ConsoleOS400
- java.lang.Object
-
- com.uc4.api.objects.ConsoleEventSetting
-
- com.uc4.api.objects.ConsoleOS400
-
- All Implemented Interfaces:
java.lang.Iterable<ConsoleOS400.ConsoleOS400Filter>
public class ConsoleOS400 extends ConsoleEventSetting implements java.lang.Iterable<ConsoleOS400.ConsoleOS400Filter>
Settings for OS/400.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ConsoleOS400.ConsoleOS400Filter
This class represents a single filter for a OS/400 Console Event.
-
Field Summary
-
Fields inherited from class com.uc4.api.objects.ConsoleEventSetting
TYPE_BS2000, TYPE_OS390, TYPE_OS400, TYPE_R3, TYPE_WINDOWS
-
-
Constructor Summary
Constructors Constructor Description ConsoleOS400()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(ConsoleOS400.ConsoleOS400Filter filter)
Adds a single filter entry.void
clearFilters()
Removes all existing filter entries.java.lang.String
getMessageType()
java.lang.String
getSeverity()
java.util.Iterator<ConsoleOS400.ConsoleOS400Filter>
iterator()
Returns anjava.util.Iterator
overConsoleOS400Filter
.protected void
loadConsole(com.uc4.util.XMLDocument doc, org.w3c.dom.Element eventCons)
void
setMessageType(java.lang.String messageType)
Specify the message type here.void
setSeverity(java.lang.String severity)
Define the severity of the message here.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
-
-
-
-
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
-
clearFilters
public void clearFilters()
Removes all existing filter entries.
-
size
public int size()
- Returns:
- Number of filter entries
-
iterator
public java.util.Iterator<ConsoleOS400.ConsoleOS400Filter> iterator()
Returns anjava.util.Iterator
overConsoleOS400Filter
. This iterator can also be used to remove filter entries.- Specified by:
iterator
in interfacejava.lang.Iterable<ConsoleOS400.ConsoleOS400Filter>
- Returns:
- Filter iterator
-
add
public void add(ConsoleOS400.ConsoleOS400Filter filter)
Adds a single filter entry.- Parameters:
filter
- Filter for OS/400 Console Events
-
getMessageType
public java.lang.String getMessageType()
- Returns:
- Message type
-
setMessageType
public void setMessageType(java.lang.String messageType)
Specify the message type here. Allowed values:- "01" - Completion
- "02" - Diagnostic
- "04" - Informational
- "05" - Inquiry
- "06" - Sender's copy
- "08" - Request
- "10" - Request with prompting
- "14" - Notify (handled exception)
- "15" - Escape (handled exception)
- "16" - Notify (unhandled exception)
- "17" - Escape (unhandled exception)
- "21" - Reply, not validity checked
- "22" - Reply, validity checked
- "23" - Reply, message default used
- "24" - Reply, system default used
- "25" - Reply, from system reply list
- Parameters:
messageType
- message type
-
getSeverity
public java.lang.String getSeverity()
- Returns:
- Severity of the message
-
setSeverity
public void setSeverity(java.lang.String severity)
Define the severity of the message here. Allowed values: "0" to "99"- Parameters:
severity
- Severity of the message
-
-