|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dermi.EventServer dermi.DermiRemoteObject p2pcm.Component
public class Component
This class is the base class for a Dermi Component. It is in fact a special kind of Dermi Remote Object which provides the component's standard methods
Field Summary |
---|
Fields inherited from class dermi.DermiRemoteObject |
---|
logger |
Fields inherited from class dermi.EventServer |
---|
className, classStore, conn, eref, uid |
Constructor Summary | |
---|---|
Component()
Default void Dermi Remote Object constructor |
|
Component(java.util.Properties env)
Default Dermi Remote Object constructor |
Method Summary | |
---|---|
void |
activate()
This method implements the default activation policy for components It thus follows this algorithm: - Obtain first the node's 5 most suitable replicas - If replica number is less than 2, it is impossible to activate new components (node is isolated) - Identify which node is overwhelming this component, and activate new object replica there, unless there is an already active instance within that node. |
ComponentControl |
getLifeCycleManager()
Life cycle manager getter method |
void |
passivate()
This method implements the default passivation policy for components It now unloads the component from memory. |
void |
setLifeCycleManager(ComponentControl cc)
Life cycle manager setter method |
Methods inherited from class dermi.DermiRemoteObject |
---|
addListener, anycallEventArrived, close, copy, eventArrived, getReplicaState, init, loadReplicaState, loadState, removeListener, triggerEvent |
Methods inherited from class dermi.EventServer |
---|
dispatchDirectEvent, dispatchDirectEvent, dispatchEvent, dispatchEvent, dispatchEvent, getBytes, getClassStore, getERef, getUID, start, writeERef |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Component()
public Component(java.util.Properties env) throws dermi.exception.RemoteException
env
- Properties Object properties
dermi.exception.RemoteException
- If something goes wrong ;-)Method Detail |
---|
public void setLifeCycleManager(ComponentControl cc)
cc
- ComponentControl A previously initialized life cycle managerpublic ComponentControl getLifeCycleManager()
public void activate() throws ActivationException
ActivationException
- If impossible to activate new object replica for any reason (see below)public void passivate() throws PassivationException
PassivationException
- If the component cannot be passivated.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |