|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.wsrf.impl.SimpleSubscriptionTopicListener
Topic listener implementation that will trigger notifications when a topic changes. To be used in conjunction with the SimpleSubscription class.
SimpleSubscription,
Serialized Form| Nested Class Summary | |
private static class |
SimpleSubscriptionTopicListener.SharedWSBaseNotificationServiceAddressingLocator
This is extended to force the resue of EngineConfiguration and AxisClient engine. |
| Field Summary | |
private NotificationConsumer |
consumerPort
|
private java.lang.String |
homeLocation
|
private static org.globus.util.I18n |
i18n
|
private ResourceKey |
key
|
private WSBaseNotificationServiceAddressingLocator |
locator
|
private static org.apache.commons.logging.Log |
logger
|
| Constructor Summary | |
SimpleSubscriptionTopicListener(ResourceKey key,
java.lang.String homeLocation)
Construct a listener instance. |
|
| Method Summary | |
Subscription |
getSubscription()
|
java.lang.String |
getSubscriptionHomeLocation()
|
ResourceKey |
getSubscriptionResourceKey()
|
protected void |
notify(Subscription subscription,
java.util.List topicPath,
java.lang.Object newValue)
Send a notification |
private void |
setPort(boolean reuse,
org.apache.axis.message.addressing.EndpointReferenceType consumerEPR)
|
private void |
setPort(ClientSecurityDescriptor descriptor,
org.apache.axis.message.addressing.EndpointReferenceType consumerEPR)
|
void |
topicAdded(Topic topic)
Called when a topic is added |
void |
topicChanged(Topic topic)
Called when the value of the topic changes |
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.apache.commons.logging.Log logger
private static org.globus.util.I18n i18n
private ResourceKey key
private java.lang.String homeLocation
private transient NotificationConsumer consumerPort
private transient WSBaseNotificationServiceAddressingLocator locator
| Constructor Detail |
public SimpleSubscriptionTopicListener(ResourceKey key,
java.lang.String homeLocation)
key - The key for the subscription resource associated with
this listener.homeLocation - The JNDI location of the subscription resource home| Method Detail |
public void topicChanged(Topic topic)
TopicListener
topicChanged in interface TopicListenertopic - The topic that changedpublic void topicAdded(Topic topic)
TopicListener
topicAdded in interface TopicListenertopic - The topic being addedpublic void topicRemoved(Topic topic)
TopicListener
topicRemoved in interface TopicListenertopic - The topic being removed
public Subscription getSubscription()
throws ResourceException
ResourceExceptionpublic java.lang.String getSubscriptionHomeLocation()
public ResourceKey getSubscriptionResourceKey()
protected void notify(Subscription subscription,
java.util.List topicPath,
java.lang.Object newValue)
throws java.lang.Exception
subscription - The subscription for which to send the notificationtopicPath - The topic path of the topic that caused the
notificationnewValue - The new value of the topic
java.lang.Exception
private void setPort(ClientSecurityDescriptor descriptor,
org.apache.axis.message.addressing.EndpointReferenceType consumerEPR)
throws java.lang.Exception
java.lang.Exception
private void setPort(boolean reuse,
org.apache.axis.message.addressing.EndpointReferenceType consumerEPR)
throws java.lang.Exception
java.lang.Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||