org.objectweb.joram.mom.dest
Class Destination
- AdminDestinationItf, AgentMBean, Serializable
public abstract class Destination
A Destination
agent is an agent hosting a MOM destination,
for example a Queue or a Topic.
Its behaviour is provided by a DestinationImpl
instance.
DestinationImpl
protected DestinationImpl | destImpl - The reference of the
DestinationImpl instance providing this
this agent with its Destination behaviour.
|
Destination() - Empty constructor for newInstance().
|
Destination(String name, boolean fixed, int stamp) - Constructor with parameters for fixing the destination and specifying its
identifier.
|
Destination(boolean fixed) - Constructor with parameters for fixing the destination.
|
Destination(AgentId adminId) - Constructs a
Destination agent.
|
protected void | agentInitialize(boolean firstTime) - Gives this agent an opportunity to initialize after having been deployed,
and each time it is loaded into memory.
|
DestinationImpl | createsImpl(AgentId adminId) - Creates the specific implementation.
|
void | init(AgentId adminId) - Initializes the destination by creating the DestinationImpl
object.
|
void | react(AgentId from, Notification not) - Reactions to notifications are implemented by the
DestinationImpl class.
|
void | setProperties(Properties prop) - Sets properties for the destination.
|
agentFinalize , agentInitialize , delete , delete , deploy , deploy , getId , getLogTopic , getName , isDeployed , isFixed , needToBeCommited , react , save , sendTo , sendTo , sendTo , setNoSave , toString |
destImpl
protected DestinationImpl destImpl
The reference of the DestinationImpl
instance providing this
this agent with its Destination behaviour.
Destination
public Destination()
Empty constructor for newInstance().
Destination
protected Destination(String name,
boolean fixed,
int stamp)
Constructor with parameters for fixing the destination and specifying its
identifier.
Destination
protected Destination(boolean fixed)
Constructor with parameters for fixing the destination.
Destination
public Destination(AgentId adminId)
Constructs a Destination
agent.
adminId
- Identifier of the agent which will be the administrator
of the topic.
agentInitialize
protected void agentInitialize(boolean firstTime)
throws Exception
Gives this agent an opportunity to initialize after having been deployed,
and each time it is loaded into memory.
- agentInitialize in interface Agent
firstTime
- true when first called by the factory
createsImpl
public DestinationImpl createsImpl(AgentId adminId)
Creates the specific implementation.
adminId
- Identifier of the topic administrator.
init
public final void init(AgentId adminId)
Initializes the destination by creating the DestinationImpl
object.
- init in interface AdminDestinationItf
adminId
- Identifier of the destination administrator.
react
public void react(AgentId from,
Notification not)
throws Exception
Reactions to notifications are implemented by the
DestinationImpl class.
- react in interface Agent
setProperties
public void setProperties(Properties prop)
Sets properties for the destination.
Empty method as no properties may be set for the generic destination.
- setProperties in interface AdminDestinationItf
Copyright B) 2004 Scalagent - All rights reserved