orca.sharp.plugins.db
Class MemoryClientDatabase

java.lang.Object
  extended by orca.shirako.plugins.db.MemoryDatabase
      extended by orca.sharp.plugins.db.MemoryClientDatabase
All Implemented Interfaces:
ClientDatabase, IDatabase, IInitialize, IRecover, ISerialize

public class MemoryClientDatabase
extends MemoryDatabase
implements ClientDatabase


Nested Class Summary
 
Nested classes/interfaces inherited from class orca.shirako.plugins.db.MemoryDatabase
MemoryDatabase.SliceData
 
Field Summary
 
Fields inherited from class orca.shirako.plugins.db.MemoryDatabase
actorName, inventorySlices, logger, resetState, slices
 
Constructor Summary
MemoryClientDatabase()
           
 
Method Summary
 void addClient(Client client)
          Adds a new database record representing this client
 java.util.Vector getClient(java.lang.String name)
          Retrieves the specified client record
 java.util.Vector getClients()
          Retrieves all client records
 void removeClient(java.lang.String name)
          Removes the specified client record
 void updateClient(Client client)
          Updates the database record for the specified client
 
Methods inherited from class orca.shirako.plugins.db.MemoryDatabase
actorAdded, addBroker, addConfigurationMapping, addReservation, addSlice, getAgentReservations, getAuthorityReservations, getBrokers, getClientReservations, getClientSlices, getConfigurationMapping, getConfigurationMappings, getHoldings, getInventorySlices, getLogger, getReservation, getReservation, getReservations, getReservations, getReservations, getSlice, getSlice, getSliceData, getSliceData, getSlices, initialize, registerReservationListener, removeBroker, removeConfigurationMapping, removeReservation, removeReservation, removeSlice, reset, revisit, save, save, setActorName, setLogger, setResetState, unregisterReservationListener, updateBroker, updateConfigurationMapping, updateReservation, updateSlice
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryClientDatabase

public MemoryClientDatabase()
Method Detail

addClient

public void addClient(Client client)
               throws java.lang.Exception
Description copied from interface: ClientDatabase
Adds a new database record representing this client

Specified by:
addClient in interface ClientDatabase
Throws:
java.lang.Exception

updateClient

public void updateClient(Client client)
                  throws java.lang.Exception
Description copied from interface: ClientDatabase
Updates the database record for the specified client

Specified by:
updateClient in interface ClientDatabase
Throws:
java.lang.Exception

removeClient

public void removeClient(java.lang.String name)
                  throws java.lang.Exception
Description copied from interface: ClientDatabase
Removes the specified client record

Specified by:
removeClient in interface ClientDatabase
Throws:
java.lang.Exception

getClient

public java.util.Vector getClient(java.lang.String name)
                           throws java.lang.Exception
Description copied from interface: ClientDatabase
Retrieves the specified client record

Specified by:
getClient in interface ClientDatabase
Returns:
Throws:
java.lang.Exception

getClients

public java.util.Vector getClients()
                            throws java.lang.Exception
Description copied from interface: ClientDatabase
Retrieves all client records

Specified by:
getClients in interface ClientDatabase
Returns:
Throws:
java.lang.Exception


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