org.jlab.coda.afecs.agent
Class ARepresenter

java.lang.Object
  extended by org.jlab.coda.afecs.system.ABase
      extended by org.jlab.coda.afecs.archive.AAgent
          extended by org.jlab.coda.afecs.crc.ARepresenter
Direct Known Subclasses:
CRCAgent

public abstract class ARepresenter
extends AAgent

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),Nov 15, 2009

base class for agents rerpesenting foreign clients (alien software components, for e.g. CODA ROC, EB, different analyses components, etc.) in the Afecs platform. An instance of this agent will be created by the request of the platform administrator agent as a result of the "platform join" request initiated by the alien component. Creats and maintains cMsg RC domain communication object.

Version:
1.4
Author:
Vardan Gyurjyan

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jlab.coda.afecs.agent.AAgent
AAgent.AsyncProcessThread, AAgent.MonProcessThread, AAgent.ReportDalogThread, AAgent.ReportLoadThread, AAgent.ReportStatusThread, AAgent.ShellExecutionThread
 
Field Summary
 
Fields inherited from class org.jlab.coda.afecs.agent.AAgent
AbortRequest, activeMoveToState, cMsgRequests, me, myLoad, myMonProcesses, myPlugin, myStartTime, ResetRequest
 
Fields inherited from class org.jlab.coda.afecs.system.ABase
myConfig, myCRCClientConnection, myName, myPlatformConnection, myRcDomainConnection
 
Constructor Summary
ARepresenter()
          Basic constructor.
 
Method Summary
 void clientDisconnect()
          Methods closes connection with the client.
 boolean connect2Client()
          Connect to the physical client using cMsg rcDomain server
 boolean isClientConnected()
          Returns true in case agent is connected to the client through cMsg rcDomain communication channel.
 
Methods inherited from class org.jlab.coda.afecs.agent.AAgent
agentControlRequestAbort, agentControlRequestClientReconnect, agentControlRequestConfigure, agentControlRequestMoveToState, agentControlRequestPlatformDisconnect, agentControlRequestReleaseComponent, agentControlRequestReset, agentControlrequestSetRunNumber, configure, connect2cMsg, differentiate, doSubscriptions, executeProcess, executeProcess, executeShellScript, isSet, moveToState, register, removeRegistration, reportLoad, reportStatus, reset, startDalogReporting, startLoadReporting, startStatusReporting, stopDalogReporting, stopLoadReporting, stopMonProcesses, stopStatusReporting, supervisorControlRequestConfigure, unsubscribeAll
 
Methods inherited from class org.jlab.coda.afecs.system.ABase
B2O, connect, connect, connect, dalogMsg, dalogMsg, disconnect, getCurrentTime, getCurrentTime, getCurrentTimeInMs, getPlDescription, getPlEXPID, getPlMulticastUDL, getPlUDL, isConnected, isRCDomainConnected, msg2xml, msgForward, multicastConnect, multicastConnect, O2B, p2pSend, p2pSend, p2pSend, p2pSend, rcConnect, rcDomaindisconnect, rcMonitor, rcp2pSend, rcSend, rcSend, rcSend, rcSend, rcSend, rcSend, rcSend, removeUnixShellProcess, reporAlarmMsg, reportAlarmMsg, reportAlarmMsg, runShellCommand, send, send, send, send, send, send, send, sleep, updateHostUdl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ARepresenter

public ARepresenter()
Basic constructor. No configuration information is available.

Method Detail

clientDisconnect

public void clientDisconnect()
Methods closes connection with the client.


connect2Client

public boolean connect2Client()
Connect to the physical client using cMsg rcDomain server

Returns:
stat status of the connection attempt

isClientConnected

public boolean isClientConnected()
Returns true in case agent is connected to the client through cMsg rcDomain communication channel.

Returns:
true/false