Class AgentMBeanService

java.lang.Object
org.lsst.ccs.services.AgentMBeanService
All Implemented Interfaces:
ServiceLifecycle, AgentService

public class AgentMBeanService extends Object implements ServiceLifecycle, AgentService
A Service to register MBeans for CCS Agents.
Author:
The LSST CCS Team
  • Constructor Details

    • AgentMBeanService

      public AgentMBeanService()
  • Method Details

    • startForAgent

      public boolean startForAgent(AgentInfo agentInfo)
      Description copied from interface: AgentService
      This method is invoked after an agent service is created to see if this service is to be started for the tiven Agent.
      Specified by:
      startForAgent in interface AgentService
      Returns:
      true if the service is to be added to the given agent.
    • getAgentServiceName

      public String getAgentServiceName()
      Description copied from interface: AgentService
      Get the name of this service. This name will be used to add the given service to the lookup tree.
      Specified by:
      getAgentServiceName in interface AgentService
      Returns:
      the AgentService name.
    • preInit

      public void preInit()
      Specified by:
      preInit in interface ServiceLifecycle
    • registerMBean

      public void registerMBean(Object obj, ObjectName objName)