Class Module
- java.lang.Object
-
- de.codecentric.reedelk.platform.module.Module
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classModule.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Module.Builderbuilder()DeSerializedModuledeserialize()voiderror(Exception exception)voiderror(Collection<Exception> exceptions)The transition to error state, depends on the previous state.Collection<Exception>errors()StringfilePath()Collection<Flow>flows()longid()voidinstalled()Stringname()voidresolve(Collection<String> resolvedComponents)Collection<String>resolvedComponents()voidstart(Collection<Flow> flows)ModuleStatestate()voidstop(Collection<Flow> flows)voidunresolve(Collection<String> unresolvedComponents, Collection<String> resolvedComponents)Collection<String>unresolvedComponents()Stringversion()
-
-
-
Method Detail
-
builder
public static Module.Builder builder()
-
id
public long id()
-
name
public String name()
-
version
public String version()
-
filePath
public String filePath()
-
unresolve
public void unresolve(Collection<String> unresolvedComponents, Collection<String> resolvedComponents)
-
resolve
public void resolve(Collection<String> resolvedComponents)
-
start
public void start(Collection<Flow> flows)
-
stop
public void stop(Collection<Flow> flows)
-
installed
public void installed()
-
error
public void error(Collection<Exception> exceptions)
The transition to error state, depends on the previous state. We MUST carry over information about resolvedComponents (when previous state is either Resolved or Stopped). This is required because a module MIGHT transition to Unresolved state from error when a component is unregistered.- Parameters:
exceptions- the exception/s which caused this module to transition to error state.- See Also:
ModuleResolveDependencies.run(de.codecentric.reedelk.platform.module.Module)
-
error
public void error(Exception exception)
-
flows
public Collection<Flow> flows()
-
errors
public Collection<Exception> errors()
-
resolvedComponents
public Collection<String> resolvedComponents()
- Specified by:
resolvedComponentsin interfaceState
-
unresolvedComponents
public Collection<String> unresolvedComponents()
- Specified by:
unresolvedComponentsin interfaceState
-
state
public ModuleState state()
-
deserialize
public DeSerializedModule deserialize()
-
-