|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IKernel
IKernel defines the public kernel interface for use by actors.
| Method Summary | |
|---|---|
Slice[] |
getClientSlices()
Returns all client slices registered with the kernel. |
Slice[] |
getInventorySlices()
Returns all inventory slices registered with the kernel. |
ResourceReservation |
getReservation(ReservationID rid)
Returns the reservation with the given reservation identifier. |
ResourceReservation[] |
getReservations(SliceID sliceID)
Returns all reservations in the given slice |
Slice |
getSlice(SliceID sliceID)
Returns the slice with the given name. |
Slice[] |
getSlices()
Returns all slice registered with the kernel. |
IShirakoPlugin |
getSlicesPlugin()
Returns the Shirako plugin. |
void |
registerReservation(ResourceReservation reservation)
Registers the given reservation with the kernel. |
void |
registerSlice(Slice slice)
Registers the slice with the kernel: adds the slice object to the kernel data structures and adds a database record for the slice. |
void |
removeReservation(ReservationID rid)
Unregisters the reservation from the kernel data structures and removes its record from the database. |
void |
removeSlice(SliceID sliceID)
Unregisters the slice (if it is registered with the kernel) and removes it from the database. |
void |
reregisterReservation(ResourceReservation reservation)
Registers a previously unregistered reservation with the kernel. |
void |
reregisterSlice(Slice slice)
Registers the slice with the kernel: adds the slice object to the kernel data structures. |
void |
tick()
Checks all reservations for completions or problems. |
void |
unregisterReservation(ReservationID rid)
Unregisters the reservation from the kernel data structures. |
void |
unregisterSlice(SliceID sliceID)
Unregisters the slice and releases any resources that it may hold. |
| Method Detail |
|---|
void registerSlice(Slice slice)
throws java.lang.Exception
slice - slice to register
java.lang.Exception - if the slice is already registered or a database error
occurs. If a database error occurs, the slice will be
unregistered.
void reregisterSlice(Slice slice)
throws java.lang.Exception
slice - slice to register
java.lang.Exception - if the slice is already registered or a database error
occurs. If a database error occurs, the slice will be
unregistered.
void unregisterSlice(SliceID sliceID)
throws java.lang.Exception
Note: A slice can be unregistered only if it contains only closed or failed reservations.
sliceID - identifier of slice to unregister
java.lang.Exception
void removeSlice(SliceID sliceID)
throws java.lang.Exception
Note: A slice can be removed only if it contains only closed or failed reservations.
sliceID - identifier of slice to remove
java.lang.ExceptionSlice getSlice(SliceID sliceID)
sliceID - identifier of slice to return
Slice[] getSlices()
Slice[] getInventorySlices()
Slice[] getClientSlices()
void registerReservation(ResourceReservation reservation)
throws java.lang.Exception
reregisterReservation(ResourceReservation). Only reservations
that are not closed or failed can be registered. Closed or failed
reservations will be ignored.
reservation - the reservation to register
java.lang.IllegalArgumentException - when the passed in argument is illegal
java.lang.Exception - if the reservation has already been registered with the
kernel.
java.lang.RuntimeException - when a database error occurs. In this case the
reservation will be unregistered from the kernel data
structures.
void reregisterReservation(ResourceReservation reservation)
throws java.lang.Exception
registerReservation(ResourceReservation). Only reservations
that are not closed or failed can be registered. Closed or failed
reservations will be ignored.
reservation - the reservation to reregister
java.lang.IllegalArgumentException - when the passed in argument is illegal
java.lang.Exception - if the reservation has already been registered with the
kernel or the reservation does not have a database record. In
the latter case the reservation will be unregistered from the
kernel data structures.
java.lang.RuntimeException - if a database error occurs
void unregisterReservation(ReservationID rid)
throws java.lang.Exception
Note: does not remove the reservation database record.
*Note:Only failed, closed, or close waiting reservations can be unregistered.
rid - identifier for reservation to unregister
java.lang.IllegalArgumentException - when the passed in argument is illegal
java.lang.ExceptionResourceReservation getReservation(ReservationID rid)
rid - reservation identifier
ResourceReservation[] getReservations(SliceID sliceID)
sliceID - identifier of slice
void removeReservation(ReservationID rid)
throws java.lang.Exception
Note:Only failed, closed, or close waiting reservations can be removed.
rid - identifier of reservation to remove
java.lang.Exception
void tick()
throws java.lang.Exception
java.lang.ExceptionIShirakoPlugin getSlicesPlugin()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||