public class LoopbackChannel extends FilteredBase implements LogSource
incomingFilters, outgoingFilters
CONNECT, RX, SIZEOF_CNT, TX
Constructor and Description |
---|
LoopbackChannel() |
Modifier and Type | Method and Description |
---|---|
void |
connect()
Connects ISOChannel
|
void |
disconnect()
disconnects ISOChannel
|
int[] |
getCounters() |
Logger |
getLogger() |
java.lang.String |
getName() |
ISOPackager |
getPackager() |
java.lang.String |
getRealm() |
boolean |
isConnected() |
ISOMsg |
receive()
Receives an ISOMsg
|
void |
reconnect()
Reconnect channel
|
void |
resetCounters() |
void |
send(byte[] b)
sends a byte[] over the TCP/IP session
|
void |
send(ISOMsg m)
sends an ISOMsg over the TCP/IP session
|
void |
setLogger(Logger logger,
java.lang.String realm) |
void |
setName(java.lang.String name)
associates this ISOChannel with a name on NameRegistrar
|
void |
setPackager(ISOPackager packager)
setPackager is optional on LoopbackChannel, it is
used for debugging/formating purposes only
|
void |
setUsable(boolean usable) |
addFilter, addIncomingFilter, addOutgoingFilter, applyIncomingFilters, applyOutgoingFilters, clone, getIncomingFilters, getOutgoingFilters, removeFilter, removeIncomingFilter, removeOutgoingFilter, setIncomingFilters, setOutgoingFilters
public void setPackager(ISOPackager packager)
setPackager
in interface ISOChannel
packager
- an ISOPackagerpublic void connect()
ISOChannel
connect
in interface ISOChannel
public void disconnect()
disconnect
in interface ISOChannel
public void reconnect()
ISOChannel
reconnect
in interface ISOChannel
public boolean isConnected()
isConnected
in interface ISOChannel
isConnected
in interface ISOSource
public void send(ISOMsg m) throws java.io.IOException, ISOException
ISOChannel
send
in interface ISOChannel
send
in interface ISOSource
m
- the Message to be sentjava.io.IOException
ISOException
public void send(byte[] b) throws java.io.IOException, ISOException
ISOChannel
send
in interface ISOChannel
b
- the byte array to be sentjava.io.IOException
ISOException
public ISOMsg receive() throws java.io.IOException, ISOException
ISOChannel
receive
in interface ISOChannel
java.io.IOException
ISOException
public void setUsable(boolean usable)
setUsable
in interface ISOChannel
usable
- - usable statepublic int[] getCounters()
public void setName(java.lang.String name)
ISOChannel
setName
in interface ISOChannel
name
- name to registerNameRegistrar
public java.lang.String getName()
getName
in interface ISOChannel
public ISOPackager getPackager()
getPackager
in interface ISOChannel
public void resetCounters()
public void setLogger(Logger logger, java.lang.String realm)