orca.cod.plugins.db
Interface AuthorityCodDatabase

All Superinterfaces:
CodDatabase, IDatabase, IInitialize, IRecover, ISerialize
All Known Implementing Classes:
LdapAuthorityCodDatabase, MySqlAuthorityCodDatabase

public interface AuthorityCodDatabase
extends CodDatabase

Database interface for a COD site.


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

addMachine

void addMachine(Machine machine)
                throws java.lang.Exception
Adds a new machine record

Parameters:
machine -
Throws:
java.lang.Exception

updateMachine

void updateMachine(Machine machine)
                   throws java.lang.Exception
Updates the specified machine record

Parameters:
machine -
Throws:
java.lang.Exception

removeMachine

void removeMachine(java.lang.String name)
                   throws java.lang.Exception
Removes the specified machine record

Parameters:
name -
Throws:
java.lang.Exception

getMachines

java.util.Vector<java.util.Properties> getMachines()
                                                   throws java.lang.Exception
Retrieves all machine records (that belong to this site)

Returns:
Throws:
java.lang.Exception

getMachine

java.util.Vector<java.util.Properties> getMachine(java.lang.String name)
                                                  throws java.lang.Exception
Retrieves the specified machine record

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

getMachine

java.util.Vector<java.util.Properties> getMachine(NodeID id)
                                                  throws java.lang.Exception
Retrieves the specified machine record using the node identifier.

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

getHostedNodes

java.util.Vector<java.util.Properties> getHostedNodes(java.lang.String machineName)
                                                      throws java.lang.Exception
Returns a list of nodes hosted on the specified machine

Parameters:
machineName - machine name
Returns:
Throws:
java.lang.Exception

getClientNodes

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

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

getStorageServers

java.util.Vector<java.util.Properties> getStorageServers()
                                                         throws java.lang.Exception
Retrieves all storage server records

Returns:
Throws:
java.lang.Exception

getStorageServer

java.util.Vector<java.util.Properties> getStorageServer(java.lang.String name)
                                                        throws java.lang.Exception
Retrieves the specified storage server record

Parameters:
name - Server name
Returns:
Throws:
java.lang.Exception


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