org.apache.juddi.subscription
Class SubscriptionNotifier

java.lang.Object
  extended by java.util.TimerTask
      extended by org.apache.juddi.subscription.SubscriptionNotifier
All Implemented Interfaces:
java.lang.Runnable

public class SubscriptionNotifier
extends java.util.TimerTask

Author:
Kurt T Stam

Constructor Summary
SubscriptionNotifier()
           
 
Method Summary
protected  GetSubscriptionResults buildGetSubscriptionResults(Subscription subscription, java.util.Date endPoint)
           
protected  java.util.Collection<Subscription> getAllAsyncSubscriptions()
          Obtains all subscriptions in the system.
protected  UDDISubscriptionImpl getSubscriptionImpl()
           
protected  void notify(GetSubscriptionResults getSubscriptionResults, SubscriptionResultsList resultList)
          Sends out the notifications.
protected  boolean resultListContainsChanges(SubscriptionResultsList resultList)
           
 void run()
           
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubscriptionNotifier

public SubscriptionNotifier()
                     throws org.apache.commons.configuration.ConfigurationException
Throws:
org.apache.commons.configuration.ConfigurationException
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Specified by:
run in class java.util.TimerTask

buildGetSubscriptionResults

protected GetSubscriptionResults buildGetSubscriptionResults(Subscription subscription,
                                                             java.util.Date endPoint)
                                                      throws DispositionReportFaultMessage,
                                                             javax.xml.datatype.DatatypeConfigurationException
Throws:
DispositionReportFaultMessage
javax.xml.datatype.DatatypeConfigurationException

resultListContainsChanges

protected boolean resultListContainsChanges(SubscriptionResultsList resultList)

getAllAsyncSubscriptions

protected java.util.Collection<Subscription> getAllAsyncSubscriptions()
Obtains all subscriptions in the system.

Returns:
Collection of All Subscriptions in the system.

notify

protected void notify(GetSubscriptionResults getSubscriptionResults,
                      SubscriptionResultsList resultList)
Sends out the notifications.

Parameters:
resultList -
Throws:
java.net.MalformedURLException
DispositionReportFaultMessage

getSubscriptionImpl

protected UDDISubscriptionImpl getSubscriptionImpl()


Copyright © 2004-2009. All Rights Reserved.