Class ProcessingPersistenceContainer
- java.lang.Object
-
- com.github.toolarium.processing.unit.runtime.runnable.ProcessingPersistenceContainer
-
- All Implemented Interfaces:
java.io.Serializable
public class ProcessingPersistenceContainer extends java.lang.Object implements java.io.SerializableImplements a processing persistence container.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProcessingPersistenceContainer(java.lang.Class<? extends IProcessingUnit> processingUnitClass, java.util.List<Parameter> parameterList, IProcessingPersistence processingPersistence, IProcessStatus processStatus, IProcessingUnitContext processingUnitContext, ProcessingStatusType processingStatusType, java.util.List<java.lang.String> processStatusMessageList)Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.List<Parameter>getParameterList()Gets the parameter listIProcessingPersistencegetProcessingPersistence()Gets the processing informationIProcessStatusgetProcessingStatus()Gets the process statusjava.util.List<java.lang.String>getProcessingStatusMessageList()Gets the process status message listProcessingStatusTypegetProcessingStatusType()Gets the process status typejava.lang.Class<? extends IProcessingUnit>getProcessingUnitClass()Get the processing unit classIProcessingUnitContextgetProcessingUnitContext()Gets the process unit contextinthashCode()static byte[]toByteArray(ProcessingPersistenceContainer processingPersistenceContainer)Convert the object into a byte arraystatic ProcessingPersistenceContainertoProcessingPersistenceContainer(byte[] persistedState)Convert the object into a byte array
-
-
-
Constructor Detail
-
ProcessingPersistenceContainer
public ProcessingPersistenceContainer(java.lang.Class<? extends IProcessingUnit> processingUnitClass, java.util.List<Parameter> parameterList, IProcessingPersistence processingPersistence, IProcessStatus processStatus, IProcessingUnitContext processingUnitContext, ProcessingStatusType processingStatusType, java.util.List<java.lang.String> processStatusMessageList)
Constructor- Parameters:
processingUnitClass- the processing unit classparameterList- the parameter listprocessingPersistence- the processing persistenceprocessStatus- the process statusprocessingUnitContext- the processing context.processingStatusType- the process status typeprocessStatusMessageList- the process status message list
-
-
Method Detail
-
getProcessingUnitClass
public java.lang.Class<? extends IProcessingUnit> getProcessingUnitClass()
Get the processing unit class- Returns:
- the processing unit class
-
getParameterList
public java.util.List<Parameter> getParameterList()
Gets the parameter list- Returns:
- the parameter list
-
getProcessingPersistence
public IProcessingPersistence getProcessingPersistence()
Gets the processing information- Returns:
- the processing information
-
getProcessingStatus
public IProcessStatus getProcessingStatus()
Gets the process status- Returns:
- the process status
-
getProcessingUnitContext
public IProcessingUnitContext getProcessingUnitContext()
Gets the process unit context- Returns:
- the process unit context
-
getProcessingStatusType
public ProcessingStatusType getProcessingStatusType()
Gets the process status type- Returns:
- the process status type
-
getProcessingStatusMessageList
public java.util.List<java.lang.String> getProcessingStatusMessageList()
Gets the process status message list- Returns:
- the process status message list
-
toByteArray
public static byte[] toByteArray(ProcessingPersistenceContainer processingPersistenceContainer) throws ProcessingException
Convert the object into a byte array- Parameters:
processingPersistenceContainer- the processing persistence container- Returns:
- the byte array to persist
- Throws:
ProcessingException- In case the processing container can't be serialized properly
-
toProcessingPersistenceContainer
public static ProcessingPersistenceContainer toProcessingPersistenceContainer(byte[] persistedState) throws ProcessingException
Convert the object into a byte array- Parameters:
persistedState- the persisted state- Returns:
- the object representation
- Throws:
ProcessingException- In case the processing container can't be de-serialized properly
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object- See Also:
Object.hashCode()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object- See Also:
Object.equals(java.lang.Object)
-
-