|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IShirakoPlugin
IShirakoPlugin defines the interface for optional plugins
(e.g., COD). These methods are upcalled as various events occur. All
implementations of this class must have a constructor that takes no
arguments, and set methods for their attributes.
| Method Summary | |
|---|---|
void |
actorAdded()
Performs initialization steps knowing that the actor has beena added to the container. |
Slice |
createSlice(SliceID sliceID,
java.lang.String name,
ResourceData properties,
java.lang.Object other)
Creates a new slice |
IActor |
getActor()
Returns the actor associated with the plugin. |
IDatabase |
getDatabase()
Obtains the actor's database instance. |
IConcreteSetFactory |
getFactory(java.lang.String protocol)
Returns an IConcreteSetFactory for the given communication
protocol |
KeystoreManager |
getKeyStore()
Returns the actor keystore manager. |
LoggingTool |
getLogger()
Returns the logger. |
void |
initializeKeyStore(IActor actor)
Initializes the actor key store. |
void |
releaseSlice(Slice slice)
Releases any resources held by the slice. |
void |
reset()
Recovers the actor from previously saved state. |
void |
restartConfigurationActions(ResourceReservation reservation)
Restarts any pending configuration actions for the specified reservation |
void |
revisit(ResourceReservation reservation)
Rebuilds plugin state associated with a restored reservation. |
void |
revisit(Slice slice)
Rebuilds plugin state associated with a restored slice. |
void |
setActor(IActor actor)
Sets the actor. |
void |
setDatabase(IDatabase db)
Sets the actor's database instance. |
void |
setLogger(LoggingTool logger)
Sets the logger. |
boolean |
validateIncoming(IReservation reservation,
AuthToken auth)
Validates an incoming reservation request |
| 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 initializeKeyStore(IActor actor)
throws java.lang.Exception
the - actor object (Note that at this stage the plugin itself does
not have access to the actor object and the method MUST use
the actor object being passed).
java.lang.Exception
Slice createSlice(SliceID sliceID,
java.lang.String name,
ResourceData properties,
java.lang.Object other)
throws java.lang.Exception
sliceID - guid for the slicename - name for the sliceproperties - properties for the sliceother - other relevant information
java.lang.Exception
void releaseSlice(Slice slice)
throws java.lang.Exception
slice - the slice
java.lang.ExceptionIDatabase getDatabase()
void setDatabase(IDatabase db)
db - database instance
void restartConfigurationActions(ResourceReservation reservation)
throws java.lang.Exception
reservation - reservation
java.lang.Exceptionvoid setActor(IActor actor)
actor - the actorIActor getActor()
void reset()
throws java.lang.Exception
java.lang.Exception
void revisit(Slice slice)
throws java.lang.Exception
slice - restored slice
java.lang.Exception
void revisit(ResourceReservation reservation)
throws java.lang.Exception
reservation - restored reservation
java.lang.Exception
boolean validateIncoming(IReservation reservation,
AuthToken auth)
throws java.lang.Exception
reservation - The reservationauth - AuthToken of the caller
java.lang.Exceptionvoid setLogger(LoggingTool logger)
logger - instanceLoggingTool getLogger()
IConcreteSetFactory getFactory(java.lang.String protocol)
IConcreteSetFactory for the given communication
protocol
protocol - communication protocol. IProxy
IConcreteSet
instancesKeystoreManager getKeyStore()
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 | |||||||||