ca.mcgill.cs.postina.scribe
Class ScribeTopic

java.lang.Object
  extended by rice.p2p.scribe.Topic
      extended by ca.mcgill.cs.postina.scribe.ScribeTopic
All Implemented Interfaces:
PostinaTopic, java.io.Serializable, java.lang.Comparable<rice.p2p.scribe.Topic>

public class ScribeTopic
extends rice.p2p.scribe.Topic
implements PostinaTopic

The ScribeTopic is the representation for a Topic used internally by Postina.

Version:
Oct 23, 2007
Author:
Dominik Zindel
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
private  java.lang.String topicName
          The string representation of the topic.
 
Fields inherited from class rice.p2p.scribe.Topic
id
 
Constructor Summary
protected ScribeTopic(java.lang.String topicName, rice.p2p.commonapi.IdFactory idFactory)
          This constructor creates a new Topic for the given string representation of the topic, using the IdFactory.
 
Method Summary
 java.lang.String getName()
          This method gets the string representation of the topic.
 
Methods inherited from class rice.p2p.scribe.Topic
compareTo, equals, getId, getId, hashCode, serialize, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

topicName

private final java.lang.String topicName
The string representation of the topic.

Constructor Detail

ScribeTopic

protected ScribeTopic(java.lang.String topicName,
                      rice.p2p.commonapi.IdFactory idFactory)
This constructor creates a new Topic for the given string representation of the topic, using the IdFactory.

Parameters:
topicName - The string representation of the topic to be created.
idFactory - The IdFactory that should be used to create the topic.
Method Detail

getName

public java.lang.String getName()
Description copied from interface: PostinaTopic
This method gets the string representation of the topic.

Specified by:
getName in interface PostinaTopic
Returns:
The string representing the topic.