|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.openexchange.admin.storage.interfaces.OXUtilStorageInterface
public abstract class OXUtilStorageInterface
This interface provides an abstraction to the storage of the util information
Constructor Summary | |
---|---|
OXUtilStorageInterface()
|
Method Summary | |
---|---|
abstract void |
changeDatabase(com.openexchange.admin.rmi.dataobjects.Database db)
|
abstract void |
changeFilestore(com.openexchange.admin.rmi.dataobjects.Filestore fstore)
Changes a given filestore |
abstract void |
createDatabase(com.openexchange.admin.rmi.dataobjects.Database db)
Creates a new database from scratch on the given database host. |
abstract int |
createMaintenanceReason(com.openexchange.admin.rmi.dataobjects.MaintenanceReason reason)
Create a new maintenance reason in configdb.They are needed to disable a context. |
abstract void |
deleteDatabase(com.openexchange.admin.rmi.dataobjects.Database db)
Delete a complete database(scheme) from the given database host. |
abstract void |
deleteMaintenanceReason(int[] reason_ids)
Delete reason from configdb |
abstract com.openexchange.admin.rmi.dataobjects.Filestore |
findFilestoreForContext()
Iterates across all existing filestores and searches for one having enough space for a context. |
abstract com.openexchange.admin.rmi.dataobjects.MaintenanceReason[] |
getAllMaintenanceReasons()
|
abstract com.openexchange.admin.rmi.dataobjects.Filestore |
getFilestore(int id)
get filestore by ID |
static OXUtilStorageInterface |
getInstance()
Creates a new instance implementing the group storage interface. |
abstract com.openexchange.admin.rmi.dataobjects.MaintenanceReason[] |
getMaintenanceReasons(int[] reason_id)
|
abstract boolean |
hasSpaceForAnotherContext(com.openexchange.admin.rmi.dataobjects.Filestore filestore)
|
abstract com.openexchange.admin.rmi.dataobjects.Filestore[] |
listFilestores(java.lang.String search_pattern)
List all registered filestores |
abstract com.openexchange.admin.rmi.dataobjects.MaintenanceReason[] |
listMaintenanceReasons(java.lang.String search_pattern)
|
abstract int |
registerDatabase(com.openexchange.admin.rmi.dataobjects.Database db)
Register a new Database in configdb |
abstract int |
registerFilestore(com.openexchange.admin.rmi.dataobjects.Filestore fstore)
Register filestore in configbdb. |
abstract int |
registerServer(java.lang.String serverName)
Registers a new server in the configdb |
abstract com.openexchange.admin.rmi.dataobjects.Database[] |
searchForDatabase(java.lang.String search_pattern)
Searches for databases matching search_pattern |
abstract com.openexchange.admin.rmi.dataobjects.Server[] |
searchForServer(java.lang.String search_pattern)
Searchs for server matching given search_pattern |
abstract void |
unregisterDatabase(int db_id)
Unregister a database from configdb |
abstract void |
unregisterFilestore(int store_id)
Unregister filestore from configbdb |
abstract void |
unregisterServer(int server_id)
Unregister a server from configdb |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OXUtilStorageInterface()
Method Detail |
---|
public static OXUtilStorageInterface getInstance() throws com.openexchange.admin.rmi.exceptions.StorageException
com.openexchange.admin.rmi.exceptions.StorageException
- Storage exceptionpublic abstract int registerFilestore(com.openexchange.admin.rmi.dataobjects.Filestore fstore) throws com.openexchange.admin.rmi.exceptions.StorageException
fstore
- filestore object
com.openexchange.admin.rmi.exceptions.StorageException
public abstract void changeFilestore(com.openexchange.admin.rmi.dataobjects.Filestore fstore) throws com.openexchange.admin.rmi.exceptions.StorageException
fstore
- filestore object
com.openexchange.admin.rmi.exceptions.StorageException
public abstract com.openexchange.admin.rmi.dataobjects.Filestore[] listFilestores(java.lang.String search_pattern) throws com.openexchange.admin.rmi.exceptions.StorageException
search_pattern
- a pattern to search for
com.openexchange.admin.rmi.exceptions.StorageException
public abstract com.openexchange.admin.rmi.dataobjects.Filestore getFilestore(int id) throws com.openexchange.admin.rmi.exceptions.StorageException
id
-
com.openexchange.admin.rmi.exceptions.StorageException
public abstract void unregisterFilestore(int store_id) throws com.openexchange.admin.rmi.exceptions.StorageException
store_id
- the id of the filestore
com.openexchange.admin.rmi.exceptions.StorageException
public abstract com.openexchange.admin.rmi.dataobjects.Filestore findFilestoreForContext() throws com.openexchange.admin.rmi.exceptions.StorageException
com.openexchange.admin.rmi.exceptions.StorageException
public abstract boolean hasSpaceForAnotherContext(com.openexchange.admin.rmi.dataobjects.Filestore filestore) throws com.openexchange.admin.rmi.exceptions.StorageException
com.openexchange.admin.rmi.exceptions.StorageException
public abstract int createMaintenanceReason(com.openexchange.admin.rmi.dataobjects.MaintenanceReason reason) throws com.openexchange.admin.rmi.exceptions.StorageException
reason
- the MaintenanceReason
com.openexchange.admin.rmi.exceptions.StorageException
public abstract void deleteMaintenanceReason(int[] reason_ids) throws com.openexchange.admin.rmi.exceptions.StorageException
reason
- the MaintenanceReason
com.openexchange.admin.rmi.exceptions.StorageException
public abstract com.openexchange.admin.rmi.dataobjects.MaintenanceReason[] getMaintenanceReasons(int[] reason_id) throws com.openexchange.admin.rmi.exceptions.StorageException
reason_id
- the id of a MaintenanceReason
com.openexchange.admin.rmi.exceptions.StorageException
public abstract com.openexchange.admin.rmi.dataobjects.MaintenanceReason[] getAllMaintenanceReasons() throws com.openexchange.admin.rmi.exceptions.StorageException
com.openexchange.admin.rmi.exceptions.StorageException
public abstract com.openexchange.admin.rmi.dataobjects.MaintenanceReason[] listMaintenanceReasons(java.lang.String search_pattern) throws com.openexchange.admin.rmi.exceptions.StorageException
com.openexchange.admin.rmi.exceptions.StorageException
public abstract int registerDatabase(com.openexchange.admin.rmi.dataobjects.Database db) throws com.openexchange.admin.rmi.exceptions.StorageException
db
- a database object to register
com.openexchange.admin.rmi.exceptions.StorageException
public abstract void createDatabase(com.openexchange.admin.rmi.dataobjects.Database db) throws com.openexchange.admin.rmi.exceptions.StorageException
db
- a database object to create
com.openexchange.admin.rmi.exceptions.StorageException
public abstract void deleteDatabase(com.openexchange.admin.rmi.dataobjects.Database db) throws com.openexchange.admin.rmi.exceptions.StorageException
db
- a database object to be deleted
com.openexchange.admin.rmi.exceptions.StorageException
public abstract void changeDatabase(com.openexchange.admin.rmi.dataobjects.Database db) throws com.openexchange.admin.rmi.exceptions.StorageException
db
- a database object to be changed
com.openexchange.admin.rmi.exceptions.StorageException
public abstract int registerServer(java.lang.String serverName) throws com.openexchange.admin.rmi.exceptions.StorageException
serverName
- a server name to be registered
com.openexchange.admin.rmi.exceptions.StorageException
public abstract void unregisterDatabase(int db_id) throws com.openexchange.admin.rmi.exceptions.StorageException
db_id
- a database id which is unregistered
com.openexchange.admin.rmi.exceptions.StorageException
public abstract void unregisterServer(int server_id) throws com.openexchange.admin.rmi.exceptions.StorageException
server_id
- a server id which is unregistered
com.openexchange.admin.rmi.exceptions.StorageException
public abstract com.openexchange.admin.rmi.dataobjects.Database[] searchForDatabase(java.lang.String search_pattern) throws com.openexchange.admin.rmi.exceptions.StorageException
search_pattern
- a pattern to search for
com.openexchange.admin.rmi.exceptions.StorageException
public abstract com.openexchange.admin.rmi.dataobjects.Server[] searchForServer(java.lang.String search_pattern) throws com.openexchange.admin.rmi.exceptions.StorageException
search_pattern
- a pattern to search for
com.openexchange.admin.rmi.exceptions.StorageException
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |