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

Inner classes inherited from class metaglue.AgentAgent
AgentAgent.Attribute
 
Field Summary
protected  HashSet daemons
           
protected  MetaglueAgent ma
           
protected  boolean setUp
           
 
Fields inherited from class metaglue.CatalogAgent
GRAVEDIGGER_SLEEP, purge_icebox, should_dig, watch_methods
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Fields inherited from interface metaglue.Agent
ALIVE, DIED, NO_METAGLUE, NOT_RUNNING, STARTING
 
Constructor Summary
GoodCatalogAgent(AgentID agentID)
           
GoodCatalogAgent(AgentID agentID, boolean purgeIcebox)
           
 
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 class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface metaglue.Catalog
add, addCatalogMonitor, checkStatus, enumerateAgents, enumerateAgents, lookup, lookupBlocking, lookupBlocking, remove, removeCatalogMonitor, replaceStartingMG
 
Methods inherited from interface agentland.util.Notifier
addSpy, addSpy, gossip, notify, passNotify, removeAllSpies, removeSpy, removeSpy
 
Methods inherited from interface metaglue.Agent
addMonitor, alive, getAgentID, getMetaglueAgentID, getOldLogs, shutdown, startup, whereAreYou
 

Field Detail

daemons

protected HashSet daemons

setUp

protected boolean setUp

ma

protected MetaglueAgent ma
Constructor Detail

GoodCatalogAgent

public GoodCatalogAgent(AgentID agentID)
                 throws RemoteException

GoodCatalogAgent

public GoodCatalogAgent(AgentID agentID,
                        boolean purgeIcebox)
                 throws RemoteException
Method Detail

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 about
daemon - 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)