public class ManagementService extends Object implements ProcessorListener
Notable examples of downstream listeners are the MBeanServer, the ActiveMQ-business, and subscribed websocket clients.
public static void setup(boolean jmxEnabled)
throws NotCompliantMBeanException,
InstanceAlreadyExistsException,
MBeanRegistrationException,
MalformedObjectNameException,
NullPointerException
public static ManagementService getInstance()
public void shutdown()
public void registerService(String instance, String serviceName, com.google.common.util.concurrent.Service service)
public void registerLink(String instance, String name, String streamName, String spec, Link link)
public CommandQueueManager getQueueManager(String instance, String processorName) throws YamcsException
YamcsExceptionpublic List<CommandQueueManager> getQueueManagers()
public void registerYProcessor(YProcessor yproc)
public void unregisterYProcessor(YProcessor yproc)
public int registerClient(String instance, String yprocName, ProcessorClient client)
public void unregisterClient(int id)
public void createProcessor(YamcsManagement.ProcessorManagementRequest cr, AuthenticationToken authToken) throws YamcsException
YamcsExceptionpublic void connectToProcessor(YamcsManagement.ProcessorManagementRequest cr, AuthenticationToken usertoken) throws YamcsException
YamcsExceptionpublic void registerCommandQueueManager(String instance, String yprocName, CommandQueueManager cqm)
public List<CommandQueueManager> getCommandQueueManagers()
public CommandQueueManager getCommandQueueManager(YProcessor processor)
public void enableLink(String instance, String name) throws YamcsException
YamcsExceptionpublic void disableLink(String instance, String name) throws YamcsException
YamcsExceptionpublic boolean addManagementListener(ManagementListener l)
public boolean addLinkListener(LinkListener l)
public boolean removeManagementListener(ManagementListener l)
public boolean addCommandQueueListener(CommandQueueListener l)
public boolean removeCommandQueueListener(CommandQueueListener l)
public boolean removeLinkListener(LinkListener l)
public List<YamcsManagement.LinkInfo> getLinkInfo()
public YamcsManagement.LinkInfo getLinkInfo(String instance, String name)
public Set<YamcsManagement.ClientInfo> getClientInfo()
public Set<YamcsManagement.ClientInfo> getClientInfo(String username)
public YamcsManagement.ClientInfo getClientInfo(int clientId)
public void processorAdded(YProcessor processor)
processorAdded in interface ProcessorListenerpublic void processorClosed(YProcessor processor)
processorClosed in interface ProcessorListenerpublic void processorStateChanged(YProcessor processor)
processorStateChanged in interface ProcessorListenerCopyright © 2017 Space Applications Services. All rights reserved.