|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
org.jpos.iso.FilteredBase
org.jpos.iso.channel.LoopbackChannel
public class LoopbackChannel
| Field Summary |
|---|
| Fields inherited from class org.jpos.iso.FilteredBase |
|---|
incomingFilters, outgoingFilters |
| Fields inherited from interface org.jpos.iso.ISOChannel |
|---|
CONNECT, RX, SIZEOF_CNT, TX |
| Constructor Summary | |
|---|---|
LoopbackChannel()
|
|
| Method Summary | |
|---|---|
void |
connect()
Connects ISOChannel |
void |
disconnect()
disconnects ISOChannel |
int[] |
getCounters()
|
Logger |
getLogger()
|
String |
getName()
|
ISOPackager |
getPackager()
|
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,
String realm)
|
void |
setName(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)
|
| Methods inherited from class org.jpos.iso.FilteredBase |
|---|
addFilter, addIncomingFilter, addOutgoingFilter, applyIncomingFilters, applyOutgoingFilters, clone, getIncomingFilters, getOutgoingFilters, removeFilter, removeIncomingFilter, removeOutgoingFilter, setIncomingFilters, setOutgoingFilters |
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LoopbackChannel()
| Method Detail |
|---|
public void setPackager(ISOPackager packager)
setPackager in interface ISOChannelpackager - an ISOPackagerpublic void connect()
ISOChannel
connect in interface ISOChannelpublic void disconnect()
disconnect in interface ISOChannelpublic void reconnect()
ISOChannel
reconnect in interface ISOChannelpublic boolean isConnected()
isConnected in interface ISOChannelisConnected in interface ISOSource
public void send(ISOMsg m)
throws IOException,
ISOException,
ISOFilter.VetoException
ISOChannel
send in interface ISOChannelsend in interface ISOSourcem - the Message to be sent
IOException
ISOException
ISOFilter.VetoException
public void send(byte[] b)
throws IOException,
ISOException,
ISOFilter.VetoException
ISOChannel
send in interface ISOChannelb - the byte array to be sent
IOException
ISOException
ISOFilter.VetoException
public ISOMsg receive()
throws IOException,
ISOException
ISOChannel
receive in interface ISOChannelIOException
ISOExceptionpublic void setUsable(boolean usable)
setUsable in interface ISOChannelusable - - usable statepublic int[] getCounters()
public void setName(String name)
ISOChannel
setName in interface ISOChannelname - name to registerNameRegistrarpublic String getName()
getName in interface ISOChannelpublic ISOPackager getPackager()
getPackager in interface ISOChannelpublic void resetCounters()
public void setLogger(Logger logger,
String realm)
setLogger in interface LogSourcepublic String getRealm()
getRealm in interface LogSourcepublic Logger getLogger()
getLogger in interface LogSource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||