orca.cod.plugins.db
Interface CodDatabase

All Superinterfaces:
IDatabase, IInitialize, IRecover, ISerialize
All Known Subinterfaces:
AuthorityCodDatabase
All Known Implementing Classes:
LdapAuthorityCodDatabase, LdapCodDatabase, MySqlAuthorityCodDatabase, MySqlCodDatabase

public interface CodDatabase
extends IDatabase

Base database interface for COD service managers and sites.


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.
 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 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
 
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
 

Method Detail

addHandlerInvocation

void addHandlerInvocation(java.lang.String type,
                          Node node,
                          java.util.Properties p)
                          throws java.lang.Exception
Adds a handler invocation record

Parameters:
type -
node -
p -
Throws:
java.lang.Exception

removeHandlerInvocation

void removeHandlerInvocation(java.lang.String type,
                             Node node,
                             java.util.Properties p)
                             throws java.lang.Exception
Removes a handler invocation record

Parameters:
type -
node -
p -
Throws:
java.lang.Exception

addNode

void addNode(Node node)
             throws java.lang.Exception
Adds a database record for the specified node.

Parameters:
node - node object
Throws:
java.lang.Exception

removeNode

void removeNode(NodeID nodeID)
                throws java.lang.Exception
Removes the database record for the specified node.

Parameters:
nodeID - node identifier
Throws:
java.lang.Exception

updateNode

void updateNode(Node node)
                throws java.lang.Exception
Updates the corresponding node record.

Parameters:
node - node object
Throws:
java.lang.Exception

getNode

java.util.Vector<java.util.Properties> getNode(NodeID nodeID)
                                               throws java.lang.Exception
Retrieves the specified node record.

Parameters:
nodeID - node identifier
Returns:
Throws:
java.lang.Exception

getNodes

java.util.Vector<java.util.Properties> getNodes(ReservationID rid)
                                                throws java.lang.Exception
Retrieves all nodes for the specified reservation

Parameters:
rid - Reservation id
Returns:
Throws:
java.lang.Exception

getNodes

java.util.Vector<java.util.Properties> getNodes(ReservationID reservationID,
                                                int state)
                                                throws java.lang.Exception
Retrieves all nodes for the reservation that are in the specified state.

Parameters:
reservationID - Reservation
state - Node state
Returns:
Throws:
java.lang.Exception

getNodes

java.util.Vector<java.util.Properties> getNodes(SliceID sliceID)
                                                throws java.lang.Exception
Retrieves all nodes in the specified slice

Parameters:
sliceID -
Returns:
Throws:
java.lang.Exception

getNodes

java.util.Vector<java.util.Properties> getNodes(SliceID sliceID,
                                                int state)
                                                throws java.lang.Exception
Retrieves all nodes in the specified slice that are in the specified state

Parameters:
sliceID - sliceName
state -
Returns:
Throws:
java.lang.Exception

getNodes

java.util.Vector<java.util.Properties> getNodes(int type,
                                                int state)
                                                throws java.lang.Exception
Retrieves all nodes from all slices that are from the specified type and are in the specified state.

Parameters:
type - type
state - state
Returns:
Throws:
java.lang.Exception

getInventoryNodes

java.util.Vector<java.util.Properties> getInventoryNodes(int type,
                                                         int state)
                                                         throws java.lang.Exception
Retrieves all nodes from all inventory slices that are from the specified type and are in the specified state.

Parameters:
type - type
state - state
Returns:
Throws:
java.lang.Exception

getNodes

java.util.Vector<java.util.Properties> getNodes(NodeID[] ids)
                                                throws java.lang.Exception
Retrieves the specified nodes

Parameters:
ids - an array of node identifiers
Throws:
java.lang.Exception


Copyright © 2007 Network/Internet Computing Lab. All Rights Reserved.