
public class TrendingClientService extends Object implements org.lsst.ccs.services.AgentService, org.lsst.ccs.ServiceLifecycle, org.lsst.ccs.messaging.AgentPresenceListener, org.lsst.ccs.framework.HasLifecycle
| Modifier and Type | Field and Description |
|---|---|
static String |
USES_TRENDING_SERVICE |
| Constructor and Description |
|---|
TrendingClientService() |
| Modifier and Type | Method and Description |
|---|---|
void |
build() |
void |
connected(org.lsst.ccs.bus.data.AgentInfo... agents) |
TrendingConnectionUtils |
createClientRequestUtils(String name,
String host,
int port)
Create a named ClientRequestUtils object given a fixed host/port combination.
|
void |
disconnecting(org.lsst.ccs.bus.data.AgentInfo agent) |
String |
getAgentServiceName() |
TrendingConnectionUtils |
getBusTrendingConnection()
Get one of the available TrendingConnections over the buses.
|
Set<String> |
getNamedTrendingConnections()
Get a list of available named client connections to the Trending rest server.
|
TrendingConnectionUtils |
getTrendingConnection(String name)
Get named Trending Connection.
|
void |
preStart() |
boolean |
startForAgent(org.lsst.ccs.bus.data.AgentInfo agentInfo) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitafterInit, preBuild, preInit, preShutdownpublic static final String USES_TRENDING_SERVICE
public String getAgentServiceName()
getAgentServiceName in interface org.lsst.ccs.services.AgentServicepublic boolean startForAgent(org.lsst.ccs.bus.data.AgentInfo agentInfo)
startForAgent in interface org.lsst.ccs.services.AgentServicepublic void build()
build in interface org.lsst.ccs.framework.HasLifecyclepublic void preStart()
preStart in interface org.lsst.ccs.ServiceLifecyclepublic void connected(org.lsst.ccs.bus.data.AgentInfo... agents)
connected in interface org.lsst.ccs.messaging.AgentPresenceListenerpublic void disconnecting(org.lsst.ccs.bus.data.AgentInfo agent)
disconnecting in interface org.lsst.ccs.messaging.AgentPresenceListenerpublic TrendingConnectionUtils createClientRequestUtils(String name, String host, int port)
name - The name for this custom connection to a rest server.host - The host on which the rest server is running.port - The port on which the reset server is running.This - method can throw unchecked exceptions form the underlying
classes if there is a failure in connecting to the trending
client. Users of this method must protect against this by
sorrounding this call in a try-catch block.public Set<String> getNamedTrendingConnections()
public TrendingConnectionUtils getTrendingConnection(String name)
public TrendingConnectionUtils getBusTrendingConnection()
Copyright © 2019 LSST. All rights reserved.