org.openorb.notify
Class PropertiesRepository

java.lang.Object
  |
  +--org.openorb.notify.PropertiesRepository
All Implemented Interfaces:
java.lang.Cloneable

public class PropertiesRepository
extends java.lang.Object
implements java.lang.Cloneable

The PropertiesHelper class defines operations for getting and setting runtime properties. That way, the specific properties can be set and retrieved more efficiently (no need to parse Property[]).

Author:
Olivier Modica

Constructor Summary
PropertiesRepository()
          Constructor
PropertiesRepository(Property[] qos)
          Constructor
PropertiesRepository(Property[] qos, Property[] admin)
          Constructor
 
Method Summary
 short getDiscardPolicy()
          DiscardPolicy getter
 int getMaxConsumers()
          MaxConsumers getter
 int getMaxEventsPerConsumer()
          MaxEventsPerConsumer getter
 int getMaximumBatchSize()
          MaximumBatchSize getter
 int getMaxQueueLength()
          MaxQueueLength getter
 int getMaxSuppliers()
          MaxSuppliers getter
 short getOrderPolicy()
          OrderPolicy getter
 long getPacingInterval()
          PacingInterval getter
 short getPriority()
          Priority getter
 java.lang.Object getProperty(java.lang.Object key)
          This methods gets a property.
 UtcT getStartTime()
          StartTime getter
 UtcT getStopTime()
          StopTime getter
 long getTimeout()
          Timeout getter
 boolean isConnectionReliable()
          ConnectionReliability getter
 boolean isEventReliable()
          EventReliability getter
 boolean isQueueMaxPerformance()
          EventQueuePerformance getter (OpenORB only)
 boolean isRejectNewEvents()
          RejectNewEvents getter
 boolean isStartTimeSupported()
          StartTimeSupported getter
 boolean isStopTimeSupported()
          StopTimeSupported getter
 void setProperty(java.lang.Object key, java.lang.Object value)
          This methods sets a property.
 void storeProperties(Property[] props)
          This methods uses a Property list ( Admin or QoS properties ) to store the properties in the helper.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertiesRepository

public PropertiesRepository(Property[] qos,
                            Property[] admin)
Constructor

PropertiesRepository

public PropertiesRepository(Property[] qos)
Constructor

PropertiesRepository

public PropertiesRepository()
Constructor
Method Detail

setProperty

public void setProperty(java.lang.Object key,
                        java.lang.Object value)
This methods sets a property. This property will be used by an event channel and its children.

getProperty

public java.lang.Object getProperty(java.lang.Object key)
This methods gets a property. This property is used by an event channel and its children.

isConnectionReliable

public boolean isConnectionReliable()
ConnectionReliability getter

isEventReliable

public boolean isEventReliable()
EventReliability getter

getMaxQueueLength

public int getMaxQueueLength()
MaxQueueLength getter

getMaxConsumers

public int getMaxConsumers()
MaxConsumers getter

getMaxSuppliers

public int getMaxSuppliers()
MaxSuppliers getter

isRejectNewEvents

public boolean isRejectNewEvents()
RejectNewEvents getter

getPriority

public short getPriority()
Priority getter

getStartTime

public UtcT getStartTime()
StartTime getter

getStopTime

public UtcT getStopTime()
StopTime getter

getTimeout

public long getTimeout()
Timeout getter

isStartTimeSupported

public boolean isStartTimeSupported()
StartTimeSupported getter

isStopTimeSupported

public boolean isStopTimeSupported()
StopTimeSupported getter

getMaxEventsPerConsumer

public int getMaxEventsPerConsumer()
MaxEventsPerConsumer getter

getOrderPolicy

public short getOrderPolicy()
OrderPolicy getter

getDiscardPolicy

public short getDiscardPolicy()
DiscardPolicy getter

getPacingInterval

public long getPacingInterval()
PacingInterval getter

getMaximumBatchSize

public int getMaximumBatchSize()
MaximumBatchSize getter

isQueueMaxPerformance

public boolean isQueueMaxPerformance()
EventQueuePerformance getter (OpenORB only)

storeProperties

public void storeProperties(Property[] props)
This methods uses a Property list ( Admin or QoS properties ) to store the properties in the helper.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object