Next: Service Proxies
Up: Creating a System Agent
Previous: concludeUser()
  Contents
The System Agents have their own helper to access the resources of the platform.
It should make it a little more secure since not all System Agents need direct
access to the platform (the AgentSystem class). The only System
Agents known to need this are the admin System Agents. The SysAgentHelper
provides the following methods for the System Agents:
- getSystemName()
- Returns the name of the System.
- getSystemID()
- Returns the ID of the System.
- getSystemInfo()
- Returns the AgentSystemInfo of the System.
- getSystem()
- Returns a reference to the System itself. This can only be used
by admin System Agents because it provides full and direct access to the platform
which is not needed by other System Agents.
- getParameter(SysAgent agent)
- Every System Agent can have its own section in
the configuration file. This method returns the entries of its section (an OTMHashtable).
- print(String s), println(String s), print(Exception e)
- Has to be used to do
output. This is the same as used by the normal Agents. System Agent should also
not use the System.out.print methods to do their output. Instead the
use of the helper methods is strongly recommended.
- prepareForMove, transferOK, receiveAgent, getLoader, getClasses
- These methods
are used by the communication services. For a description see
at page
.
- getProxy
- Returns the proxy for the given resource.
- registerProxy
- Lets the System Agent register its service proxy at the platform.
- unregisterProxy
- Lets the System Agent unregister its service proxy at the platform.
Next: Service Proxies
Up: Creating a System Agent
Previous: concludeUser()
  Contents
Thomas Letsch
2001-02-21