9.9.1 CB definition for input

You specify a CB definition for input (InputCBDefinition tag) as a child element of an input adaptor definition (InputAdaptorDefinition tag) as discussed in 9.8.1 Input adaptor definition.

Organization of this subsection
(1) Format
(2) Details of definition

(1) Format

<InputCBDefinition class="class-name"
 name="callback-name"
 interval="callback-execution-interval">
 input-connector-definition
</InputCBDefinition>

(2) Details of definition

InputCBDefinition tag (all definition information)
Defines all CB definition for input information.
class="class-name"
Specifies the name of the class in which the function for the CB definition for input has been implemented. This value is fixed.
The class name depends on the type of input connector definition specified in input-connector-definition. The following table shows the class name to be specified.
Type of input connector definitionValue of class attribute
File input connector definitionjp.co.Hitachi.soft.sdp.adaptor.callback.io.FileInputCBImpl
HTTP packet input connector definitionjp.co.Hitachi.soft.sdp.adaptor.callback.io.packetinput.HttpPacketInputCBImpl
name="callback-name"
Specifies a callback name for identifying the function, as 1 to 100 single-byte alphanumeric characters and the underscore (_). This name must begin with a single-byte alphabetic character. This attribute cannot be omitted. You can specify for this callback name the same value as in another CB definition, but we recommend that you specify a unique callback name because this name is output as identification information for the input adaptor's processing in the adaptor trace information and message logs.
interval="callback-execution-interval"
Specifies a callback execution interval (in milliseconds), as an integer from 0 to 60000. Once the callback has executed, the input adaptor's processing is terminated following the specified interval. If you specify 0, the input adaptor's processing is not terminated. If you omit this attribute, 0 is set.
input-connector-definition
You can specify the following CB definitions:
  • File input connector definition
  • HTTP packet input connector definition
For details about these CB definitions, see 9.10 CB definitions for input and output in the adaptor configuration definition file.