Class ProcessingPersistenceContainer

  • All Implemented Interfaces:
    java.io.Serializable

    public class ProcessingPersistenceContainer
    extends java.lang.Object
    implements java.io.Serializable
    Implements a processing persistence container.
    See Also:
    Serialized Form
    • 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 class
        parameterList - the parameter list
        processingPersistence - the processing persistence
        processStatus - the process status
        processingUnitContext - the processing context.
        processingStatusType - the process status type
        processStatusMessageList - 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:
        hashCode in class java.lang.Object
        See Also:
        Object.hashCode()
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
        See Also:
        Object.equals(java.lang.Object)