|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IDatabase
IDatabase is the base database layer interface. It specifies
methods for managing slices, reservations, broker proxies, and configuration
mapping files.
| Method Summary | |
|---|---|
void |
actorAdded()
Performs initialization actions as a result of the actor being added to the container. |
void |
addBroker(IBrokerProxy broker)
Adds a new broker proxy record. |
void |
addConfigurationMapping(java.lang.String key,
ConfigurationMapping map)
Adds a new configuration mapping record. |
void |
addReservation(ResourceReservation reservation)
Adds a new record to the database representing this reservation object. |
void |
addSlice(Slice slice)
Adds a new record to the database representing this slice object. |
java.util.Vector<java.util.Properties> |
getAgentReservations()
Retrieves all reservations for which this actor acts as a broker. |
java.util.Vector<java.util.Properties> |
getAuthorityReservations()
Retrieves all reservations for which this actor acts as a site. |
java.util.Vector<java.util.Properties> |
getBrokers()
Retrieves all broker proxies. |
java.util.Vector<java.util.Properties> |
getClientReservations()
Retrieves all reservations that represent clients of this actor. |
java.util.Vector<java.util.Properties> |
getClientSlices()
Retrieves all client slice records. |
java.util.Vector<java.util.Properties> |
getConfigurationMapping(java.lang.String key)
Retrieves the specified configuration mapping record. |
java.util.Vector<java.util.Properties> |
getConfigurationMappings()
Retrieves all configuration mapping records. |
java.util.Vector<java.util.Properties> |
getHoldings()
Retrieves all reservations representing resources held by this actor Broker/service manager. |
java.util.Vector<java.util.Properties> |
getInventorySlices()
Retrieves all inventory slice records. |
LoggingTool |
getLogger()
Obtains the logger object used by the database layer implementation. |
java.util.Vector<java.util.Properties> |
getReservation(ReservationID rid)
Retrieves the specified reservation record. |
java.util.Vector<java.util.Properties> |
getReservations()
Retrieves all reservation records. |
java.util.Vector<java.util.Properties> |
getReservations(SliceID sliceID)
Retrieves all reservation records that belong to the specified slice. |
java.util.Vector<java.util.Properties> |
getSlice(ResourceType type)
Retrieves the specified slice record. |
java.util.Vector<java.util.Properties> |
getSlice(SliceID sliceID)
Retrieves the specified slice record. |
java.util.Vector<java.util.Properties> |
getSlices()
Retrieves all slice records. |
void |
registerReservationListener(IStateChangeListener listener)
Registers a state change listener. |
void |
removeBroker(IBrokerProxy broker)
Removes the specified broker proxy record. |
void |
removeConfigurationMapping(java.lang.String key)
Removes the specified configuration mapping record. |
void |
removeReservation(ReservationID rid)
Removes the corresponding reservation object. |
void |
removeSlice(SliceID sliceID)
Removes the corresponding database slice record. |
void |
setActorName(java.lang.String name)
Sets the name of the actor this database belongs to. |
void |
setLogger(LoggingTool logger)
Sets the logger object to be used by the database layer implementation. |
void |
setResetState(boolean value)
Indicates whether the database class should erase any previous database state. |
void |
unregisterReservationListener(IStateChangeListener listener)
Unregisters the state change listener. |
void |
updateBroker(IBrokerProxy broker)
Updates the specified broker proxy record. |
void |
updateConfigurationMapping(java.lang.String key,
ConfigurationMapping map)
Updates the specified configuration mapping record. |
void |
updateReservation(ResourceReservation reservation)
Updates the corresponding reservation object. |
void |
updateSlice(Slice slice)
Updates the corresponding database slice record. |
| 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 |
|---|
void addSlice(Slice slice)
throws java.lang.Exception
slice - Slice object
java.lang.Exception
void updateSlice(Slice slice)
throws java.lang.Exception
slice - slice object
java.lang.Exception
void removeSlice(SliceID sliceID)
throws java.lang.Exception
sliceID - slice name
java.lang.Exception
java.util.Vector<java.util.Properties> getSlice(SliceID sliceID)
throws java.lang.Exception
sliceID - slice name
java.lang.Exception
java.util.Vector<java.util.Properties> getSlice(ResourceType type)
throws java.lang.Exception
type - resource type associated with the slice
java.lang.Exception
java.util.Vector<java.util.Properties> getSlices()
throws java.lang.Exception
java.lang.Exception
java.util.Vector<java.util.Properties> getClientSlices()
throws java.lang.Exception
java.lang.Exception
java.util.Vector<java.util.Properties> getInventorySlices()
throws java.lang.Exception
java.lang.Exception
void addReservation(ResourceReservation reservation)
throws java.lang.Exception
reservation -
java.lang.Exception
void updateReservation(ResourceReservation reservation)
throws java.lang.Exception
reservation -
java.lang.Exception
void removeReservation(ReservationID rid)
throws java.lang.Exception
rid -
java.lang.Exception
java.util.Vector<java.util.Properties> getReservations(SliceID sliceID)
throws java.lang.Exception
slice -
java.lang.Exception
java.util.Vector<java.util.Properties> getReservations()
throws java.lang.Exception
java.lang.Exception
java.util.Vector<java.util.Properties> getClientReservations()
throws java.lang.Exception
java.lang.Exception
java.util.Vector<java.util.Properties> getHoldings()
throws java.lang.Exception
java.lang.Exception
java.util.Vector<java.util.Properties> getAgentReservations()
throws java.lang.Exception
java.lang.Exception
java.util.Vector<java.util.Properties> getAuthorityReservations()
throws java.lang.Exception
java.lang.Exception
java.util.Vector<java.util.Properties> getReservation(ReservationID rid)
throws java.lang.Exception
sliceName - Name of the containing slicerid - Reservation identifier
java.lang.Exception
void addBroker(IBrokerProxy broker)
throws java.lang.Exception
broker -
java.lang.Exception
void removeBroker(IBrokerProxy broker)
throws java.lang.Exception
broker -
java.lang.Exception
void updateBroker(IBrokerProxy broker)
throws java.lang.Exception
broker -
java.lang.Exception
java.util.Vector<java.util.Properties> getBrokers()
throws java.lang.Exception
java.lang.Exception
void addConfigurationMapping(java.lang.String key,
ConfigurationMapping map)
throws java.lang.Exception
key - key for the recordmap - mapping object
java.lang.Exception
void updateConfigurationMapping(java.lang.String key,
ConfigurationMapping map)
throws java.lang.Exception
key - record keymap - mapping object
java.lang.Exception
void removeConfigurationMapping(java.lang.String key)
throws java.lang.Exception
key - key
java.lang.Exception
java.util.Vector<java.util.Properties> getConfigurationMappings()
throws java.lang.Exception
java.lang.Exception
java.util.Vector<java.util.Properties> getConfigurationMapping(java.lang.String key)
throws java.lang.Exception
key - record key
java.lang.Exceptionvoid setLogger(LoggingTool logger)
logger - logger objectLoggingTool getLogger()
void setActorName(java.lang.String name)
throws java.lang.Exception
name - actor name
java.lang.Exceptionvoid registerReservationListener(IStateChangeListener listener)
listener - to registervoid unregisterReservationListener(IStateChangeListener listener)
listener - listener to unregistervoid setResetState(boolean value)
value -
void actorAdded()
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||