|
SmartFrog 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Prim
Defines the basic interface for all deployed components. A deployed component knows how to react to termination, liveness, etc.
| Method Summary | |
|---|---|
java.lang.Object |
sfAddAttribute(java.lang.Object name,
java.lang.Object value)
Add an attribute to the component's context. |
java.lang.Object |
sfAttributeKeyFor(java.lang.Object value)
Returns the attribute key for a given value. |
java.util.Iterator |
sfAttributes()
Returns an ordered iterator over the attribute names in the context. |
Reference |
sfCompleteName()
Returns a reference to the component from the root of the containment tree. |
boolean |
sfContainsAttribute(java.lang.Object attribute)
Returns true if the context contains attribute. |
boolean |
sfContainsValue(java.lang.Object value)
Returns true if the context contains value. |
Context |
sfContext()
Returns the context of this component. |
void |
sfDeploy()
Deploy the component. |
java.net.InetAddress |
sfDeployedHost()
Request the host on which this component is deployed. |
java.lang.String |
sfDeployedProcessName()
Request the process in which this component is deployed, the name being that defined in the sfProcessName attribute or the string ROOT if in the root process compound. |
void |
sfDeployWith(Prim parent,
Context cxt)
Private method to set up a freshly deployed component. |
void |
sfDetach()
Request component to detach itself from its parent, and becoming a root component. |
void |
sfDetachAndTerminate(TerminationRecord status)
Request component to detach itself from its container and terminate with a given termination status. |
void |
sfDumpState(Dump target)
Request component to "dump it's state" to a target object which implements the Dump interface. |
boolean |
sfIsDeployed()
Returns value of flag indicating if this component has been deployed. |
boolean |
sfIsStarted()
Returns value of flag indicating if this component has been started. |
boolean |
sfIsTerminated()
Returns value of flag indicating if this component has been terminated. |
boolean |
sfIsTerminating()
Returns value of flag indicating if this component is terminating. |
Prim |
sfParent()
Gets the parent of the component. |
void |
sfParentageChanged()
Parentage changed in component hierachy. |
java.lang.Object |
sfRemoveAttribute(java.lang.Object name)
Remove named attribute from component context. |
java.lang.Object |
sfReplaceAttribute(java.lang.Object name,
java.lang.Object value)
Replace named attribute in component context. |
void |
sfStart()
Start the component's main processing thread. |
void |
sfTerminate(TerminationRecord status)
Request component to terminate with a given termination status. |
void |
sfTerminatedWith(TerminationRecord status,
Prim comp)
Notification of other component that it has been terminated. |
void |
sfTerminateQuietlyWith(TerminationRecord status)
Request this component to terminate quietly without telling anyone else. |
java.util.Iterator |
sfValues()
Returns an ordered iterator over the values in the context. |
| Methods inherited from interface org.smartfrog.sfcore.prim.Liveness |
|---|
sfPing |
| Methods inherited from interface org.smartfrog.sfcore.reference.RemoteReferenceResolver |
|---|
sfResolve, sfResolve, sfResolveHere, sfResolveHere, sfResolveParent |
| Methods inherited from interface org.smartfrog.sfcore.reference.RemoteReferenceResolverHelper |
|---|
sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolve, sfResolveWithParser |
| Methods inherited from interface org.smartfrog.sfcore.prim.Diagnostics |
|---|
sfDiagnosticsReport |
| Method Detail |
|---|
java.lang.Object sfAddAttribute(java.lang.Object name,
java.lang.Object value)
throws SmartFrogRuntimeException,
java.rmi.RemoteException
name - name of attributevalue - object to be added in context
java.rmi.RemoteException - In case of Remote/nework error
SmartFrogRuntimeException - when name or value are null
java.lang.Object sfRemoveAttribute(java.lang.Object name)
throws SmartFrogRuntimeException,
java.rmi.RemoteException
name - name of attribute to be removed
java.rmi.RemoteException - In case of Remote/nework error
SmartFrogRuntimeException - when name is null
java.lang.Object sfAttributeKeyFor(java.lang.Object value)
throws java.rmi.RemoteException
value - value to look up the key for
java.rmi.RemoteException - In case of Remote/nework error
boolean sfContainsValue(java.lang.Object value)
throws java.rmi.RemoteException
value - object to check
java.rmi.RemoteException - In case of Remote/nework error
boolean sfContainsAttribute(java.lang.Object attribute)
throws java.rmi.RemoteException
attribute - to check
java.rmi.RemoteException - In case of Remote/nework error
java.lang.Object sfReplaceAttribute(java.lang.Object name,
java.lang.Object value)
throws SmartFrogRuntimeException,
java.rmi.RemoteException
name - of attribute to replacevalue - attribute value to replace or add
java.rmi.RemoteException - In case of Remote/nework error
SmartFrogRuntimeException - when name or value are null
java.util.Iterator sfAttributes()
throws java.rmi.RemoteException
java.rmi.RemoteException - In case of Remote/nework error
java.util.Iterator sfValues()
throws java.rmi.RemoteException
java.rmi.RemoteException - In case of Remote/nework error
Context sfContext()
throws java.rmi.RemoteException
java.rmi.RemoteException - In case of Remote/nework error
Reference sfCompleteName()
throws java.rmi.RemoteException
java.rmi.RemoteException - In case of Remote/nework error
Prim sfParent()
throws java.rmi.RemoteException
java.rmi.RemoteException - In case of Remote/nework error
void sfDeployWith(Prim parent,
Context cxt)
throws SmartFrogException,
java.rmi.RemoteException
parent - parent of componentcxt - context for component
SmartFrogException - failed to deploy primitive
java.rmi.RemoteException - In case of Remote/nework error
void sfDeploy()
throws SmartFrogException,
java.rmi.RemoteException
SmartFrogException - error while deploying
java.rmi.RemoteException - In case of Remote/nework error
void sfStart()
throws SmartFrogException,
java.rmi.RemoteException
SmartFrogException - sfStart failure
java.rmi.RemoteException - In case of Remote/nework error
void sfDumpState(Dump target)
throws java.rmi.RemoteException
target - object to send dumpState to
java.rmi.RemoteException - In case of Remote/nework error
void sfTerminate(TerminationRecord status)
throws java.rmi.RemoteException
status - termination status
java.rmi.RemoteException - In case of Remote/nework error
void sfDetach()
throws SmartFrogException,
java.rmi.RemoteException
SmartFrogException - failed to detach
java.rmi.RemoteException - In case of Remote/nework error
void sfDetachAndTerminate(TerminationRecord status)
throws java.rmi.RemoteException
status - termination status
java.rmi.RemoteException - In case of Remote/nework error
void sfTerminatedWith(TerminationRecord status,
Prim comp)
throws java.rmi.RemoteException
comp - terminated componentstatus - termination record for component
java.rmi.RemoteException - In case of Remote/nework error
void sfTerminateQuietlyWith(TerminationRecord status)
throws java.rmi.RemoteException
status - status indicating termination type
java.rmi.RemoteException - In case of Remote/nework error
java.net.InetAddress sfDeployedHost()
throws java.rmi.RemoteException
java.rmi.RemoteException - In case of Remote/nework error
java.lang.String sfDeployedProcessName()
throws java.rmi.RemoteException
java.rmi.RemoteException - In case of Remote/nework error
void sfParentageChanged()
throws java.rmi.RemoteException
java.rmi.RemoteException - In case of Remote/nework error
boolean sfIsTerminated()
throws java.rmi.RemoteException
java.rmi.RemoteException - In case of Remote/nework error
boolean sfIsTerminating()
throws java.rmi.RemoteException
java.rmi.RemoteException - In case of Remote/nework error
boolean sfIsDeployed()
throws java.rmi.RemoteException
java.rmi.RemoteException - In case of Remote/nework error
boolean sfIsStarted()
throws java.rmi.RemoteException
java.rmi.RemoteException - In case of Remote/nework error
|
SmartFrog CORE 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||