Package org.yamcs
Class ProcessorFactory
java.lang.Object
org.yamcs.ProcessorFactory
Used to create processors as defined in processor.yaml
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ProcessorCreate a processor with the give name, type, creator and spec type is used to load the tm, parameter and command classes as defined in processor.yaml spec if not null is passed as an extra argument to those classes - it is used for example when creating replay processors to pass on the data that has to be replayed. should probably be changed from string to some sort of object.static Processorcreate(String instance, String name, String type, List<ProcessorServiceWithConfig> serviceList, String creator, ProcessorConfig config, Object spec) Create a Processor by specifying the service.static Processorcreate(String yamcsInstance, String name, ProcessorService... services) creates a processor with the services already instantiated. used from unit testsstatic Processorcreate(String yamcsInstance, String name, ProcessorServiceWithConfig... serviceList) creates a processor with the services already instantiated. used from unit testsstatic Map<String,ProcessorConfig> Returns the processor types as defined inprocessor.yaml
-
Constructor Details
-
ProcessorFactory
public ProcessorFactory()
-
-
Method Details
-
getProcessorTypes
Returns the processor types as defined inprocessor.yaml -
create
public static Processor create(String yamcsInstance, String name, String type, String creator, Object spec) throws ProcessorException, ConfigurationException, ValidationException, InitException Create a processor with the give name, type, creator and spec type is used to load the tm, parameter and command classes as defined in processor.yaml spec if not null is passed as an extra argument to those classes - it is used for example when creating replay processors to pass on the data that has to be replayed. should probably be changed from string to some sort of object.- Parameters:
yamcsInstance-name-type-creator-spec-- Returns:
- a new processor
- Throws:
ProcessorExceptionConfigurationExceptionValidationExceptionInitException
-
create
public static Processor create(String instance, String name, String type, List<ProcessorServiceWithConfig> serviceList, String creator, ProcessorConfig config, Object spec) throws ProcessorException, ConfigurationException, InitException, ValidationException Create a Processor by specifying the service.- Parameters:
instance-name-type-creator-config-- Returns:
- Throws:
ProcessorExceptionConfigurationExceptionValidationExceptionInitException
-
create
public static Processor create(String yamcsInstance, String name, ProcessorService... services) throws ProcessorException, ConfigurationException, InitException, ValidationException creates a processor with the services already instantiated. used from unit tests -
create
public static Processor create(String yamcsInstance, String name, ProcessorServiceWithConfig... serviceList) throws ProcessorException, ConfigurationException, InitException, ValidationException creates a processor with the services already instantiated. used from unit tests
-