org.jpos.iso
Class Connector

java.lang.Object
  extended by org.jpos.iso.Connector
All Implemented Interfaces:
Configurable, ISORequestListener, LogSource

public class Connector
extends Object
implements ISORequestListener, LogSource, Configurable

Connector implements ISORequestListener and forward all incoming messages to a given destination MUX, or Channel handling back responses

Version:
$Revision$ $Date$
Author:
Alejandro P. Revilla
See Also:
ISORequestListener

Nested Class Summary
protected  class Connector.Process
           
 
Field Summary
protected  String channelName
           
protected  String muxName
           
protected static ThreadPool pool
           
protected  int timeout
           
 
Constructor Summary
Connector()
           
 
Method Summary
 Logger getLogger()
           
 String getRealm()
           
 boolean process(ISOSource source, ISOMsg m)
           
 void setConfiguration(Configuration cfg)
          Destination can be a Channel or a MUX.
 void setLogger(Logger logger, String realm)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

muxName

protected String muxName

channelName

protected String channelName

timeout

protected int timeout

pool

protected static ThreadPool pool
Constructor Detail

Connector

public Connector()
Method Detail

setLogger

public void setLogger(Logger logger,
                      String realm)
Specified by:
setLogger in interface LogSource

getRealm

public String getRealm()
Specified by:
getRealm in interface LogSource

getLogger

public Logger getLogger()
Specified by:
getLogger in interface LogSource

setConfiguration

public void setConfiguration(Configuration cfg)
                      throws ConfigurationException
Destination can be a Channel or a MUX. If Destination is a Channel then timeout applies (used on ISORequest to get a Response).

Specified by:
setConfiguration in interface Configurable
Parameters:
cfg - Configuration
Throws:
ConfigurationException

process

public boolean process(ISOSource source,
                       ISOMsg m)
Specified by:
process in interface ISORequestListener
Parameters:
source - source where you optionally can reply
m - the unmatched request
Returns:
true if request was handled by this listener


Copyright © 1998-2012 jPOS.org. All Rights Reserved.