public class Processor
extends com.google.common.util.concurrent.AbstractService
| Constructor and Description |
|---|
Processor(String yamcsInstance,
String name,
String type,
String creator) |
| Modifier and Type | Method and Description |
|---|---|
static void |
addProcessorListener(ProcessorListener processorListener) |
void |
changeSpeed(Yamcs.ReplaySpeed speed) |
void |
connect(ProcessorClient s)
Increase with one the number of connected clients
|
static Processor |
connect(String yamcsInstance,
String name,
ProcessorClient s)
Increase with one the number of connected clients to the named processor and return the processor.
|
void |
disconnect(ProcessorClient s)
Disconnects a client from this processor.
|
void |
doStart()
starts processing by invoking the start method for all the associated components
|
void |
doStop()
Closes the processor by stoping the tm/pp and tc It can be that there are still clients connected, but they will
not get any data and new clients can not connect to these processors anymore.
|
static List<String> |
getAllProcessors()
returns a list of all processors names
|
CommandHistoryRequestManager |
getCommandHistoryManager() |
CommandHistoryPublisher |
getCommandHistoryPublisher() |
CommandingManager |
getCommandingManager() |
CommandReleaser |
getCommandReleaser() |
int |
getConnectedClients() |
ContainerRequestManager |
getContainerRequestManager() |
String |
getCreator() |
long |
getCurrentTime()
Returns the processor time
for realtime processors it is the mission time or simulation time for replay processors it is the replay time
|
ExecutorService |
getExecutor() |
static Processor |
getFirstProcessor(String yamcsInstance)
Returns the first register processor for the given instance or null if there is no processor registered.
|
String |
getInstance() |
static Processor |
getInstance(String yamcsInstance,
String name) |
String |
getName() |
ParameterCacheConfig |
getPameterCacheConfig() |
ParameterCache |
getParameterCache() |
ParameterRequestManager |
getParameterRequestManager() |
ProcessorData |
getProcessorData()
Returns the processor data used to store processor specific calibration, alarms
|
static Collection<Processor> |
getProcessors() |
static Collection<Processor> |
getProcessors(String instance) |
Yamcs.ReplayRequest |
getReplayRequest()
valid only if isArchiveReplay returns true
|
Yamcs.ReplayStatus.ReplayState |
getReplayState()
valid only if isArchiveReplay returns true
|
List<ServiceWithConfig> |
getServices() |
YamcsManagement.ServiceState |
getState() |
ScheduledThreadPoolExecutor |
getTimer() |
TmPacketProvider |
getTmPacketProvider() |
XtceTmProcessor |
getTmProcessor() |
String |
getType() |
XtceDb |
getXtceDb() |
boolean |
hasAlarmChecker() |
boolean |
hasAlarmServer() |
boolean |
hasCommanding() |
boolean |
isPersistent() |
boolean |
isReplay() |
boolean |
isSynchronous() |
void |
notifyStateChange() |
void |
pause() |
void |
quit() |
static void |
removeProcessorListener(ProcessorListener processorListener) |
void |
resume() |
void |
seek(long instant) |
void |
setCommandHistoryProvider(CommandHistoryProvider chp) |
void |
setCommandReleaser(CommandReleaser cr) |
void |
setCreator(String creator) |
void |
setPacketProvider(TmPacketProvider tpp) |
void |
setPersistent(boolean systemSession) |
void |
setSynchronous(boolean synchronous) |
void |
start() |
String |
toString() |
public Processor(String yamcsInstance, String name, String type, String creator) throws ProcessorException
ProcessorExceptionpublic void setPacketProvider(TmPacketProvider tpp)
public void setCommandReleaser(CommandReleaser cr)
public void setCommandHistoryProvider(CommandHistoryProvider chp)
public ExecutorService getExecutor()
public CommandHistoryPublisher getCommandHistoryPublisher()
public ParameterRequestManager getParameterRequestManager()
public ContainerRequestManager getContainerRequestManager()
public XtceTmProcessor getTmProcessor()
public void doStart()
doStart in class com.google.common.util.concurrent.AbstractServicepublic List<ServiceWithConfig> getServices()
public void pause()
public void resume()
public void seek(long instant)
public void changeSpeed(Yamcs.ReplaySpeed speed)
public CommandReleaser getCommandReleaser()
public TmPacketProvider getTmPacketProvider()
public String getName()
public String getType()
public String getCreator()
public void setCreator(String creator)
public int getConnectedClients()
public static Processor getFirstProcessor(String yamcsInstance)
yamcsInstance - - instance name for which the processor has to be returned.public static Processor connect(String yamcsInstance, String name, ProcessorClient s) throws ProcessorException
yamcsInstance - name - s - ProcessorExceptionpublic void connect(ProcessorClient s) throws ProcessorException
ProcessorExceptionpublic void disconnect(ProcessorClient s)
public static Collection<Processor> getProcessors()
public static Collection<Processor> getProcessors(String instance)
public void doStop()
doStop in class com.google.common.util.concurrent.AbstractServicepublic static void addProcessorListener(ProcessorListener processorListener)
public static void removeProcessorListener(ProcessorListener processorListener)
public boolean isPersistent()
public void setPersistent(boolean systemSession)
public boolean isSynchronous()
public boolean hasCommanding()
public void setSynchronous(boolean synchronous)
public boolean isReplay()
public Yamcs.ReplayRequest getReplayRequest()
public Yamcs.ReplayStatus.ReplayState getReplayState()
public YamcsManagement.ServiceState getState()
public CommandingManager getCommandingManager()
public String toString()
toString in class com.google.common.util.concurrent.AbstractServicepublic String getInstance()
public XtceDb getXtceDb()
public CommandHistoryRequestManager getCommandHistoryManager()
public boolean hasAlarmChecker()
public boolean hasAlarmServer()
public ScheduledThreadPoolExecutor getTimer()
public long getCurrentTime()
public void quit()
public void start()
public void notifyStateChange()
public static List<String> getAllProcessors()
public ParameterCacheConfig getPameterCacheConfig()
public ParameterCache getParameterCache()
public ProcessorData getProcessorData()
Copyright © 2018 Space Applications Services. All rights reserved.