Package com.swiftmq.impl.streams.comp.io
Class ManagementInput
- java.lang.Object
-
- com.swiftmq.impl.streams.comp.io.ManagementInput
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PROP_CTX
static java.lang.String
PROP_OPER
static java.lang.String
PROP_TIME
static java.lang.String
VAL_ADD
static java.lang.String
VAL_CHANGE
static java.lang.String
VAL_REMOVE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes this Input.void
collect(long interval)
Internal use.java.lang.String
context()
Returns the CLI contextInput
context(java.lang.String context)
Sets a CLI context different from the name.Message
current()
Returns the current Message of this Input.Input
current(Message current)
Sets the current Message on this Input.void
executeCallback()
Internal use.ManagementProcessor
getManagementProcessor()
Internal use.java.lang.String
getName()
Returns the name of this Input.java.util.List<java.lang.String>
getPropIncludes()
Internal use only.java.lang.String
getSelector()
Internal use only.boolean
hasAddCallback()
Internal useboolean
hasChangeCallback()
Internal useboolean
hasRemoveCallback()
Internal useManagementInput
include(java.lang.String propInclude)
Adds Property name(s) that must be addionally included in an onChange message.ManagementInput
onAdd(InputCallback addCallback)
Registers a Callback that is executed when a new Entity is addedManagementInput
onChange(InputCallback changeCallback)
Registers a Callback that is executed when a a Property of an Entity has changedManagementInput
onRemove(InputCallback removeCallback)
Registers a Callback that is executed when a existing Entity is removedInput
selector(java.lang.String selector)
Sets a JMS Message selectorvoid
setManagementProcessor(ManagementProcessor managementProcessor)
Internal use.void
start()
Starts this Input.java.lang.String
toString()
-
-
-
Field Detail
-
PROP_OPER
public static java.lang.String PROP_OPER
-
PROP_CTX
public static java.lang.String PROP_CTX
-
PROP_TIME
public static java.lang.String PROP_TIME
-
VAL_ADD
public static java.lang.String VAL_ADD
-
VAL_REMOVE
public static java.lang.String VAL_REMOVE
-
VAL_CHANGE
public static java.lang.String VAL_CHANGE
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:Input
Returns the name of this Input.
-
hasAddCallback
public boolean hasAddCallback()
Internal use- Returns:
- true/false
-
hasRemoveCallback
public boolean hasRemoveCallback()
Internal use- Returns:
- true/false
-
hasChangeCallback
public boolean hasChangeCallback()
Internal use- Returns:
- true/false
-
current
public Input current(Message current)
Description copied from interface:Input
Sets the current Message on this Input.
-
current
public Message current()
Description copied from interface:Input
Returns the current Message of this Input.
-
getSelector
public java.lang.String getSelector()
Internal use only.
-
context
public Input context(java.lang.String context)
Sets a CLI context different from the name.- Parameters:
context
- CLI context- Returns:
- this
-
context
public java.lang.String context()
Returns the CLI context- Returns:
- CLI context
-
selector
public Input selector(java.lang.String selector)
Sets a JMS Message selector- Parameters:
selector
- JMS Message Selector- Returns:
- this
-
include
public ManagementInput include(java.lang.String propInclude)
Adds Property name(s) that must be addionally included in an onChange message. If multiple names are given, they must be separated by blank.- Parameters:
propInclude
-- Returns:
- this
-
getPropIncludes
public java.util.List<java.lang.String> getPropIncludes()
Internal use only.
-
onAdd
public ManagementInput onAdd(InputCallback addCallback)
Registers a Callback that is executed when a new Entity is added- Parameters:
addCallback
- callback- Returns:
- ManagementInput
-
onRemove
public ManagementInput onRemove(InputCallback removeCallback)
Registers a Callback that is executed when a existing Entity is removed- Parameters:
removeCallback
- callback- Returns:
- ManagementInput
-
onChange
public ManagementInput onChange(InputCallback changeCallback)
Registers a Callback that is executed when a a Property of an Entity has changed- Parameters:
changeCallback
- callback- Returns:
- ManagementInput
-
executeCallback
public void executeCallback() throws java.lang.Exception
Description copied from interface:Input
Internal use.- Specified by:
executeCallback
in interfaceInput
- Throws:
java.lang.Exception
-
getManagementProcessor
public ManagementProcessor getManagementProcessor()
Internal use.- Returns:
- ManagementProcessor
-
setManagementProcessor
public void setManagementProcessor(ManagementProcessor managementProcessor)
Internal use.- Parameters:
managementProcessor
- ManagementProcessor
-
collect
public void collect(long interval)
Description copied from interface:Input
Internal use.
-
start
public void start() throws java.lang.Exception
Description copied from interface:Input
Starts this Input. This method is called automatically if an Input is created outside a callback. If it is created inside, it must be called explicitly.
-
close
public void close()
Description copied from interface:Input
Closes this Input.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-