Class ProcessingPersistenceUtil


  • public final class ProcessingPersistenceUtil
    extends java.lang.Object
    Defines the procesing persistence utility.
    • Method Detail

      • 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