org.apache.stratos.manager.persistence
Class RegistryBasedPersistenceManager

java.lang.Object
  extended by org.apache.stratos.manager.persistence.PersistenceManager
      extended by org.apache.stratos.manager.persistence.RegistryBasedPersistenceManager

public class RegistryBasedPersistenceManager
extends PersistenceManager


Constructor Summary
RegistryBasedPersistenceManager()
           
 
Method Summary
 Collection<CartridgeSubscription> getCartridgeSubscriptions()
           
 Collection<CartridgeSubscription> getCartridgeSubscriptions(int tenantId)
           
 Service getDeployedService(String cartridgeType)
           
 Service getService(String cartridgeType)
           
 Collection<Service> getServices()
           
 void persistCartridgeSubscription(CartridgeSubscription cartridgeSubscription)
           
 void persistService(Service service)
           
 void removeCartridgeSubscription(int tenantId, String type, String alias)
           
 void removeService(String cartridgeType)
           
 Collection<Service> traverseAndGetDeloyedServices(String resourcePath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistryBasedPersistenceManager

public RegistryBasedPersistenceManager()
Method Detail

persistCartridgeSubscription

public void persistCartridgeSubscription(CartridgeSubscription cartridgeSubscription)
                                  throws PersistenceManagerException
Specified by:
persistCartridgeSubscription in class PersistenceManager
Throws:
PersistenceManagerException

removeCartridgeSubscription

public void removeCartridgeSubscription(int tenantId,
                                        String type,
                                        String alias)
                                 throws PersistenceManagerException
Specified by:
removeCartridgeSubscription in class PersistenceManager
Throws:
PersistenceManagerException

getCartridgeSubscriptions

public Collection<CartridgeSubscription> getCartridgeSubscriptions()
                                                            throws PersistenceManagerException
Specified by:
getCartridgeSubscriptions in class PersistenceManager
Throws:
PersistenceManagerException

getCartridgeSubscriptions

public Collection<CartridgeSubscription> getCartridgeSubscriptions(int tenantId)
                                                            throws PersistenceManagerException
Specified by:
getCartridgeSubscriptions in class PersistenceManager
Throws:
PersistenceManagerException

persistService

public void persistService(Service service)
                    throws PersistenceManagerException
Specified by:
persistService in class PersistenceManager
Throws:
PersistenceManagerException

getServices

public Collection<Service> getServices()
                                throws PersistenceManagerException
Specified by:
getServices in class PersistenceManager
Throws:
PersistenceManagerException

getService

public Service getService(String cartridgeType)
                   throws PersistenceManagerException
Specified by:
getService in class PersistenceManager
Throws:
PersistenceManagerException

traverseAndGetDeloyedServices

public Collection<Service> traverseAndGetDeloyedServices(String resourcePath)
                                                  throws PersistenceManagerException
Throws:
PersistenceManagerException

getDeployedService

public Service getDeployedService(String cartridgeType)
                           throws PersistenceManagerException
Throws:
PersistenceManagerException

removeService

public void removeService(String cartridgeType)
                   throws PersistenceManagerException
Specified by:
removeService in class PersistenceManager
Throws:
PersistenceManagerException


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.