|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorca.util.db.MySqlBase
orca.shirako.plugins.db.MySqlDatabase
orca.sharp.plugins.db.MySqlClientDatabase
orca.cod.plugins.db.MySqlCodDatabase
public class MySqlCodDatabase
| Field Summary | |
|---|---|
static java.lang.String |
DefaultMapUrl
|
static java.lang.String |
TypeNode
|
| Fields inherited from class orca.sharp.plugins.db.MySqlClientDatabase |
|---|
Client, Clients, DefaultClientsUrl |
| Fields inherited from class orca.shirako.plugins.db.MySqlDatabase |
|---|
actorId, actorName, DefaultConfigUrl, DefaultType, PropertyReservationID, reservationListeners |
| 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 |
| Constructor Summary | |
|---|---|
MySqlCodDatabase()
|
|
MySqlCodDatabase(java.lang.String mapFile)
|
|
| Method Summary | |
|---|---|
void |
addHandlerInvocation(java.lang.String type,
Node node,
java.util.Properties p)
Adds a handler invocation record |
void |
addNode(Node node)
Adds a database record for the specified node. |
java.util.Vector<java.util.Properties> |
getInventoryNodes(int type,
int state)
Retrieves all nodes from all inventory slices that are from the specified type and are in the specified state. |
protected java.lang.String |
getList(NodeID[] items)
|
java.util.Vector<java.util.Properties> |
getNode(NodeID nodeID)
Retrieves the specified node record. |
java.util.Vector<java.util.Properties> |
getNodes(int type,
int state)
Retrieves all nodes from all slices that are from the specified type and are in the specified state. |
java.util.Vector<java.util.Properties> |
getNodes(NodeID[] ids)
Retrieves the specified nodes |
java.util.Vector<java.util.Properties> |
getNodes(ReservationID rid)
Retrieves all nodes for the specified reservation |
java.util.Vector<java.util.Properties> |
getNodes(ReservationID reservationID,
int state)
Retrieves all nodes for the reservation that are in the specified state. |
java.util.Vector<java.util.Properties> |
getNodes(SliceID sliceID)
Retrieves all nodes in the specified slice |
java.util.Vector<java.util.Properties> |
getNodes(SliceID sliceID,
int state)
Retrieves all nodes in the specified slice that are in the specified state |
void |
removeHandlerInvocation(java.lang.String type,
Node node,
java.util.Properties p)
Removes a handler invocation record |
void |
removeNode(NodeID nodeID)
Removes the database record for the specified node. |
void |
updateNode(Node node)
Updates the corresponding node record. |
| Methods inherited from class orca.sharp.plugins.db.MySqlClientDatabase |
|---|
addClient, getClient, getClients, removeClient, updateClient |
| 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.shirako.api.IInitialize |
|---|
initialize |
| Methods inherited from interface orca.shirako.api.ISerialize |
|---|
reset, save, save |
| Methods inherited from interface orca.shirako.api.IRecover |
|---|
revisit |
| Field Detail |
|---|
public static final java.lang.String DefaultMapUrl
public static final java.lang.String TypeNode
| Constructor Detail |
|---|
public MySqlCodDatabase()
public MySqlCodDatabase(java.lang.String mapFile)
| Method Detail |
|---|
public void addNode(Node node)
throws java.lang.Exception
CodDatabase
addNode in interface CodDatabasenode - node object
java.lang.Exception
public void removeNode(NodeID nodeID)
throws java.lang.Exception
CodDatabase
removeNode in interface CodDatabasenodeID - node identifier
java.lang.Exception
public void updateNode(Node node)
throws java.lang.Exception
CodDatabase
updateNode in interface CodDatabasenode - node object
java.lang.Exception
public java.util.Vector<java.util.Properties> getNode(NodeID nodeID)
throws java.lang.Exception
CodDatabase
getNode in interface CodDatabasenodeID - node identifier
java.lang.Exception
public java.util.Vector<java.util.Properties> getNodes(ReservationID rid)
throws java.lang.Exception
CodDatabase
getNodes in interface CodDatabaserid - Reservation id
java.lang.Exception
public java.util.Vector<java.util.Properties> getNodes(ReservationID reservationID,
int state)
throws java.lang.Exception
CodDatabase
getNodes in interface CodDatabasereservationID - Reservationstate - Node state
java.lang.Exception
public java.util.Vector<java.util.Properties> getNodes(SliceID sliceID)
throws java.lang.Exception
CodDatabase
getNodes in interface CodDatabasejava.lang.Exception
public java.util.Vector<java.util.Properties> getNodes(SliceID sliceID,
int state)
throws java.lang.Exception
CodDatabase
getNodes in interface CodDatabasesliceID - sliceName
java.lang.Exception
public java.util.Vector<java.util.Properties> getNodes(int type,
int state)
throws java.lang.Exception
CodDatabase
getNodes in interface CodDatabasetype - typestate - state
java.lang.Exception
public java.util.Vector<java.util.Properties> getInventoryNodes(int type,
int state)
throws java.lang.Exception
CodDatabase
getInventoryNodes in interface CodDatabasetype - typestate - state
java.lang.Exception
public void addHandlerInvocation(java.lang.String type,
Node node,
java.util.Properties p)
throws java.lang.Exception
CodDatabase
addHandlerInvocation in interface CodDatabasetype - node - p -
java.lang.Exception
public void removeHandlerInvocation(java.lang.String type,
Node node,
java.util.Properties p)
throws java.lang.Exception
CodDatabase
removeHandlerInvocation in interface CodDatabasetype - node - p -
java.lang.Exception
public java.util.Vector<java.util.Properties> getNodes(NodeID[] ids)
throws java.lang.Exception
CodDatabase
getNodes in interface CodDatabaseids - an array of node identifiers
java.lang.Exceptionprotected java.lang.String getList(NodeID[] items)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||