public class StorageManager extends Object
Modifier and Type | Field and Description |
---|---|
static int |
BACKEND_INDEX_JCLOUDS
Indizes provided by this class to determine which backend has been
chosen.
|
static String |
ROOT_PATH
The rootpath of where the filelistener saves application dependent data.
|
static String |
STORAGE_PATH
The path where the storage configurations are to find.
|
Constructor and Description |
---|
StorageManager() |
Modifier and Type | Method and Description |
---|---|
static boolean |
createResource(String name,
com.google.inject.AbstractModule module)
Create a new storage with the given name and backend.
|
static List<String> |
getResources()
Retrieve a list of all storages.
|
static ISession |
getSession(String resourceName)
Retrieve a session from the system for the given Storagename
|
static void |
removeResource(String pResourceName)
Via this method you can
remove a storage from the system.
|
public static final int BACKEND_INDEX_JCLOUDS
public static final String ROOT_PATH
public static final String STORAGE_PATH
public static boolean createResource(String name, com.google.inject.AbstractModule module) throws StorageAlreadyExistsException, TTException
name
- module
- StorageAlreadyExistsException
TTException
public static List<String> getResources()
public static ISession getSession(String resourceName) throws ResourceNotExistingException, TTException
resourceName
- ISession
for the resourceResourceNotExistingException
TTException
public static void removeResource(String pResourceName) throws TTException, ResourceNotExistingException
pResourceName
- TTException
ResourceNotExistingException
Copyright © 2013. All Rights Reserved.