Package com.uc4.api.objects
Class ConsoleOS400
java.lang.Object
com.uc4.api.objects.ConsoleEventSetting
com.uc4.api.objects.ConsoleOS400
- All Implemented Interfaces:
Iterable<ConsoleOS400.ConsoleOS400Filter>
public class ConsoleOS400
extends ConsoleEventSetting
implements Iterable<ConsoleOS400.ConsoleOS400Filter>
Settings for OS/400.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(ConsoleOS400.ConsoleOS400Filter filter) Adds a single filter entry.void
Removes all existing filter entries.iterator()
Returns anjava.util.Iterator
overConsoleOS400Filter
.protected void
loadConsole
(com.uc4.util.XMLDocument doc, Element eventCons) void
setMessageType
(String messageType) Specify the message type here.void
setSeverity
(String severity) Define the severity of the message here.int
size()
protected void
storeConsole
(com.uc4.util.XMLDocument doc, Element eventCons) Methods inherited from class com.uc4.api.objects.ConsoleEventSetting
getHostName, setHostName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ConsoleOS400
public ConsoleOS400()
-
-
Method Details
-
loadConsole
- Specified by:
loadConsole
in classConsoleEventSetting
-
storeConsole
- Specified by:
storeConsole
in classConsoleEventSetting
-
clearFilters
public void clearFilters()Removes all existing filter entries. -
size
public int size()- Returns:
- Number of filter entries
-
iterator
Returns anjava.util.Iterator
overConsoleOS400Filter
. This iterator can also be used to remove filter entries.- Specified by:
iterator
in interfaceIterable<ConsoleOS400.ConsoleOS400Filter>
- Returns:
- Filter iterator
-
add
Adds a single filter entry.- Parameters:
filter
- Filter for OS/400 Console Events
-
getMessageType
- Returns:
- Message type
-
setMessageType
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
- Returns:
- Severity of the message
-
setSeverity
Define the severity of the message here. Allowed values: "0" to "99"- Parameters:
severity
- Severity of the message
-