orca.cod.plugins.db
Class MySqlAuthorityCodDatabase
java.lang.Object
orca.util.db.MySqlBase
orca.shirako.plugins.db.MySqlDatabase
orca.sharp.plugins.db.MySqlClientDatabase
orca.cod.plugins.db.MySqlCodDatabase
orca.cod.plugins.db.MySqlAuthorityCodDatabase
- All Implemented Interfaces:
- AuthorityCodDatabase, CodDatabase, ClientDatabase, IDatabase, IInitialize, IRecover, ISerialize
public class MySqlAuthorityCodDatabase
- extends MySqlCodDatabase
- implements AuthorityCodDatabase
| Fields inherited from class orca.util.db.MySqlBase |
create, db, DefaultSchema, driverPath, joclFileLocation, logger, mapFile, mapper, mySqlPasswd, mySqlServer, mySqlServerPort, mySqlUser, pool, PropertyMySqlDb, PropertyMySqlPassword, PropertyMySqlPool, PropertyMySqlServer, PropertyMySqlServerPort, PropertyMySqlUser, resetState, schemaFile, source, TypeDefault |
|
Method Summary |
void |
addMachine(Machine machine)
Adds a new machine record |
java.util.Vector<java.util.Properties> |
getClientNodes(int type,
int state)
Retrieves all nodes from all client slices that are in the specified
state and are from the given type. |
java.util.Vector<java.util.Properties> |
getHostedNodes(java.lang.String machineName)
Returns a list of nodes hosted on the specified machine |
java.util.Vector<java.util.Properties> |
getMachine(NodeID id)
Retrieves the specified machine record using the node identifier. |
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 (that belong to this 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 |
updateMachine(Machine machine)
Updates the specified machine record |
| Methods inherited from class orca.cod.plugins.db.MySqlCodDatabase |
addHandlerInvocation, addNode, getInventoryNodes, getList, getNode, getNodes, getNodes, getNodes, getNodes, getNodes, getNodes, removeHandlerInvocation, removeNode, updateNode |
| Methods inherited from class orca.shirako.plugins.db.MySqlDatabase |
actorAdded, addBroker, addConfigurationMapping, addReservation, addSlice, createSearchResults, createSearchResultsTyped, getActorIdFromName, getActorIdFromName, getAgentReservations, getAuthorityReservations, getBrokers, getClientReservations, getClientSlices, getConfigurationMapping, getConfigurationMappings, getHoldings, getInventorySlices, getReservation, getReservations, getReservations, getSlice, getSlice, getSliceIdFromGuid, getSliceIdFromGuid, getSlices, initialize, notifyReservationListeners, registerReservationListener, removeBroker, removeConfigurationMapping, removeReservation, removeSlice, revisit, setActorName, unregisterReservationListener, updateBroker, updateConfigurationMapping, updateReservation, updateSlice |
| Methods inherited from class orca.util.db.MySqlBase |
checkDb, checkDrivers, configure, constructQueryPartial, getConnection, getDb, getLogger, getMySqlPasswd, getMySqlServer, getMySqlServerPort, getMySqlUser, getPoolConfigLocation, getSchemaString, getServerConnection, loadDrivers, reset, resetDB, returnConnection, save, save, setDb, setLogger, setMySqlPasswd, setMySqlServer, setMySqlServerPort, setMySqlUser, setPoolConfigLocation, setResetState |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface orca.cod.plugins.db.CodDatabase |
addHandlerInvocation, addNode, getInventoryNodes, getNode, getNodes, getNodes, getNodes, getNodes, getNodes, getNodes, removeHandlerInvocation, removeNode, updateNode |
| Methods inherited from interface orca.shirako.api.IDatabase |
actorAdded, addBroker, addConfigurationMapping, addReservation, addSlice, getAgentReservations, getAuthorityReservations, getBrokers, getClientReservations, getClientSlices, getConfigurationMapping, getConfigurationMappings, getHoldings, getInventorySlices, getLogger, getReservation, getReservations, getReservations, getSlice, getSlice, getSlices, registerReservationListener, removeBroker, removeConfigurationMapping, removeReservation, removeSlice, setActorName, setLogger, setResetState, unregisterReservationListener, updateBroker, updateConfigurationMapping, updateReservation, updateSlice |
DefaultMapUrl
public static final java.lang.String DefaultMapUrl
- See Also:
- Constant Field Values
TypeMachine
public static final java.lang.String TypeMachine
- See Also:
- Constant Field Values
MySqlAuthorityCodDatabase
public MySqlAuthorityCodDatabase()
addMachine
public void addMachine(Machine machine)
throws java.lang.Exception
- Description copied from interface:
AuthorityCodDatabase
- Adds a new machine record
- Specified by:
addMachine in interface AuthorityCodDatabase
- Throws:
java.lang.Exception
updateMachine
public void updateMachine(Machine machine)
throws java.lang.Exception
- Description copied from interface:
AuthorityCodDatabase
- Updates the specified machine record
- Specified by:
updateMachine in interface AuthorityCodDatabase
- Throws:
java.lang.Exception
removeMachine
public void removeMachine(java.lang.String name)
throws java.lang.Exception
- Description copied from interface:
AuthorityCodDatabase
- Removes the specified machine record
- Specified by:
removeMachine in interface AuthorityCodDatabase
- Throws:
java.lang.Exception
getMachines
public java.util.Vector<java.util.Properties> getMachines()
throws java.lang.Exception
- Description copied from interface:
AuthorityCodDatabase
- Retrieves all machine records (that belong to this site)
- Specified by:
getMachines in interface AuthorityCodDatabase
- Returns:
-
- Throws:
java.lang.Exception
getMachine
public java.util.Vector<java.util.Properties> getMachine(java.lang.String name)
throws java.lang.Exception
- Description copied from interface:
AuthorityCodDatabase
- Retrieves the specified machine record
- Specified by:
getMachine in interface AuthorityCodDatabase
- Returns:
-
- Throws:
java.lang.Exception
getMachine
public java.util.Vector<java.util.Properties> getMachine(NodeID id)
throws java.lang.Exception
- Description copied from interface:
AuthorityCodDatabase
- Retrieves the specified machine record using the node identifier.
- Specified by:
getMachine in interface AuthorityCodDatabase
- Parameters:
id - node identifier
- Returns:
-
- Throws:
java.lang.Exception
getStorageServers
public java.util.Vector<java.util.Properties> getStorageServers()
throws java.lang.Exception
- Description copied from interface:
AuthorityCodDatabase
- Retrieves all storage server records
- Specified by:
getStorageServers in interface AuthorityCodDatabase
- Returns:
-
- Throws:
java.lang.Exception
getStorageServer
public java.util.Vector<java.util.Properties> getStorageServer(java.lang.String name)
throws java.lang.Exception
- Description copied from interface:
AuthorityCodDatabase
- Retrieves the specified storage server record
- Specified by:
getStorageServer in interface AuthorityCodDatabase
- Parameters:
name - Server name
- Returns:
-
- Throws:
java.lang.Exception
getHostedNodes
public java.util.Vector<java.util.Properties> getHostedNodes(java.lang.String machineName)
throws java.lang.Exception
- Description copied from interface:
AuthorityCodDatabase
- Returns a list of nodes hosted on the specified machine
- Specified by:
getHostedNodes in interface AuthorityCodDatabase
- Parameters:
machineName - machine name
- Returns:
-
- Throws:
java.lang.Exception
getClientNodes
public java.util.Vector<java.util.Properties> getClientNodes(int type,
int state)
throws java.lang.Exception
- Description copied from interface:
AuthorityCodDatabase
- Retrieves all nodes from all client slices that are in the specified
state and are from the given type.
- Specified by:
getClientNodes in interface AuthorityCodDatabase
- Parameters:
type - typestate - state
- Returns:
-
- Throws:
java.lang.Exception
Copyright © 2007 Network/Internet Computing Lab. All Rights Reserved.