org.jlab.coda.afecs.agent
Class AAgentInfo

java.lang.Object
  extended by org.jlab.coda.afecs.agent.AAgentInfo

public class AAgentInfo
extends java.lang.Object

JSA: Thomas Jefferson National Accelerator Facility
This software was developed under a United States Government license,
described in the NOTICE file included as part of this distribution.
Copyright (c), Aug 13, 2009

This class is a client representing agent specific information repository.

Version:
1.4
Author:
Vardan Gyurjyan

Constructor Summary
AAgentInfo(java.lang.String s)
          Constructor
 
Method Summary
 void addProcessName(java.lang.String s)
          Adds the new porcess name to the list of process names
 void addServiceName(java.lang.String s)
          Adds a new service name
 void addStateName(java.lang.String s)
          Adds ther new state name
 java.lang.String getAgentHost()
          Gets the host name where this agent is running
 AClientInfo getClient()
           
 int getLoad()
          Gets the number that shows the number of all requests to this agent per/sec.
 java.lang.String getName()
          Returns the name of this agent
 java.util.ArrayList<java.lang.String> getProcessNames()
          Gets the list of all process names that this agent executes
 java.lang.String getRunType()
          Gets the Coda config name where this agent is configured.
 java.util.ArrayList<java.lang.String> getServiceNames()
          Gets service names provided by this agent
 java.lang.String getSession()
          Gets the coda session, in which this agent takes part
 java.lang.String getStartTime()
          Gets the start time of this agent
 java.util.ArrayList<java.lang.String> getStateNames()
          Gets the names of all states for this agent
 java.lang.String getSupervisor()
          Gets the name of the immidiate supervisor for this agent
 void removeProcessName(java.lang.String s)
          Removes the process name from the list of registered process names
 void removeServiceName(java.lang.String s)
          Removes the service name from the provided service name list.
 void removeStateName(java.lang.String s)
          Remove the state name from the state names list
 void setAgentHost(java.lang.String agentHost)
          Sets the host name where this agent is running or should run.
 void setClient(AClientInfo client)
           
 void setLoad(int load)
          Sets the number that shows the number of all requests to this agent per/sec.
 void setProcessNames(java.util.ArrayList<java.lang.String> processNames)
          Sets the names of all processes that this agent executes
 void setRunType(java.lang.String runType)
          Sets the Coda config name where this agent is configured.
 void setServiceNames(java.util.ArrayList<java.lang.String> serviceNames)
          sets service names provided by this agent
 void setSession(java.lang.String session)
          Sets coda session.
 void setStartTime(java.lang.String startTime)
          Sets the start time of this agent
 void setStateNames(java.util.ArrayList<java.lang.String> stateNames)
          Sets the state names for this agent
 void setSupervisor(java.lang.String supervisor)
          Sets the name of the immidiate supervisor for this agent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AAgentInfo

public AAgentInfo(java.lang.String s)
Constructor

Parameters:
s - The name of this agent
Method Detail

getName

public java.lang.String getName()
Returns the name of this agent

Returns:
agent name

getClient

public AClientInfo getClient()

setClient

public void setClient(AClientInfo client)

getSession

public java.lang.String getSession()
Gets the coda session, in which this agent takes part

Returns:
session name

setSession

public void setSession(java.lang.String session)
Sets coda session.

Parameters:
session - name

getRunType

public java.lang.String getRunType()
Gets the Coda config name where this agent is configured.

Returns:
config name

setRunType

public void setRunType(java.lang.String runType)
Sets the Coda config name where this agent is configured.

Parameters:
runType - or config name (those names are interchangable).

getSupervisor

public java.lang.String getSupervisor()
Gets the name of the immidiate supervisor for this agent

Returns:
supervisor name

setSupervisor

public void setSupervisor(java.lang.String supervisor)
Sets the name of the immidiate supervisor for this agent

Parameters:
supervisor - name

getAgentHost

public java.lang.String getAgentHost()
Gets the host name where this agent is running

Returns:
host name

setAgentHost

public void setAgentHost(java.lang.String agentHost)
Sets the host name where this agent is running or should run.

Parameters:
agentHost - name

getStartTime

public java.lang.String getStartTime()
Gets the start time of this agent

Returns:
start time

setStartTime

public void setStartTime(java.lang.String startTime)
Sets the start time of this agent

Parameters:
startTime - value

getLoad

public int getLoad()
Gets the number that shows the number of all requests to this agent per/sec.

Returns:
number of requests/sec.

setLoad

public void setLoad(int load)
Sets the number that shows the number of all requests to this agent per/sec.

Parameters:
load - vale

getServiceNames

public java.util.ArrayList<java.lang.String> getServiceNames()
Gets service names provided by this agent

Returns:
list of all service names.

setServiceNames

public void setServiceNames(java.util.ArrayList<java.lang.String> serviceNames)
sets service names provided by this agent

Parameters:
serviceNames - list of service names

addServiceName

public void addServiceName(java.lang.String s)
Adds a new service name

Parameters:
s - name of the service

removeServiceName

public void removeServiceName(java.lang.String s)
Removes the service name from the provided service name list.

Parameters:
s - the name of the service

getStateNames

public java.util.ArrayList<java.lang.String> getStateNames()
Gets the names of all states for this agent

Returns:
names of all states

setStateNames

public void setStateNames(java.util.ArrayList<java.lang.String> stateNames)
Sets the state names for this agent

Parameters:
stateNames - list of state names

addStateName

public void addStateName(java.lang.String s)
Adds ther new state name

Parameters:
s - name of the new state

removeStateName

public void removeStateName(java.lang.String s)
Remove the state name from the state names list

Parameters:
s - the name of the state

getProcessNames

public java.util.ArrayList<java.lang.String> getProcessNames()
Gets the list of all process names that this agent executes

Returns:
list of process names

setProcessNames

public void setProcessNames(java.util.ArrayList<java.lang.String> processNames)
Sets the names of all processes that this agent executes

Parameters:
processNames - list of names

addProcessName

public void addProcessName(java.lang.String s)
Adds the new porcess name to the list of process names

Parameters:
s - processs name

removeProcessName

public void removeProcessName(java.lang.String s)
Removes the process name from the list of registered process names

Parameters:
s - process name