
public final class DataProviderDictionaryService extends Object implements ServiceLifecycle, HasLifecycle, AgentService
| Modifier and Type | Class and Description |
|---|---|
class |
DataProviderDictionaryService.DataProviderDictionaryCommands |
| Constructor and Description |
|---|
DataProviderDictionaryService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMetadataForDataGroup(KeyValueDataList data,
String metadataName,
String metadataValue,
String dataGroupName) |
void |
addMetadataForObject(KeyValueDataList data,
String metadataName,
String metadataValue,
Object origin) |
String |
getAgentServiceName()
Get the name of this service.
|
DataProviderDictionary |
getDataProviderDictionary() |
void |
init()
Called from the enclosing
Subsystem at initialization
phase. |
void |
preStart()
Called from the enclosing
Subsystem when
HasLifecycle.start() has been called. |
void |
publishMetadataForDataGroup(String metadataName,
String metadataValue,
String dataGroupName) |
void |
publishMetadataForObject(String metadataName,
String metadataValue,
Object origin) |
void |
shutdown()
Called from the enclosing
Subsystem when
HasLifecycle.shutdown() has been called. |
void |
start()
Called from the enclosing
Subsystem when
Agent.startAgent() has been called. |
boolean |
startForAgent(AgentInfo agentInfo)
This method is invoked after an agent service is created to see if
this service is to be started for the tiven Agent.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpreBuild, preInit, preShutdownbuild, postBuild, postInit, postShutdown, postStartpublic String getAgentServiceName()
AgentServicegetAgentServiceName in interface AgentServicepublic boolean startForAgent(AgentInfo agentInfo)
AgentServicestartForAgent in interface AgentServicepublic void init()
HasLifecycleSubsystem at initialization
phase.
This method is called before the children components of this
object have their init method called.
At the time it is called, connection to the messaging layer is not yet
done, so there should be no attempt to send messages in the body of
this method. Configuration for message listening can nevertheless be
done here, such as adding MessageListener
objects.
It is unnecessary to call super.init()
init in interface HasLifecyclepublic void preStart()
ServiceLifecycleSubsystem when
HasLifecycle.start() has been called.
The preceding lifecycle step is HasLifecycle.postInit()
The following lifecycle step is HasLifecycle.start()
At the time it is called :
PhaseState is
INITIALIZING
connection with the messaging layer is effective, the enclosing
subsystem has started StatusHeartBeat
publication
preStart in interface ServiceLifecyclepublic void start()
HasLifecycleSubsystem when
Agent.startAgent() has been called. At the time
it is called :
PhaseState is
INITIALIZING
connection with the messaging layer is effective, the enclosing
subsystem has started StatusHeartBeat
publication
the startup configuration has been loaded (if provided). IMPORTANT
NOTE : This statement will not be true in future releases. Code that
expect the startup configuration to be loaded should be moved from
start to postStart.
super.start()start in interface HasLifecyclepublic void shutdown()
HasLifecycleSubsystem when
HasLifecycle.shutdown() has been called. At the time it
is called :
PhaseState is CLOSING.
HardwareController.checkStopped() has
been called
shutdown in interface HasLifecyclepublic DataProviderDictionary getDataProviderDictionary()
public void addMetadataForDataGroup(KeyValueDataList data, String metadataName, String metadataValue, String dataGroupName)
public void addMetadataForObject(KeyValueDataList data, String metadataName, String metadataValue, Object origin)
public void publishMetadataForDataGroup(String metadataName, String metadataValue, String dataGroupName)
Copyright © 2018 LSST. All rights reserved.