org.objectweb.joram.mom.dest
Class DistributionModule

java.lang.Object
  extended by org.objectweb.joram.mom.dest.DistributionModule
All Implemented Interfaces:
java.io.Serializable

public class DistributionModule
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_NAME
          The property name for the distribution handler class name.
private  DestinationImpl destination
          The distribution queue or topic using this module.
private  DistributionHandler distributionHandler
          Holds the distribution logic.
private  boolean keep
          Tells if distributed message is kept in destination
static java.lang.String KEEP_MESSAGE_OPTION
          Keep message property name: tells if distributed message is kept in destination.
static org.objectweb.util.monolog.api.Logger logger
           
private static long serialVersionUID
          define serialVersionUID for interoperability
 
Constructor Summary
DistributionModule(DestinationImpl destination, java.util.Properties properties)
           
 
Method Summary
 void close()
           
 ClientMessages processMessages(ClientMessages cm)
          Messages received on the distribution destination are distributed using the specified DistributionHandler.
private  void setProperties(java.util.Properties props)
          Resets the distribution properties.
private static java.util.Properties transform(Properties properties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
define serialVersionUID for interoperability

See Also:
Constant Field Values

logger

public static org.objectweb.util.monolog.api.Logger logger

CLASS_NAME

public static final java.lang.String CLASS_NAME
The property name for the distribution handler class name.

See Also:
Constant Field Values

KEEP_MESSAGE_OPTION

public static final java.lang.String KEEP_MESSAGE_OPTION
Keep message property name: tells if distributed message is kept in destination.

See Also:
Constant Field Values

keep

private boolean keep
Tells if distributed message is kept in destination


distributionHandler

private DistributionHandler distributionHandler
Holds the distribution logic.


destination

private final DestinationImpl destination
The distribution queue or topic using this module.

Constructor Detail

DistributionModule

public DistributionModule(DestinationImpl destination,
                          java.util.Properties properties)
                   throws RequestException
Throws:
RequestException
Method Detail

transform

private static java.util.Properties transform(Properties properties)

setProperties

private void setProperties(java.util.Properties props)
                    throws RequestException
Resets the distribution properties.

Throws:
RequestException

processMessages

public ClientMessages processMessages(ClientMessages cm)
Messages received on the distribution destination are distributed using the specified DistributionHandler.


close

public void close()


Copyright © 2010 ScalAgent D.T.. All Rights Reserved.