|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorca.manage.extensions.standard.container.db.MySqlWrapper
orca.manage.extensions.standard.container.db.MySqlContainerManagerObjectDatabase
orca.manage.extensions.standard.container.db.MySqlCodContainerManagerObjectDatabase
public class MySqlCodContainerManagerObjectDatabase
An implementation of CodManagementDatabase and PackageDatabase for MySql
| Field Summary | |
|---|---|
static java.lang.String |
CodContainerManagerObjectMapURL
Default mapping file to use. |
static java.lang.String |
SiteName
Site name attribute. |
static java.lang.String |
TypeMachine
|
static java.lang.String |
TypeNode
|
| Fields inherited from class orca.manage.extensions.standard.container.db.MySqlContainerManagerObjectDatabase |
|---|
ContainerManagerObjectMapURL |
| Fields inherited from class orca.manage.extensions.standard.container.db.MySqlWrapper |
|---|
db, logger, mapFile, mapper |
| Constructor Summary | |
|---|---|
MySqlCodContainerManagerObjectDatabase(MySqlBase db)
Create a new instance using the default mapping file |
|
| Method Summary | |
|---|---|
void |
addMachine(Machine machine)
Creates a new machine record |
void |
addStorageServer(StorageServer s)
Creates a new storage server record |
java.util.Vector<java.util.Properties> |
getMachine(java.lang.String name)
Retrieves the specified machine record |
java.util.Vector<java.util.Properties> |
getMachines()
Retrieves all machine records for this center |
java.util.Vector<MachineType> |
getMachineTypes()
|
java.util.Vector<java.util.Properties> |
getSiteMachines(java.lang.String siteName)
Retrieves all machines assigned to the specified site |
java.util.Vector<java.util.Properties> |
getStorageServer(java.lang.String name)
Retrieves the specified storage server record |
java.util.Vector<java.util.Properties> |
getStorageServers()
Retrieves all storage server records |
void |
removeMachine(java.lang.String name)
Removes the specified machine record |
void |
transferMachine(java.lang.String machineName,
java.lang.String siteName)
Transfers the machine to the specified site |
void |
updateMachine(Machine machine)
Updates the specified machine record |
| Methods inherited from class orca.manage.extensions.standard.container.db.MySqlContainerManagerObjectDatabase |
|---|
addConfiguration, addSlice, getClientSlices, getConfiguration, getConfigurations, getInventorySlices, getReservations, getSlice, getSlices, removeConfiguration, removeReservation, removeSlice, updateReservation, updateSlice |
| Methods inherited from class orca.manage.extensions.standard.container.db.MySqlWrapper |
|---|
createSearchResultsTyped, getConnection, initialize, returnConnection |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface orca.manage.extensions.standard.container.db.IManagerObjectDatabase |
|---|
addConfiguration, addSlice, getClientSlices, getConfiguration, getConfigurations, getInventorySlices, getReservations, getSlice, getSlices, removeConfiguration, removeReservation, removeSlice, updateReservation, updateSlice |
| Methods inherited from interface orca.shirako.api.IInitialize |
|---|
initialize |
| Field Detail |
|---|
public static final java.lang.String TypeMachine
public static final java.lang.String TypeNode
public static java.lang.String CodContainerManagerObjectMapURL
public static java.lang.String SiteName
| Constructor Detail |
|---|
public MySqlCodContainerManagerObjectDatabase(MySqlBase db)
| Method Detail |
|---|
public java.util.Vector<java.util.Properties> getStorageServers()
throws java.lang.Exception
ICodManagerObjectDatabase
getStorageServers in interface ICodManagerObjectDatabasejava.lang.Exception
public java.util.Vector<java.util.Properties> getStorageServer(java.lang.String name)
throws java.lang.Exception
ICodManagerObjectDatabase
getStorageServer in interface ICodManagerObjectDatabasename - Server name
java.lang.Exception
public void addStorageServer(StorageServer s)
throws java.lang.Exception
ICodManagerObjectDatabase
addStorageServer in interface ICodManagerObjectDatabases - storage server
java.lang.Exception
public java.util.Vector<java.util.Properties> getMachines()
throws java.lang.Exception
ICodManagerObjectDatabase
getMachines in interface ICodManagerObjectDatabasejava.lang.Exception
public java.util.Vector<java.util.Properties> getMachine(java.lang.String name)
throws java.lang.Exception
ICodManagerObjectDatabase
getMachine in interface ICodManagerObjectDatabasename - machine name
java.lang.Exception
public java.util.Vector<java.util.Properties> getSiteMachines(java.lang.String siteName)
throws java.lang.Exception
ICodManagerObjectDatabase
getSiteMachines in interface ICodManagerObjectDatabasesiteName - site name
java.lang.Exception
public void addMachine(Machine machine)
throws java.lang.Exception
ICodManagerObjectDatabase
addMachine in interface ICodManagerObjectDatabasemachine - machine
java.lang.Exception
public void updateMachine(Machine machine)
throws java.lang.Exception
ICodManagerObjectDatabase
updateMachine in interface ICodManagerObjectDatabasejava.lang.Exception
public void removeMachine(java.lang.String name)
throws java.lang.Exception
ICodManagerObjectDatabase
removeMachine in interface ICodManagerObjectDatabasejava.lang.Exception
public void transferMachine(java.lang.String machineName,
java.lang.String siteName)
throws java.lang.Exception
ICodManagerObjectDatabase
transferMachine in interface ICodManagerObjectDatabasejava.lang.Exception
public java.util.Vector<MachineType> getMachineTypes()
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||