org.objectweb.joram.shared
Class DestinationConstants

java.lang.Object
  extended by org.objectweb.joram.shared.DestinationConstants

public final class DestinationConstants
extends java.lang.Object

Defines constants needed to distinguish Queue and Topic.


Field Summary
static byte QUEUE_TYPE
          the destination is a Queue
static byte TEMPORARY
          the destination is temporary
static byte TOPIC_TYPE
          the destination is a Topic
 
Constructor Summary
DestinationConstants()
           
 
Method Summary
static void checkId(java.lang.String id)
          Check the specified destination identifier.
static boolean compatible(byte type1, byte type2)
           
static java.lang.String getAdminTopicId(int serverId)
           
static java.lang.String getNullId(int serverId)
           
static byte getQueueType()
           
static byte getTemporaryQueueType()
           
static byte getTemporaryTopicType()
           
static byte getTopicType()
           
static boolean isQueue(byte type)
           
static boolean isTemporary(byte type)
           
static boolean isTopic(byte type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

DestinationConstants

public DestinationConstants()
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(java.lang.String id)
                          throws java.lang.Exception
Check the specified destination identifier.

Throws:
java.lang.Exception - if an invalid destination identifier is specified.

getNullId

public static final java.lang.String getNullId(int serverId)

getAdminTopicId

public static final java.lang.String getAdminTopicId(int serverId)


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