| ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Tier for handling agent communication that is built on top of the Node.
Field Summary | |
protected final static String | AGENT_TAG_NAME Description of the Field |
final static String | AGENTS_ZIP_ENTRY_NAME |
protected final static String | DEFAULT_AGENTS_ROOT_ELEMENT Description of the Field |
protected final static double | DEFAULT_LOCAL_RECEIVER_ROUTE_STRENGTH Description of the Field |
final static String | DEFAULT_STORAGE_FILENAME Description of the Field |
(package private) final static int | HALF_LIFE_LIMIT |
final static RoutingTag | LOCAL_FACILITY_ROUTING_TAG Description of the Field |
final static String | LOCAL_ROUTING_TAG_PREFIX Description of the Field |
(package private) static Category | Log |
protected boolean | m_debug Description of the Field |
protected MessageQueue | m_facilityMessageQueue Description of the Field |
protected FacilityServiceManager | m_facilityServiceManager Description of the Field |
protected Thread | m_facilityThread Description of the Field |
protected Collection | m_localAgents Description of the Field |
protected mam.internetworking.Node | m_localNode Description of the Field |
protected String | m_nodeConfigurationFilename Description of the Field |
protected Map | m_processedMessages Description of the Field |
protected boolean | m_quit Description of the Field |
protected RoutingTable | m_routingTable Description of the Field |
protected boolean | m_saveComplete Description of the Field |
protected boolean | m_shutdownComplete Description of the Field |
protected final static String | NEWLY_PROCESSED_MESSAGES Description of the Field |
protected final static String | OLD_PROCESSED_MESSAGES Description of the Field |
Constructor Summary | |
Facility() Constructor for the Facility object | |
Facility(String configurationFilename) Constructor for the Facility object |
Method Summary | |
(package private) void | addProcessedMessage(MamId messageId) Adds a feature to the ProcessedMessage attribute of the Facility object |
Agent | createAgent(String role, AgentProperties defaultAgentProperties) Description of the Method |
protected void | createFacilityServiceManager() Description of the Method |
synchronized void | forwardMessage(AgentMessage message) Description of the Method |
protected FacilityServiceManager | getFacilityServiceManager() Gets the FacilityServiceManager attribute of the Facility object |
protected Node | getLocalNode() Gets the LocalNode attribute of the Facility object |
MamId | getMamId() Gets the MamId attribute of the Facility object |
boolean | getSaveComplete() Gets the SaveComplete attribute of the Facility object |
boolean | getShutdownComplete() Gets the ShutdownComplete attribute of the Facility object |
boolean | migrateAgent(Agent newAgent) Description of the Method |
void | nodeMessageReceived(AgentMessage message) Description of the Method |
synchronized void | register(RoutingTag routingTag, MessageReceiver receiver) Allows tag registration. |
void | removeAgent(Agent agent) Description of the Method |
protected void | restoreAgents(String xmlAgentsFilename) Description of the Method |
(package private) void | retireProcessedMessages() Description of the Method |
(package private) void | routeMessage(AgentMessage message) Description of the Method |
void | run() Main processing method for the Facility object |
protected void | saveAgents() Description of the Method |
void | sendAgentMessage(AgentMessage message) Public interface to send an agent message. |
protected void | setShutdownComplete() Sets the ShutdownComplete attribute of the Facility object |
protected void | shutdown() Description of the Method |
protected void | signalQuit() Description of the Method |
synchronized void | unregister(RoutingTag routingTag, MessageReceiver receiver) Description of the Method |
Field Detail |
protected final static String AGENT_TAG_NAME
public final static String AGENTS_ZIP_ENTRY_NAME
protected final static String DEFAULT_AGENTS_ROOT_ELEMENT
protected final static double DEFAULT_LOCAL_RECEIVER_ROUTE_STRENGTH
public final static String DEFAULT_STORAGE_FILENAME
final static int HALF_LIFE_LIMIT
public final static RoutingTag LOCAL_FACILITY_ROUTING_TAG
public final static String LOCAL_ROUTING_TAG_PREFIX
static Category Log
protected boolean m_debug
protected MessageQueue m_facilityMessageQueue
protected FacilityServiceManager m_facilityServiceManager
protected Thread m_facilityThread
protected Collection m_localAgents
protected mam.internetworking.Node m_localNode
protected String m_nodeConfigurationFilename
protected Map m_processedMessages
protected boolean m_quit
protected RoutingTable m_routingTable
protected boolean m_saveComplete
protected boolean m_shutdownComplete
protected final static String NEWLY_PROCESSED_MESSAGES
protected final static String OLD_PROCESSED_MESSAGES
Constructor Detail |
public Facility()
public Facility(String configurationFilename)
Method Detail |
void addProcessedMessage(MamId messageId)
public Agent createAgent(String role, AgentProperties defaultAgentProperties)
protected void createFacilityServiceManager()
public synchronized void forwardMessage(AgentMessage message)
protected FacilityServiceManager getFacilityServiceManager()
protected Node getLocalNode()
public MamId getMamId()
public boolean getSaveComplete()
public boolean getShutdownComplete()
public boolean migrateAgent(Agent newAgent)
public void nodeMessageReceived(AgentMessage message)
public synchronized void register(RoutingTag routingTag, MessageReceiver receiver)
public void removeAgent(Agent agent)
protected void restoreAgents(String xmlAgentsFilename)
void retireProcessedMessages()
void routeMessage(AgentMessage message)
public void run()
protected void saveAgents()
public void sendAgentMessage(AgentMessage message)
protected void setShutdownComplete()
protected void shutdown()
protected void signalQuit()
public synchronized void unregister(RoutingTag routingTag, MessageReceiver receiver)
| ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |