Class ProcessingPersistenceUtil
- java.lang.Object
-
- com.github.toolarium.processing.engine.impl.util.ProcessingPersistenceUtil
-
public final class ProcessingPersistenceUtil extends java.lang.ObjectDefines the procesing persistence utility.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProcessingPersistenceUtilgetInstance()Get the instancebyte[]toByteArray(ProcessingExecuterPersistenceContainer processingExecuterPersistenceContainer)Convert the object into a byte arrayProcessingExecuterPersistenceContainertoProcessingExecuterPersistenceContainer(byte[] persistedState)Convert the object into a byte arrayjava.lang.StringtoString(byte[] persistedState)Get the persisted state as string
-
-
-
Method Detail
-
getInstance
public static ProcessingPersistenceUtil getInstance()
Get the instance- Returns:
- the instance
-
toByteArray
public byte[] toByteArray(ProcessingExecuterPersistenceContainer processingExecuterPersistenceContainer) throws com.github.toolarium.processing.unit.exception.ProcessingException
Convert the object into a byte array- Parameters:
processingExecuterPersistenceContainer- the processing executer persistence container- Returns:
- the byte array to persist
- Throws:
com.github.toolarium.processing.unit.exception.ProcessingException- In case the processing container can't be serialized properly
-
toProcessingExecuterPersistenceContainer
public ProcessingExecuterPersistenceContainer toProcessingExecuterPersistenceContainer(byte[] persistedState) throws com.github.toolarium.processing.unit.exception.ProcessingException
Convert the object into a byte array- Parameters:
persistedState- the persisted state- Returns:
- the object representation
- Throws:
com.github.toolarium.processing.unit.exception.ProcessingException- In case the processing container can't be de-serialized properly
-
toString
public java.lang.String toString(byte[] persistedState)
Get the persisted state as string- Parameters:
persistedState- the persisted state- Returns:
- the string re-presenation
-
-