Package org.yamcs

Class Processor

  • All Implemented Interfaces:
    com.google.common.util.concurrent.Service

    public class Processor
    extends com.google.common.util.concurrent.AbstractService
    This class helps keeping track of the different objects used in a Yamcs Processor - i.e. all the objects required to have a TM/TC processing chain (either realtime or playback).
    • Method Detail

      • getStreamParameterSender

        public StreamParameterSender getStreamParameterSender()
        If recording to the archive initial values and local parameters is enabled, this class can be used to do it. Otherwise it will return null.
        Returns:
        the stream parameter sender that can be used to send data on the PROC_PARAMETERS_STREAM stream to be recorded in the archive
      • doStart

        public void doStart()
        starts processing by invoking the start method for all the associated components
        Specified by:
        doStart in class com.google.common.util.concurrent.AbstractService
      • pause

        public void pause()
      • resume

        public void resume()
      • seek

        public void seek​(long instant)
      • changeSpeed

        public void changeSpeed​(org.yamcs.protobuf.Yamcs.ReplaySpeed speed)
      • getCommandReleaser

        public CommandReleaser getCommandReleaser()
        Returns:
        the tcUplinker
      • getTmPacketProvider

        public TmPacketProvider getTmPacketProvider()
        Returns:
        the tmPacketProvider
      • getName

        public String getName()
      • getType

        public String getType()
        Returns:
        the type
      • getCreator

        public String getCreator()
      • setCreator

        public void setCreator​(String creator)
      • getConnectedClients

        public int getConnectedClients()
      • disconnect

        public void disconnect​(ConnectedClient s)
        Disconnects a client from this processor. If the processor has no more clients, quit.
      • doStop

        public 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. Once it is closed, you can create a processor with the same name which will make it maybe a bit confusing :(
        Specified by:
        doStop in class com.google.common.util.concurrent.AbstractService
      • addProcessorListener

        public static void addProcessorListener​(ProcessorListener processorListener)
      • removeProcessorListener

        public static void removeProcessorListener​(ProcessorListener processorListener)
      • isPersistent

        public boolean isPersistent()
      • setPersistent

        public void setPersistent​(boolean systemSession)
      • isSynchronous

        public boolean isSynchronous()
      • hasCommanding

        public boolean hasCommanding()
      • setSynchronous

        public void setSynchronous​(boolean synchronous)
      • isReplay

        public boolean isReplay()
      • getReplayRequest

        public org.yamcs.protobuf.Yamcs.ReplayRequest getReplayRequest()
        valid only if isArchiveReplay returns true
        Returns:
      • getReplayState

        public org.yamcs.protobuf.Yamcs.ReplayStatus.ReplayState getReplayState()
        valid only if isArchiveReplay returns true
        Returns:
      • getState

        public org.yamcs.protobuf.ServiceState getState()
      • getInstance

        public String getInstance()
        Returns:
        the yamcs instance this processor is part of
      • getXtceDb

        public XtceDb getXtceDb()
      • hasAlarmChecker

        public boolean hasAlarmChecker()
      • hasAlarmServer

        public boolean hasAlarmServer()
      • getCurrentTime

        public 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
        Returns:
      • quit

        public void quit()
      • start

        public void start()
      • notifyStateChange

        public void notifyStateChange()
      • getProcessorData

        public ProcessorData getProcessorData()
        Returns the processor data used to store processor specific calibration, alarms
        Returns:
        processor specific data
      • isSubscribeAll

        public boolean isSubscribeAll()
      • recordLocalValues

        public boolean recordLocalValues()
      • toString

        public String toString()
        Overrides:
        toString in class com.google.common.util.concurrent.AbstractService