Panoramica sulla configurazione di agenti e Agent Controller
Nota
In questo documento, quando si fa riferimento a percorsi di file o directory,
<home-installazione> rappresenta la directory in cui è stato decompresso il
pacchetto dell'Agent Controller.
Introduzione
Per gestire il comportamento dell'Agent
Controller e degli agenti sono utilizzati tre file di configurazione:
-
The serviceconfig.xml
configuration file is read by the Agent Controller during its startup to
determine connectivity settings, global logging level, and global settings
for application and agent launching. Inoltre, viene letto dagli
agenti che cercano di registrarsi ad un particolare Agent Controller. Each instance of
an Agent Controller running on the same system requires its own
serviceconfig.xml
file with unique connectivity settings.
Refer to
The
serviceconfig.xml File for
reference information on the elements of this configuration file.
-
Static configuration
information for each agent is located in an
agent.xml
file. Questo file contiene informazioni che devono essere note all'Agent Controller in riferimento ad
un particolare agente. Tra queste informazioni sono comprese le modalità di avvio dell'agente (il nome percorso
dell'eseguibile, gli argomenti di riga comandi, ecc.), le serie di comandi (interfacce) supportate dall'agente, le
limitazioni sul numero di istanze in esecuzione consentite per l'agente e il numero di utenti contemporanei
consentiti per un agente. The
Agent Controller looks in the directory specified by the Agent
element in the serviceconfig.xml
file (typically defined as
<install-home>\agents)
to find these configuration files. Each agent has a unique directory named for it
and the agent.xml file is located within that directory (e.g.,
<install-home>\agents\org.eclipse.tptp.TimeCollector\agent.xml). When an
agent is requested, the Agent Controller uses the name specified in the agent.xml
configuration file to locate it.
Refer to
The
agent.xml
File for
reference information on the elements of this configuration file.
Nota
If the old agent controller
interface is being used to start agents, the presence of an agent.xml has no
effect. With the old interface, the client must know the name of the process it
wants to start, and those names are defined by application aliases. An
application alias must be placed in a pluginconfig.xml or in the
serviceconfig.xml. An application alias defined in an agent.xml will be
ignored.
-
The pluginconfig.xml file is used by any application (including an agent) that
needs to extend the environment settings or application alias list defined
in serviceconfig.xml. The term "plugin" might
mislead, because the
application does not have to be in the form of an Eclipse plugin, although
that is what was originally used. The Agent Controller looks in the
directory specified by the Plugin
element in the serviceconfig.xml
file (typically defined as
<install-home>\plugins). Each application has a unique
directory named for it and the pluginconfig.xml file must be located
directory directory \config within that directory. Refer to The
pluginconfig.xml File for
reference information on the elements of this configuration file.
-
Dynamic configuration
information for each agent is located in an
agentconfig.xml
file.
Questo file è facoltativo. Questo file dovrebbe contenere informazioni sulla configurazione utilizzata da un agente
durante l'avvio o in qualsiasi momento durante l'esecuzione. Il contenuto e l'utilizzo sono definiti dal creatore
dell'agente associato. The agentconfig.xml
file is typically located in a \config
directory below the
directory named for the agent of interest (e.g.,
<install-home>\agents\org.eclipse.tptp.TimeCollector\config\agentconfig.xml).
This configuration directory
can be
specified in the
agent.xml
file. In
funzione delle modalità di implementazione dell'agente, questo file di configurazione potrebbe essere letto dall'agente una sola
volta, molte volte o mai. L'Agent Controller non legge mai questo file.
Currently, there are no suggested elements for this file, so no reference
example is given.
Riferimenti correlati
Il file serviceconfig.xml
The
agent.xml
File
The pluginconfig.xml
File
Copyright (C) 2005, 2006 Intel Corporation.