|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.common.distribute.ChannelID
public class ChannelID
A class for representing the names of JMS queues.
Field Summary | |
---|---|
(package private) static java.lang.String |
COMMON
Constants to make the semantics of parameters to our name constructors more explicit. |
(package private) static boolean |
INCLUDE_APPLINST_ID
|
(package private) static boolean |
INCLUDE_IP
|
(package private) static boolean |
NO_APPLINST_ID
|
(package private) static boolean |
NO_IP
|
(package private) static boolean |
QUEUE
|
(package private) static boolean |
TOPIC
|
Constructor Summary | |
---|---|
ChannelID(java.lang.String appPref,
java.lang.String replicaId,
boolean useNodeId,
boolean useAppInstId,
boolean isTopic)
Constructor of channel names. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Implements equality check for ChannelIDs. |
java.lang.String |
getName()
Getter for the channel name. |
int |
hashCode()
Computes a hash code based on the channel name and whether it is a topic. |
java.lang.String |
toString()
Pretty-printer. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
static final java.lang.String COMMON
static final boolean INCLUDE_IP
static final boolean NO_IP
static final boolean INCLUDE_APPLINST_ID
static final boolean NO_APPLINST_ID
static final boolean TOPIC
static final boolean QUEUE
Constructor Detail |
---|
ChannelID(java.lang.String appPref, java.lang.String replicaId, boolean useNodeId, boolean useAppInstId, boolean isTopic)
appPref
- The prefix used for the applications listening
to the channel.replicaId
- Name of the replica, or ChannelID.COMMON if
channel shared by all replicas.useNodeId
- Whether that IP address of the local node should
be included in the channel name.useAppInstId
- Whether application instance id from settings
should be included in the channel name.isTopic
- Whether the Channel is a Topic or a Queue.
UnknownID
- if looking up the local IP number failed.Method Detail |
---|
public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- The object to compare this object with.
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |