public class MemoryBasedCatalogRepository extends Object implements CatalogRepository
Memory based Repository where the CatalogService stores its TransactionId Mapping and serializes its Catalogs
Modifier and Type | Field and Description |
---|---|
protected HashMap<String,Catalog> |
catalogMap |
protected List<PluginURL> |
classLoaderUrls |
Constructor and Description |
---|
MemoryBasedCatalogRepository() |
Modifier and Type | Method and Description |
---|---|
void |
deleteSerializedCatalog(String catalogUrn)
Removes a Catalog from the Repository
|
Set<Catalog> |
deserializeAllCatalogs()
Loads all Catalogs serialized in this Repository
|
Catalog |
deserializeCatalog(String catalogUrn) |
List<PluginURL> |
deserializePluginURLs() |
boolean |
isCatalogSerialized(String catalogUrn) |
boolean |
isModifiable() |
void |
serializeCatalog(Catalog catalog)
Serializes a given Catalog to the Repository
|
void |
serializePluginURLs(List<PluginURL> urls) |
public void deleteSerializedCatalog(String catalogUrn) throws CatalogRepositoryException
CatalogRepository
deleteSerializedCatalog
in interface CatalogRepository
catalogUrn
- The URN that unique represents the Catalog to be removedCatalogRepositoryException
- Any Errorpublic Set<Catalog> deserializeAllCatalogs() throws CatalogRepositoryException
CatalogRepository
deserializeAllCatalogs
in interface CatalogRepository
CatalogRepositoryException
- Any Errorpublic Catalog deserializeCatalog(String catalogUrn) throws CatalogRepositoryException
CatalogRepositoryException
public boolean isCatalogSerialized(String catalogUrn) throws CatalogRepositoryException
CatalogRepositoryException
public void serializeCatalog(Catalog catalog) throws CatalogRepositoryException
CatalogRepository
serializeCatalog
in interface CatalogRepository
catalog
- The Catalog to be serializedCatalogRepositoryException
- Any Errorpublic void serializePluginURLs(List<PluginURL> urls) throws CatalogRepositoryException
serializePluginURLs
in interface CatalogRepository
CatalogRepositoryException
public List<PluginURL> deserializePluginURLs() throws CatalogRepositoryException
deserializePluginURLs
in interface CatalogRepository
CatalogRepositoryException
public boolean isModifiable() throws CatalogRepositoryException
isModifiable
in interface CatalogRepository
CatalogRepositoryException
Copyright © 1999-2014 Apache OODT. All Rights Reserved.