metaglue
Class GoodCatalogAgent
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--metaglue.AgentAgent
|
+--agentland.util.NotifierAgent
|
+--metaglue.CatalogAgent
|
+--metaglue.GoodCatalogAgent
- All Implemented Interfaces:
- Agent, Catalog, GoodCatalog, MetagluePrimitives, Notifier, Remote, Serializable
- public class GoodCatalogAgent
- extends CatalogAgent
- implements GoodCatalog
- See Also:
- Serialized Form
Method Summary |
protected boolean |
isDaemon(AgentID agent)
|
void |
setDaemon(AgentID agent,
boolean daemon)
Lets you make an agent into a daemon, i.e. |
protected void |
setUpDaemonList()
|
protected void |
setUpDaemonList(boolean purge)
|
protected void |
setupIcebox()
Not private so MetaglueAgent.main() can call it just prior
to letting catalog loose on world. |
protected void |
startMourning(AgentID agentID)
This methods sends out messages about agents that have been
found dead |
Methods inherited from class metaglue.CatalogAgent |
add, add, addCatalogMonitor, addToChainingClassLoader, body_hunt, catalogHostName, checkStatus, commitAgent, dealWithBody, doneBooting, enableMethodTracing, endMethod, enumerateAgents, enumerateAgents, freezeStub, getCatalog, gravedigger, log, lookup, lookupBlocking, lookupBlocking, purgeIcebox, rebindPlaceholder, rebuildTables, remove, removeCatalogMonitor, removeFromChainingClassLoader, removeFrozen, removeFrozen, replaceStartingMG, startMethod, waitForSomethingToHappen |
Methods inherited from class agentland.util.NotifierAgent |
addSpy, addSpy, getNoteTypes, getNotifyTable, gossip, hack_notify, lookupSpy, notify, notify, passNotify, putNotifyTable, removeAllSpies, removeNotifyTable, removeSpy, removeSpy, removeSpy, removeSpy, removeSpy |
Methods inherited from class metaglue.AgentAgent |
addMonitor, alive, buildEHAFor, defrost, defrostAll, defrostBoolean, defrostInt, defrostString, fixAttribute, fixAttribute, freeze, freeze, freeze, freezeAll, freezeVar, getAgentID, getAttribute, getCatalogID, getDesignation, getFrozenVariables, getLogLevel, getMetaglueAgent, getMetaglueAgentID, getOccupation, getOldLogs, getProperties, getProxyHandlerClass, getSociety, installAPH, log, log, lookupClass, reliesOn, reliesOn, reliesOn, reliesOnSynch, removeAPHFromCatalog, removeFrozen, setFreezeName, setLogLevel, setLogName, shutdown, startAgent, startAgentOn, startAgentOn, startup, status, tiedTo, tiedTo, tiedTo, tiedTo, tieToDesignation, toString, whereAreYou |
Methods inherited from interface metaglue.Catalog |
add, addCatalogMonitor, checkStatus, enumerateAgents, enumerateAgents, lookup, lookupBlocking, lookupBlocking, remove, removeCatalogMonitor, replaceStartingMG |
daemons
protected HashSet daemons
setUp
protected boolean setUp
ma
protected MetaglueAgent ma
GoodCatalogAgent
public GoodCatalogAgent(AgentID agentID)
throws RemoteException
GoodCatalogAgent
public GoodCatalogAgent(AgentID agentID,
boolean purgeIcebox)
throws RemoteException
setupIcebox
protected void setupIcebox()
- Description copied from class:
CatalogAgent
- Not private so MetaglueAgent.main() can call it just prior
to letting catalog loose on world.
- Overrides:
setupIcebox
in class CatalogAgent
setUpDaemonList
protected void setUpDaemonList()
setUpDaemonList
protected void setUpDaemonList(boolean purge)
setDaemon
public void setDaemon(AgentID agent,
boolean daemon)
throws RemoteException
- Lets you make an agent into a daemon, i.e. an agent that gets
automatically restarted if it ever dies.
- Specified by:
setDaemon
in interface GoodCatalog
- Parameters:
agent
- agent we are talking aboutdaemon
- true if it should be a daemon, false if it should
be a normal mortal agent
startMourning
protected void startMourning(AgentID agentID)
throws RemoteException
- Description copied from class:
CatalogAgent
- This methods sends out messages about agents that have been
found dead
- Overrides:
startMourning
in class CatalogAgent
- Following copied from class:
metaglue.CatalogAgent
- Parameters:
agentID
- agentID of a dead agent
isDaemon
protected boolean isDaemon(AgentID agent)