Interface ISOChannel
- All Superinterfaces:
ISOSource
- All Known Subinterfaces:
ClientChannel, FilteredChannel, ServerChannel
- All Known Implementing Classes:
AmexChannel, ASCIIChannel, BASE24Channel, BASE24TCPChannel, BaseChannel, BCDChannel, ChannelPool, CMFChannel, CSChannel, FilteredBase, FSDChannel, GICCChannel, GZIPChannel, HEXChannel, LogChannel, LoopbackChannel, NACChannel, NCCChannel, PADChannel, PostChannel, RawChannel, RBPChannel, TelnetXMLChannel, VAPChannel, X25Channel, XMLChannel
allows the transmision and reception of ISO 8583 Messages
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCounter index for connection events.static final intCounter index for received messages.static final intNumber of counters maintained by this channel.static final intCounter index for transmitted messages. -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns a clone of this channel.voidconnect()Connects ISOChannelvoiddisconnects ISOChannelgetName()Returns this channel's registered name.Returns the packager used to pack/unpack ISO messages on this channel.booleanIndicates whether this source is currently connected and able to send messages.receive()Receives an ISOMsgvoidReconnect channelvoidsend(byte[] b) sends a byte[] over the TCP/IP sessionvoidsends an ISOMsg over the TCP/IP sessionvoidassociates this ISOChannel with a name on NameRegistrarvoidAssociate a packager with this channelvoidsetUsable(boolean b) Marks this channel as usable or not; a non-usable channel will not accept messages.
-
Field Details
-
CONNECT
-
TX
-
RX
-
SIZEOF_CNT
-
-
Method Details
-
setPackager
Associate a packager with this channel- Parameters:
p- an ISOPackager
-
connect
-
disconnect
-
reconnect
-
isConnected
boolean isConnected()Description copied from interface:ISOSourceIndicates whether this source is currently connected and able to send messages.- Specified by:
isConnectedin interfaceISOSource- Returns:
- true if Channel is connected and usable
-
receive
Receives an ISOMsg- Returns:
- the Message received
- Throws:
IOException- on I/O failureISOException- on ISO packing/unpacking failure
-
send
sends an ISOMsg over the TCP/IP session- Specified by:
sendin interfaceISOSource- Parameters:
m- the Message to be sent- Throws:
IOException- on I/O failureISOException- on ISO packing/unpacking failure
-
send
sends a byte[] over the TCP/IP session- Parameters:
b- the byte array to be sent- Throws:
IOException- on I/O failureISOException- on ISO packing/unpacking failure
-
setUsable
Marks this channel as usable or not; a non-usable channel will not accept messages.- Parameters:
b- - usable state
-
setName
-
getName
-
getPackager
Returns the packager used to pack/unpack ISO messages on this channel.- Returns:
- current packager
-
clone
-