Package org.nuxeo.runtime.stream
Class StreamProcessorDescriptor
- java.lang.Object
-
- org.nuxeo.runtime.stream.StreamProcessorDescriptor
-
- All Implemented Interfaces:
Descriptor
public class StreamProcessorDescriptor extends Object implements Descriptor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStreamProcessorDescriptor.ComputationDescriptorstatic classStreamProcessorDescriptor.FilterDescriptorstatic classStreamProcessorDescriptor.PolicyDescriptorstatic classStreamProcessorDescriptor.StreamDescriptor
-
Field Summary
Fields Modifier and Type Field Description List<StreamProcessorDescriptor.ComputationDescriptor>computationsStringconfigstatic IntegerDEFAULT_CONCURRENCYStringdefaultCodecIntegerdefaultConcurrencybooleandefaultExternalIntegerdefaultPartitionsprotected ComputationPolicydefaultPolicyprotected booleanisEnabledClass<? extends StreamProcessorTopology>klassStringnameMap<String,String>optionsList<StreamProcessorDescriptor.PolicyDescriptor>policiesstatic StringRECOVERY_SKIP_FIRST_FAILURES_OPTIONprotected booleanstartList<StreamProcessorDescriptor.StreamDescriptor>streams-
Fields inherited from interface org.nuxeo.runtime.model.Descriptor
UNIQUE_DESCRIPTOR_ID
-
-
Constructor Summary
Constructors Constructor Description StreamProcessorDescriptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ComputationPolicygetComputationPolicy(StreamProcessorDescriptor.PolicyDescriptor policyDescriptor)ComputationPolicygetDefaultPolicy()StringgetId()The descriptor id, descriptors with same id are merged.ComputationPolicygetPolicy(String computationName)booleanisEnabled()booleanisStart()voidsetEnabled(boolean isEnabled)voidsetStart(boolean start)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.runtime.model.Descriptor
doesRemove, merge
-
-
-
-
Field Detail
-
RECOVERY_SKIP_FIRST_FAILURES_OPTION
public static String RECOVERY_SKIP_FIRST_FAILURES_OPTION
-
isEnabled
protected boolean isEnabled
-
start
protected boolean start
-
DEFAULT_CONCURRENCY
public static final Integer DEFAULT_CONCURRENCY
-
name
public String name
-
config
public String config
-
klass
public Class<? extends StreamProcessorTopology> klass
-
defaultConcurrency
public Integer defaultConcurrency
-
defaultPartitions
public Integer defaultPartitions
-
defaultCodec
public String defaultCodec
-
defaultExternal
public boolean defaultExternal
-
computations
public List<StreamProcessorDescriptor.ComputationDescriptor> computations
-
streams
public List<StreamProcessorDescriptor.StreamDescriptor> streams
-
policies
public List<StreamProcessorDescriptor.PolicyDescriptor> policies
-
defaultPolicy
protected ComputationPolicy defaultPolicy
-
-
Method Detail
-
getPolicy
public ComputationPolicy getPolicy(String computationName)
-
getComputationPolicy
protected ComputationPolicy getComputationPolicy(StreamProcessorDescriptor.PolicyDescriptor policyDescriptor)
-
getDefaultPolicy
public ComputationPolicy getDefaultPolicy()
-
isEnabled
public boolean isEnabled()
-
setEnabled
public void setEnabled(boolean isEnabled)
-
getId
public String getId()
Description copied from interface:DescriptorThe descriptor id, descriptors with same id are merged.To forbid multiple descriptors use UNIQUE_DESCRIPTOR_ID.
To forbid merge use a unique value, non-overriden
toString()for exemple.- Specified by:
getIdin interfaceDescriptor
-
isStart
public boolean isStart()
-
setStart
public void setStart(boolean start)
-
-