org.globus.exec.service.utils
Class SubscriptionPersistenceUtils

java.lang.Object
  extended byorg.globus.exec.service.utils.SubscriptionPersistenceUtils

public class SubscriptionPersistenceUtils
extends java.lang.Object


Field Summary
private static org.globus.util.I18n i18n
           
private static org.apache.commons.logging.Log logger
           
 
Constructor Summary
SubscriptionPersistenceUtils()
           
 
Method Summary
static void addSubscriptionListenersToTopics(TopicListenerDescriptionType[] listenerDescriptions, TopicList topicList)
          Add the deserialized listeners to the topics passed in parameter.
static TopicListenerDescriptionType[] getSerializableListeners(TopicList topicList)
          Serialize any registered subscription topic listeners of type SimpleSubscriptionListener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static org.apache.commons.logging.Log logger

i18n

private static org.globus.util.I18n i18n
Constructor Detail

SubscriptionPersistenceUtils

public SubscriptionPersistenceUtils()
Method Detail

getSerializableListeners

public static TopicListenerDescriptionType[] getSerializableListeners(TopicList topicList)
                                                               throws java.lang.Exception
Serialize any registered subscription topic listeners of type SimpleSubscriptionListener.

Parameters:
topicList - The topic list on which the listeners are registered
Returns:
TopicListenerDescriptionType[] the array of serializable subscription data
Throws:
java.lang.Exception

addSubscriptionListenersToTopics

public static void addSubscriptionListenersToTopics(TopicListenerDescriptionType[] listenerDescriptions,
                                                    TopicList topicList)
                                             throws java.lang.Exception
Add the deserialized listeners to the topics passed in parameter.

Parameters:
topicList - The topic list on which to register the deserialized listeners
Throws:
java.lang.Exception