Package org.yamcs
Class ProcessorFactory
- java.lang.Object
-
- org.yamcs.ProcessorFactory
-
public class ProcessorFactory extends Object
Used to create processors as defined in processor.yaml
-
-
Constructor Summary
Constructors Constructor Description ProcessorFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Processorcreate(String yamcsInstance, String name, String type, String creator, Object spec)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.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 List<String>getProcessorTypes()Returns the processor types as defined in processor.yaml
-
-
-
Method Detail
-
getProcessorTypes
public static List<String> getProcessorTypes()
Returns the processor types as defined in processor.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
Create a Processor by specifying the service.- Parameters:
instance-name-type-creator-config-- Returns:
- Throws:
ProcessorExceptionConfigurationExceptionInitException
-
create
public static Processor create(String yamcsInstance, String name, ProcessorService... services) throws ProcessorException, ConfigurationException, InitException
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
creates a processor with the services already instantiated. used from unit tests
-
-