com.ebmwebsourcing.wsstar.notification.service.persistence
Class WsnPersistence
java.lang.Object
com.ebmwebsourcing.wsstar.notification.service.persistence.WsnPersistence
public class WsnPersistence
- extends java.lang.Object
The persistence manager used to persist consumer subscription and producer registration so
that they can be reloaded when needed.
- Author:
- Thierry Déjean - eBM WebSourcing
|
Constructor Summary |
WsnPersistence(java.io.File subscriptions_path,
java.io.File registrations_path)
|
|
Method Summary |
java.util.Map<java.lang.String,com.ebmwebsourcing.wsstar.notification.definition.brokerednotification.api.PublisherRegistrationRP> |
getRegistrationsToRestore()
|
java.util.Map<java.lang.String,com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.SubscriptionManagerRP> |
getSubscriptionsToRestore()
|
void |
persist(com.ebmwebsourcing.wsstar.notification.definition.brokerednotification.api.PublisherRegistrationRP registrationRP,
java.lang.String uuid)
|
void |
persist(com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.SubscriptionManagerRP subscriptionRP,
java.lang.String uuid)
|
void |
removeRegistration(java.lang.String uuid)
|
void |
removeSubscription(java.lang.String uuid)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WsnPersistence
public WsnPersistence(java.io.File subscriptions_path,
java.io.File registrations_path)
- Parameters:
subscriptions_path - registrations_path -
persist
public void persist(com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.SubscriptionManagerRP subscriptionRP,
java.lang.String uuid)
throws com.ebmwebsourcing.wsstar.notification.definition.utils.WSNotificationException
- Parameters:
subscription -
- Throws:
java.lang.Exception
com.ebmwebsourcing.wsstar.notification.definition.utils.WSNotificationException
persist
public void persist(com.ebmwebsourcing.wsstar.notification.definition.brokerednotification.api.PublisherRegistrationRP registrationRP,
java.lang.String uuid)
throws com.ebmwebsourcing.wsstar.notification.definition.utils.WSNotificationException
- Parameters:
subscription -
- Throws:
java.lang.Exception
com.ebmwebsourcing.wsstar.notification.definition.utils.WSNotificationException
getRegistrationsToRestore
public java.util.Map<java.lang.String,com.ebmwebsourcing.wsstar.notification.definition.brokerednotification.api.PublisherRegistrationRP> getRegistrationsToRestore()
throws com.ebmwebsourcing.wsstar.notification.definition.utils.WSNotificationException
- Returns:
-
- Throws:
com.ebmwebsourcing.wsstar.notification.definition.utils.WSNotificationException
getSubscriptionsToRestore
public java.util.Map<java.lang.String,com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.SubscriptionManagerRP> getSubscriptionsToRestore()
throws com.ebmwebsourcing.wsstar.notification.definition.utils.WSNotificationException
- Returns:
-
- Throws:
com.ebmwebsourcing.wsstar.notification.definition.utils.WSNotificationException
removeSubscription
public void removeSubscription(java.lang.String uuid)
throws com.ebmwebsourcing.wsstar.notification.definition.utils.WSNotificationException
- Parameters:
uuid -
- Throws:
com.ebmwebsourcing.wsstar.notification.definition.utils.WSNotificationException
removeRegistration
public void removeRegistration(java.lang.String uuid)
throws com.ebmwebsourcing.wsstar.notification.definition.utils.WSNotificationException
- Parameters:
uuid -
- Throws:
com.ebmwebsourcing.wsstar.notification.definition.utils.WSNotificationException
Copyright © 2009-2010 eBM Websourcing. All Rights Reserved.