|
Joram 5.3.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.dyade.aaa.agent.Agent
org.objectweb.joram.mom.dest.Destination
public abstract class Destination
A Destination
agent is an agent hosting a MOM destination,
for example a Queue or a Topic.
Its behavior is provided by a DestinationImpl
instance.
AdminDestinationItf
,
Serialized FormField Summary | |
---|---|
protected DestinationImpl |
destImpl
The reference of the DestinationItf instance providing this
this agent with its Destination behaviour. |
static org.objectweb.util.monolog.api.Logger |
logger
logger |
protected fr.dyade.aaa.agent.WakeUpTask |
task
|
Fields inherited from class fr.dyade.aaa.agent.Agent |
---|
emptyString, fixed, logmon |
Constructor Summary | |
---|---|
|
Destination()
Empty constructor for newInstance(). |
protected |
Destination(java.lang.String name,
boolean fixed,
int stamp)
Constructor with parameters for fixing the destination and specifying its identifier. |
Method Summary | |
---|---|
void |
agentFinalize(boolean lastTime)
Finalizes the agent before it is garbaged. |
protected void |
agentInitialize(boolean firstTime)
Gives this agent an opportunity to initialize after having been deployed, and each time it is loaded into memory. |
abstract DestinationImpl |
createsImpl(fr.dyade.aaa.agent.AgentId adminId,
java.util.Properties prop)
Creates the specific implementation. |
java.lang.String |
getMBeanName()
|
abstract byte |
getType()
Returns the type of this destination: Queue or Topic. |
void |
init(fr.dyade.aaa.agent.AgentId adminId,
java.util.Properties props)
Initializes the destination by creating the DestinationItf object. |
void |
react(fr.dyade.aaa.agent.AgentId from,
fr.dyade.aaa.agent.Notification not)
Distributes the received notifications to the appropriate reactions. |
protected void |
setNoSave()
|
void |
setPeriod(long period)
|
protected void |
setSave()
|
Methods inherited from class fr.dyade.aaa.agent.Agent |
---|
delete, delete, delete, deploy, deploy, getAgentId, getId, getLogTopic, getName, isDeployed, isFixed, needToBeCommited, save, sendTo, sendTo, sendTo, setName, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static org.objectweb.util.monolog.api.Logger logger
protected DestinationImpl destImpl
DestinationItf
instance providing this
this agent with its Destination behaviour.
protected transient fr.dyade.aaa.agent.WakeUpTask task
Constructor Detail |
---|
public Destination()
protected Destination(java.lang.String name, boolean fixed, int stamp)
Method Detail |
---|
public final void init(fr.dyade.aaa.agent.AgentId adminId, java.util.Properties props)
init
in interface AdminDestinationItf
adminId
- Identifier of the destination administrator.props
- The initial set of properties.public abstract DestinationImpl createsImpl(fr.dyade.aaa.agent.AgentId adminId, java.util.Properties prop)
adminId
- Identifier of the topic administrator.prop
- The initial set of properties.public abstract byte getType()
DestinationConstants.TOPIC_TYPE
,
DestinationConstants.QUEUE_TYPE
protected void agentInitialize(boolean firstTime) throws java.lang.Exception
agentInitialize
in class fr.dyade.aaa.agent.Agent
firstTime
- true when first called by the factory
java.lang.Exception
- unspecialized exceptionpublic void agentFinalize(boolean lastTime)
agentFinalize
in class fr.dyade.aaa.agent.Agent
public java.lang.String getMBeanName()
public void react(fr.dyade.aaa.agent.AgentId from, fr.dyade.aaa.agent.Notification not) throws java.lang.Exception
react
in class fr.dyade.aaa.agent.Agent
java.lang.Exception
public void setPeriod(long period)
protected void setNoSave()
setNoSave
in class fr.dyade.aaa.agent.Agent
protected void setSave()
setSave
in class fr.dyade.aaa.agent.Agent
|
Joram 5.3.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |