|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.wsrf.impl.SimpleTopic
Simple in-memory implementation of the Topic interface
| Field Summary | |
protected Object |
current
|
private static org.globus.util.I18n |
i18n
|
protected Collection |
listeners
|
(package private) static org.apache.commons.logging.Log |
logger
|
protected QName |
name
|
protected TopicExpressionType |
reference
|
protected Map |
subTopics
|
protected List |
topicPath
|
| Constructor Summary | |
SimpleTopic(Map subTopics,
TopicExpressionType reference,
Collection listeners,
QName name,
Object current,
List topicPath)
Create a topic with the given parameters |
|
SimpleTopic(QName name)
Create a topic with the given name |
|
| Method Summary | |
void |
addTopic(Topic topic)
Add a sub-topic. |
void |
addTopicListener(TopicListener listener)
Add a topic listener |
Object |
getCurrentMessage()
Get the current notification message if there is any |
QName |
getName()
Get the name of the topic. |
Topic |
getTopic(QName topicName)
Get the sub-topic with the given topic name |
List |
getTopicPath()
Get the topic path. |
TopicExpressionType |
getTopicReference()
Get the topic expression for the topic(s) that this topic references. |
boolean |
isReference()
Is this a topic reference? |
void |
notify(Object obj)
Send out a notification on this topic |
void |
removeTopic(Topic topic)
Remove a sub-topic |
void |
removeTopicListener(TopicListener listener)
Remove a topic listener |
void |
setTopicPath(List topicPath)
Set the topic path. |
void |
setTopicReference(TopicExpressionType topicPath)
Set the topic expression that resolves to a set of topics that this topic references. |
void |
topicAdded(Topic topic)
Called when a topic is added |
void |
topicChanged(Topic topic)
Called when the value of the topic changes |
Iterator |
topicIterator()
Iterator for the set of child topics |
Iterator |
topicListenerIterator()
Get a iterator for the list of TopicListeners |
void |
topicRemoved(Topic topic)
Called when a topic is removed |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static org.globus.util.I18n i18n
protected Map subTopics
protected TopicExpressionType reference
protected Collection listeners
protected QName name
protected Object current
protected List topicPath
static org.apache.commons.logging.Log logger
| Constructor Detail |
public SimpleTopic(QName name)
name - The name of the created topic
public SimpleTopic(Map subTopics,
TopicExpressionType reference,
Collection listeners,
QName name,
Object current,
List topicPath)
subTopics - A map of child topicsreference - A topic expression (only used if this is a topic
alias)listeners - A collection of topic listenersname - The name of this topiccurrent - The current value of this topictopicPath - The concrete topic path of this topic| Method Detail |
public void addTopic(Topic topic)
throws Exception
Topic
addTopic in interface Topictopic - The sub-topic to add
Exceptionpublic void addTopicListener(TopicListener listener)
TopicListenerList
addTopicListener in interface TopicListenerListlistener - The topic listener to addTopicListenerpublic QName getName()
Topic
getName in interface Topicpublic Topic getTopic(QName topicName)
Topic
getTopic in interface TopictopicName - The topic name of the sub topic
public TopicExpressionType getTopicReference()
Topic
getTopicReference in interface Topicpublic boolean isReference()
Topic
isReference in interface Topicpublic Iterator topicIterator()
Topic
topicIterator in interface Topic
public void notify(Object obj)
throws Exception
Topic
notify in interface Topicobj - Object representation of the message to send
Exceptionpublic Object getCurrentMessage()
Topic
getCurrentMessage in interface Topicpublic void removeTopic(Topic topic)
Topic
removeTopic in interface Topictopic - The sub-topic to removepublic void removeTopicListener(TopicListener listener)
TopicListenerList
removeTopicListener in interface TopicListenerListlistener - The topic listener to remove.TopicListenerpublic Iterator topicListenerIterator()
TopicListenerList
topicListenerIterator in interface TopicListenerListTopicListenerpublic void setTopicReference(TopicExpressionType topicPath)
Topic
setTopicReference in interface TopictopicPath - The topic expression to set.public void setTopicPath(List topicPath)
Topic
setTopicPath in interface TopictopicPath - The topic path to associate with this topicpublic List getTopicPath()
Topic
getTopicPath in interface Topicpublic void topicAdded(Topic topic)
TopicListener
topicAdded in interface TopicListenertopic - The topic being addedpublic void topicChanged(Topic topic)
TopicListener
topicChanged in interface TopicListenertopic - The topic that changedpublic void topicRemoved(Topic topic)
TopicListener
topicRemoved in interface TopicListenertopic - The topic being removed
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||