|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.globus.wsrf.impl.SimpleTopic
Simple in-memory implementation of the Topic interface
| Field Summary | |
protected Object |
current
|
protected Collection |
listeners
|
protected QName |
name
|
protected TopicExpressionType |
reference
|
protected Collection |
subscriptions
|
protected Map |
subTopics
|
protected List |
topicPath
|
| Constructor Summary | |
SimpleTopic(Map subTopics,
TopicExpressionType reference,
Collection listeners,
Collection subscriptions,
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 |
protected Map subTopics
protected TopicExpressionType reference
protected Collection listeners
protected Collection subscriptions
protected QName name
protected Object current
protected List topicPath
| Constructor Detail |
public SimpleTopic(QName name)
name - The name of the created topic
public SimpleTopic(Map subTopics,
TopicExpressionType reference,
Collection listeners,
Collection subscriptions,
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 listenerssubscriptions - A collection of subscriptionsname - 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
TopicaddTopic in interface Topicorg.globus.wsrf.Topictopic - The sub-topic to addException - public void addTopicListener(TopicListener listener)
TopicListenerListaddTopicListener in interface TopicListenerListorg.globus.wsrf.TopicListenerListlistener - The topic listener to addTopicListenerpublic QName getName()
TopicgetName in interface Topicorg.globus.wsrf.Topicpublic Topic getTopic(QName topicName)
TopicgetTopic in interface Topicorg.globus.wsrf.TopictopicName - The topic name of the sub topicpublic TopicExpressionType getTopicReference()
TopicgetTopicReference in interface Topicorg.globus.wsrf.Topicpublic boolean isReference()
TopicisReference in interface Topicorg.globus.wsrf.Topicpublic Iterator topicIterator()
TopictopicIterator in interface Topicorg.globus.wsrf.Topic
public void notify(Object obj)
throws Exception
Topicnotify in interface Topicorg.globus.wsrf.Topicobj - Object representation of the message to sendException - public Object getCurrentMessage()
TopicgetCurrentMessage in interface Topicorg.globus.wsrf.Topicpublic void removeTopic(Topic topic)
TopicremoveTopic in interface Topicorg.globus.wsrf.Topictopic - The sub-topic to removepublic void removeTopicListener(TopicListener listener)
TopicListenerListremoveTopicListener in interface TopicListenerListorg.globus.wsrf.TopicListenerListlistener - The topic listener to remove.TopicListenerpublic Iterator topicListenerIterator()
TopicListenerListtopicListenerIterator in interface TopicListenerListorg.globus.wsrf.TopicListenerListTopicListenerpublic void setTopicReference(TopicExpressionType topicPath)
TopicsetTopicReference in interface Topicorg.globus.wsrf.TopictopicPath - The topic expression to set.public void setTopicPath(List topicPath)
TopicsetTopicPath in interface Topicorg.globus.wsrf.TopictopicPath - The topic path to associate with this topicpublic List getTopicPath()
TopicgetTopicPath in interface Topicorg.globus.wsrf.Topicpublic void topicAdded(Topic topic)
TopicListenertopicAdded in interface TopicListenerorg.globus.wsrf.TopicListenertopic - The topic being addedpublic void topicChanged(Topic topic)
TopicListenertopicChanged in interface TopicListenerorg.globus.wsrf.TopicListenertopic - The topic that changedpublic void topicRemoved(Topic topic)
TopicListenertopicRemoved in interface TopicListenerorg.globus.wsrf.TopicListenertopic - The topic being removed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||