com.ebmwebsourcing.wsstar.notification.service.persistance
Class WsnPersistance

java.lang.Object
  extended by com.ebmwebsourcing.wsstar.notification.service.persistance.WsnPersistance

public class WsnPersistance
extends java.lang.Object

The persistence manager used to persist topics and subscription so that they can be reloaded when needed.

Since:
1.1
Author:
Christophe HAMERLING - eBM WebSourcing

Constructor Summary
WsnPersistance(java.io.File path)
           
 
Method Summary
 void cleanSubscriptions(javax.xml.namespace.QName topicName)
          Clean all the subscriptions persistence files in the subscription folder
 boolean delete(java.lang.String topicName)
          Delete the topic folder persistence
 boolean delete(com.ebmwebsourcing.wsstar.notification.definition.base.SubscriptionManagerRP subscription)
          Delete a subscription persistence file
 java.util.List<org.apache.axiom.soap.SOAPEnvelope> getSubscriptionEnvelopesForTopic(javax.xml.namespace.QName topicName)
           
 void persist(com.ebmwebsourcing.wsstar.notification.definition.base.SubscriptionManagerRP subscription)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsnPersistance

public WsnPersistance(java.io.File path)
Parameters:
path - The root folder of the persistence. The folder is created if it do not exists.
Method Detail

persist

public void persist(com.ebmwebsourcing.wsstar.notification.definition.base.SubscriptionManagerRP subscription)
             throws java.lang.Exception
Parameters:
subscription -
Throws:
java.lang.Exception

delete

public boolean delete(com.ebmwebsourcing.wsstar.notification.definition.base.SubscriptionManagerRP subscription)
               throws java.lang.Exception
Delete a subscription persistence file

Parameters:
subscription -
Throws:
java.lang.Exception

delete

public boolean delete(java.lang.String topicName)
Delete the topic folder persistence

Parameters:
topicName -
Returns:

getSubscriptionEnvelopesForTopic

public java.util.List<org.apache.axiom.soap.SOAPEnvelope> getSubscriptionEnvelopesForTopic(javax.xml.namespace.QName topicName)
Parameters:
topicName -
Returns:

cleanSubscriptions

public void cleanSubscriptions(javax.xml.namespace.QName topicName)
Clean all the subscriptions persistence files in the subscription folder

Parameters:
topicName -


Copyright © 2009 eBM Websourcing. All Rights Reserved.