|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.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_IP
|
(package private) static boolean |
INCLUDE_PROC_ID
|
(package private) static boolean |
NO_IP
|
(package private) static boolean |
NO_PROC_ID
|
(package private) static boolean |
QUEUE
|
(package private) static boolean |
TOPIC
|
Constructor Summary | |
---|---|
ChannelID(java.lang.String app,
java.lang.String institution,
boolean useNodeId,
boolean useProcId,
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. |
(package private) boolean |
isTopic()
Getter method for isTopic. |
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_PROC_ID
static final boolean NO_PROC_ID
static final boolean TOPIC
static final boolean QUEUE
Constructor Detail |
---|
ChannelID(java.lang.String app, java.lang.String institution, boolean useNodeId, boolean useProcId, boolean isTopic)
app
- The name of the applications listening to the channel.institution
- Name of the institution, or ChannelID.COMMON if
a common institution.useNodeId
- Whether that IP address of the local node should
be included in the channel name.useProcId
- Whether process identifier (= IP port# used for
communication) 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
boolean isTopic()
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 |