public final class DataProviderDictionaryService extends Object implements ServiceLifecycle, HasLifecycle, AgentService, BusMessagePreProcessor
| Modifier and Type | Class and Description |
|---|---|
class |
DataProviderDictionaryService.DataProviderDictionaryCommands |
static class |
DataProviderDictionaryService.DataProviderDictionaryEvent
An event fired to
DataProviderDictionaryListeners when an agent
data dictionary has changed. |
static interface |
DataProviderDictionaryService.DataProviderDictionaryListener
A Listener to receive notifications of DataProviderDictionary changes.
|
| Constructor and Description |
|---|
DataProviderDictionaryService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDataProviderDictionaryListener(DataProviderDictionaryService.DataProviderDictionaryListener listener) |
void |
addDataProviderInfoToDictionary(DataProviderInfo info) |
void |
addMetadataForObject(KeyValueDataList data,
String metadataName,
String metadataValue,
Object origin) |
void |
afterInit() |
String |
getAgentServiceName()
Get the name of this service.
|
Bus |
getBus()
The Bus this BusMessagePreProcessor applies to.
|
DataProviderDictionary |
getDataProviderDictionary() |
DataProviderDictionary |
getDataProviderDictionaryForAgent(String agentName) |
long |
getDictionaryChecksum() |
void |
init()
Called from the enclosing
Subsystem at initialization
phase. |
void |
preBuild() |
BusMessage |
preProcessMessage(BusMessage msg)
Pre-process the incoming BusMessage and return the message to be
forwarded to the bus message listeners.
|
void |
purge()
Deprecated.
|
void |
purge(AgentInfo agent)
Deprecated.
|
void |
registerClass(Class clazz) |
void |
registerClass(Class clazz,
String path) |
void |
registerData(KeyValueData kvd) |
void |
removeDataProviderDictionaryListener(DataProviderDictionaryService.DataProviderDictionaryListener listener) |
void |
shutdown()
Called from the enclosing
Subsystem when
org.lsst.ccs.Subsystem#shutdown() 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.
|
DataProviderDictionary |
waitForAgentDictionary(AgentInfo agentInfo,
long timeout,
TimeUnit unit) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitafterBuild, afterStart, preInit, preShutdown, preStartbuild, postBuild, postInit, postShutdown, postStart, startpublic String getAgentServiceName()
AgentServicegetAgentServiceName in interface AgentServicepublic boolean startForAgent(AgentInfo agentInfo)
AgentServicestartForAgent in interface AgentServicepublic void preBuild()
preBuild in interface ServiceLifecyclepublic 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 afterInit()
afterInit in interface ServiceLifecyclepublic long getDictionaryChecksum()
public void shutdown()
HasLifecycleSubsystem when
org.lsst.ccs.Subsystem#shutdown() has been called. At the time it
is called PhaseState is CLOSING.
It should be overridden to free non hardware related resources.shutdown in interface HasLifecyclepublic void addDataProviderInfoToDictionary(DataProviderInfo info)
public DataProviderDictionary getDataProviderDictionary()
public DataProviderDictionary getDataProviderDictionaryForAgent(String agentName)
public void addMetadataForObject(KeyValueDataList data, String metadataName, String metadataValue, Object origin)
@Deprecated public void purge(AgentInfo agent)
@Deprecated public void purge()
public void registerData(KeyValueData kvd)
public void registerClass(Class clazz)
public void addDataProviderDictionaryListener(DataProviderDictionaryService.DataProviderDictionaryListener listener)
public void removeDataProviderDictionaryListener(DataProviderDictionaryService.DataProviderDictionaryListener listener)
public Bus getBus()
BusMessagePreProcessorgetBus in interface BusMessagePreProcessorpublic BusMessage preProcessMessage(BusMessage msg)
BusMessagePreProcessorpreProcessMessage in interface BusMessagePreProcessormsg - The incoming BusMessagepublic final DataProviderDictionary waitForAgentDictionary(AgentInfo agentInfo, long timeout, TimeUnit unit) throws InterruptedException
InterruptedExceptionCopyright © 2023 LSST. All rights reserved.