Package org.objectweb.joram.shared
Class DestinationConstants
- java.lang.Object
-
- org.objectweb.joram.shared.DestinationConstants
-
public final class DestinationConstants extends Object
Defines constants needed to distinguish Queue and Topic.
-
-
Field Summary
Fields Modifier and Type Field Description static StringACQ_QUEUE_MAX_MSGstatic StringACQ_QUEUE_MAX_PNDstatic StringACQ_QUEUE_MIN_MSGstatic StringACQ_QUEUE_MIN_PNDstatic StringACQUISITION_CLASS_NAMEThe property name for the acquisition handler class name.static StringACQUISITION_EXPIRATIONExpiration property name: tells the life expectancy of produced messages.static StringACQUISITION_PERIODThe property name for the acquisition period.static StringACQUISITION_PERSISTENTPersistent property name: tells if produced messages will be persistent.static StringACQUISITION_PRIORITYPriority property name: tells the JMS priority of produced messages.static StringASYNC_DISTRIBUTION_OPTIONstatic StringBATCH_DISTRIBUTION_OPTIONstatic StringCHECKPERIOD_PROPstatic StringDELIVERY_DELAYstatic StringDEST_STRICT_CPTstatic StringDESTINATION_NAME_PROPThe property name for the remote JMS destination in Acquisition/Distribution bridge destinationsprivate static byteDESTINATION_TYPEthe destination is a Queue or a Topicstatic StringDISTRIBUTION_CLASS_NAMEThe property name for the distribution handler class name.static StringFIXED_IN_MEMORYName of property allowing to force the destination to be always in memory.static StringIDLETIMEOUT_PROPstatic StringMEDIA_TYPE_JSON_PROPstatic StringNB_MAX_MSG_PROPstatic byteQUEUE_TYPEthe destination is a Queuestatic StringREDELIVERY_DELAYstatic StringREST_CONNECT_TIMEOUT_PROPstatic StringREST_HOST_PROPstatic StringREST_PASSWORD_PROPstatic StringREST_PORT_PROPstatic StringREST_READ_TIMEOUT_PROPstatic StringREST_USE_OLD_APIstatic StringREST_USERNAME_PROPstatic byteTEMPORARYthe destination is temporarystatic StringTIMEOUT_PROPstatic StringTMPQUEUE_DMQ_ON_DELETEstatic byteTOPIC_TYPEthe destination is a Topicstatic StringWAKEUP_PERIODThe property name for the period of wakeup tasks
-
Constructor Summary
Constructors Constructor Description DestinationConstants()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcheckId(String id)Check the specified destination identifier.static booleancompatible(byte type1, byte type2)static StringgetAdminTopicId(int serverId)static StringgetNullId(int serverId)static bytegetQueueType()static bytegetTemporaryQueueType()static bytegetTemporaryTopicType()static bytegetTopicType()static booleanisQueue(byte type)static booleanisTemporary(byte type)static booleanisTopic(byte type)
-
-
-
Field Detail
-
WAKEUP_PERIOD
public static final String WAKEUP_PERIOD
The property name for the period of wakeup tasks- See Also:
- Constant Field Values
-
DESTINATION_NAME_PROP
public static final String DESTINATION_NAME_PROP
The property name for the remote JMS destination in Acquisition/Distribution bridge destinations- See Also:
- Constant Field Values
-
REDELIVERY_DELAY
public static final String REDELIVERY_DELAY
- See Also:
- Constant Field Values
-
DELIVERY_DELAY
public static final String DELIVERY_DELAY
- See Also:
- Constant Field Values
-
FIXED_IN_MEMORY
public static final String FIXED_IN_MEMORY
Name of property allowing to force the destination to be always in memory. By side effect the destination is pre-loaded during server initialization.- See Also:
- Constant Field Values
-
DISTRIBUTION_CLASS_NAME
public static final String DISTRIBUTION_CLASS_NAME
The property name for the distribution handler class name.- See Also:
- Constant Field Values
-
BATCH_DISTRIBUTION_OPTION
public static final String BATCH_DISTRIBUTION_OPTION
- See Also:
- Constant Field Values
-
ASYNC_DISTRIBUTION_OPTION
public static final String ASYNC_DISTRIBUTION_OPTION
- See Also:
- Constant Field Values
-
ACQUISITION_CLASS_NAME
public static final String ACQUISITION_CLASS_NAME
The property name for the acquisition handler class name.- See Also:
- Constant Field Values
-
ACQUISITION_PERIOD
public static final String ACQUISITION_PERIOD
The property name for the acquisition period.- See Also:
- Constant Field Values
-
ACQUISITION_PERSISTENT
public static final String ACQUISITION_PERSISTENT
Persistent property name: tells if produced messages will be persistent.- See Also:
- Constant Field Values
-
ACQUISITION_EXPIRATION
public static final String ACQUISITION_EXPIRATION
Expiration property name: tells the life expectancy of produced messages.- See Also:
- Constant Field Values
-
ACQUISITION_PRIORITY
public static final String ACQUISITION_PRIORITY
Priority property name: tells the JMS priority of produced messages.- See Also:
- Constant Field Values
-
ACQ_QUEUE_MAX_MSG
public static final String ACQ_QUEUE_MAX_MSG
- See Also:
- Constant Field Values
-
ACQ_QUEUE_MIN_MSG
public static final String ACQ_QUEUE_MIN_MSG
- See Also:
- Constant Field Values
-
ACQ_QUEUE_MAX_PND
public static final String ACQ_QUEUE_MAX_PND
- See Also:
- Constant Field Values
-
ACQ_QUEUE_MIN_PND
public static final String ACQ_QUEUE_MIN_PND
- See Also:
- Constant Field Values
-
REST_HOST_PROP
public static final String REST_HOST_PROP
- See Also:
- Constant Field Values
-
REST_PORT_PROP
public static final String REST_PORT_PROP
- See Also:
- Constant Field Values
-
REST_USE_OLD_API
public static final String REST_USE_OLD_API
- See Also:
- Constant Field Values
-
REST_USERNAME_PROP
public static final String REST_USERNAME_PROP
- See Also:
- Constant Field Values
-
REST_PASSWORD_PROP
public static final String REST_PASSWORD_PROP
- See Also:
- Constant Field Values
-
MEDIA_TYPE_JSON_PROP
public static final String MEDIA_TYPE_JSON_PROP
- See Also:
- Constant Field Values
-
TIMEOUT_PROP
public static final String TIMEOUT_PROP
- See Also:
- Constant Field Values
-
IDLETIMEOUT_PROP
public static final String IDLETIMEOUT_PROP
- See Also:
- Constant Field Values
-
REST_CONNECT_TIMEOUT_PROP
public static final String REST_CONNECT_TIMEOUT_PROP
- See Also:
- Constant Field Values
-
REST_READ_TIMEOUT_PROP
public static final String REST_READ_TIMEOUT_PROP
- See Also:
- Constant Field Values
-
CHECKPERIOD_PROP
public static final String CHECKPERIOD_PROP
- See Also:
- Constant Field Values
-
NB_MAX_MSG_PROP
public static final String NB_MAX_MSG_PROP
- See Also:
- Constant Field Values
-
TMPQUEUE_DMQ_ON_DELETE
public static final String TMPQUEUE_DMQ_ON_DELETE
- See Also:
- Constant Field Values
-
DEST_STRICT_CPT
public static final String DEST_STRICT_CPT
- See Also:
- Constant Field Values
-
TOPIC_TYPE
public static final byte TOPIC_TYPE
the destination is a Topic- See Also:
- Constant Field Values
-
QUEUE_TYPE
public static final byte QUEUE_TYPE
the destination is a Queue- See Also:
- Constant Field Values
-
TEMPORARY
public static final byte TEMPORARY
the destination is temporary- See Also:
- Constant Field Values
-
DESTINATION_TYPE
private static final byte DESTINATION_TYPE
the destination is a Queue or a Topic- See Also:
- Constant Field Values
-
-
Method Detail
-
compatible
public static final boolean compatible(byte type1, byte type2)
-
isQueue
public static final boolean isQueue(byte type)
-
isTopic
public static final boolean isTopic(byte type)
-
isTemporary
public static final boolean isTemporary(byte type)
-
getQueueType
public static final byte getQueueType()
-
getTopicType
public static final byte getTopicType()
-
getTemporaryQueueType
public static final byte getTemporaryQueueType()
-
getTemporaryTopicType
public static final byte getTemporaryTopicType()
-
checkId
public static final void checkId(String id) throws Exception
Check the specified destination identifier.- Parameters:
id- The destination identifier.- Throws:
Exception- if an invalid destination identifier is specified.
-
getNullId
public static final String getNullId(int serverId)
-
getAdminTopicId
public static final String getAdminTopicId(int serverId)
-
-