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