Package com.fluxtion.generator.model
Class SimpleEventProcessorModel
java.lang.Object
com.fluxtion.generator.model.SimpleEventProcessorModel
public class SimpleEventProcessorModel
extends java.lang.Object
A class defining the meta-data for the SEP.This class can be introspected
after generateMetaModel() has been called and used for code generation.
- Author:
- Greg Higgins
-
Constructor Summary
Constructors Constructor Description SimpleEventProcessorModel(TopologicallySortedDependecyGraph dependencyGraph)
SimpleEventProcessorModel(TopologicallySortedDependecyGraph dependencyGraph, java.util.Map<java.lang.Object,java.lang.Integer> filterMap)
SimpleEventProcessorModel(TopologicallySortedDependecyGraph dependencyGraph, java.util.Map<java.lang.Object,java.lang.Integer> filterMap, java.util.Map<java.lang.Object,java.lang.String> nodeClassMap)
-
Method Summary
Modifier and Type Method Description java.util.List<java.lang.String>
beanProperties(java.lang.Object field)
java.util.List<Field.MappedField>
constructorArgs(java.lang.Object field)
void
generateMetaModel()
generates the SEP model.void
generateMetaModel(boolean supportDirtyFiltering)
java.util.List<CbMethodHandle>
getBatchEndMethods()
java.util.List<CbMethodHandle>
getBatchPauseMethods()
java.util.Map<Field,DirtyFlag>
getDirtyFieldMap()
DirtyFlag
getDirtyFlagForNode(java.lang.Object node)
DirtyFlag
getDirtyFlagForUpdateCb(CbMethodHandle cbHandle)
java.util.Map<java.lang.Class,java.util.Map<com.fluxtion.builder.generation.FilterDescription,java.util.List<CbMethodHandle>>>
getDispatchMap()
java.util.List<CbMethodHandle>
getEventEndMethods()
Field
getFieldForInstance(java.lang.Object object)
java.util.List<com.fluxtion.builder.generation.FilterDescription>
getFilterDescriptionList()
java.util.Set<java.lang.Class<?>>
getImportClasses()
java.util.List<CbMethodHandle>
getInitialiseMethods()
java.lang.String
getMappedClass(java.lang.String className)
java.util.List<Field>
getNodeFields()
java.util.Collection<DirtyFlag>
getNodeGuardConditions(CbMethodHandle cb)
Provides a list of guard conditions for a node, but only if supportDirtyFiltering is configured and all of the parents of the node support the dirty flag.If any parent does not support the dirty flag then the node updated method will always be called after a parent has been notified of an event.java.util.Collection<DirtyFlag>
getNodeGuardConditions(java.lang.Object node)
Provides a list of guard conditions for a node, but only if supportDirtyFiltering is configured and all of the parents of the node support the dirty flag.java.util.List<Field>
getNodeRegistrationListenerFields()
java.util.Map<java.lang.Object,java.util.List<CbMethodHandle>>
getParentUpdateListenerMethodMap()
java.util.Map<java.lang.Class,java.util.Map<com.fluxtion.builder.generation.FilterDescription,java.util.List<CbMethodHandle>>>
getPostDispatchMap()
java.util.List<CbMethodHandle>
getTearDownMethods()
java.util.List<Field>
getTopologigcallySortedNodeFields()
-
Constructor Details
-
SimpleEventProcessorModel
public SimpleEventProcessorModel(TopologicallySortedDependecyGraph dependencyGraph) throws java.lang.Exception- Throws:
java.lang.Exception
-
SimpleEventProcessorModel
public SimpleEventProcessorModel(TopologicallySortedDependecyGraph dependencyGraph, java.util.Map<java.lang.Object,java.lang.Integer> filterMap) throws java.lang.Exception- Throws:
java.lang.Exception
-
SimpleEventProcessorModel
public SimpleEventProcessorModel(TopologicallySortedDependecyGraph dependencyGraph, java.util.Map<java.lang.Object,java.lang.Integer> filterMap, java.util.Map<java.lang.Object,java.lang.String> nodeClassMap) throws java.lang.Exception- Throws:
java.lang.Exception
-
-
Method Details
-
generateMetaModel
public void generateMetaModel() throws java.lang.Exceptiongenerates the SEP model.- Throws:
java.lang.Exception
- exception during model generation
-
generateMetaModel
public void generateMetaModel(boolean supportDirtyFiltering) throws java.lang.Exception- Throws:
java.lang.Exception
-
constructorArgs
-
beanProperties
public java.util.List<java.lang.String> beanProperties(java.lang.Object field) -
getDirtyFlagForNode
-
getNodeGuardConditions
Provides a list of guard conditions for a node, but only if supportDirtyFiltering is configured and all of the parents of the node support the dirty flag. If any parent, direct or indirect does not support the dirty flag then the node updated method will always be called after a parent has been notified of an event. Parents can be traced all the way to the root for dirty support, effectively inheriting dirty support down the call tree.- Parameters:
node
- the node to introspect- Returns:
- collection of dirty flags that guard the node
-
getNodeGuardConditions
Provides a list of guard conditions for a node, but only if supportDirtyFiltering is configured and all of the parents of the node support the dirty flag.If any parent does not support the dirty flag then the node updated method will always be called after a parent has been notified of an event.- Parameters:
cb
-- Returns:
- collection of dirty flags that guard the node
-
getDirtyFlagForUpdateCb
-
getFieldForInstance
-
getMappedClass
public java.lang.String getMappedClass(java.lang.String className) -
getNodeFields
-
getTopologigcallySortedNodeFields
-
getNodeRegistrationListenerFields
-
getInitialiseMethods
-
getTearDownMethods
-
getBatchEndMethods
-
getBatchPauseMethods
-
getEventEndMethods
-
getDispatchMap
public java.util.Map<java.lang.Class,java.util.Map<com.fluxtion.builder.generation.FilterDescription,java.util.List<CbMethodHandle>>> getDispatchMap() -
getPostDispatchMap
public java.util.Map<java.lang.Class,java.util.Map<com.fluxtion.builder.generation.FilterDescription,java.util.List<CbMethodHandle>>> getPostDispatchMap() -
getParentUpdateListenerMethodMap
public java.util.Map<java.lang.Object,java.util.List<CbMethodHandle>> getParentUpdateListenerMethodMap() -
getDirtyFieldMap
-
getFilterDescriptionList
public java.util.List<com.fluxtion.builder.generation.FilterDescription> getFilterDescriptionList() -
getImportClasses
public java.util.Set<java.lang.Class<?>> getImportClasses()
-