Class CpeCheckpointImpl

    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        The Constant serialVersionUID.
        See Also:
        Constant Field Values
      • file

        private java.lang.String file
        The file.
      • time

        private java.lang.String time
        The time.
      • batch

        private int batch
        The batch.
      • XMLIZATION_INFO

        private static final XmlizationInfo XMLIZATION_INFO
        The Constant XMLIZATION_INFO.
    • Constructor Detail

      • CpeCheckpointImpl

        public CpeCheckpointImpl()
        Instantiates a new cpe checkpoint impl.
    • Method Detail

      • getFilePath

        public java.lang.String getFilePath()
        Description copied from interface: CpeCheckpoint
        Returns file where checkpoint information is stored
        Specified by:
        getFilePath in interface CpeCheckpoint
        Returns:
        - checkpoint file path
      • setFrequency

        public void setFrequency​(int aFrequency,
                                 boolean aTimeBased)
        Description copied from interface: CpeCheckpoint
        Sets frequency of checkpoints. Currently only time-based checkpointing is supported.
        Specified by:
        setFrequency in interface CpeCheckpoint
        Parameters:
        aFrequency - - number of millis between checkpoints
        aTimeBased - - true if checkpoint is based on time
      • convert2Number

        private int convert2Number​(java.lang.Object anObject)
        Convert 2 number.
        Parameters:
        anObject - the an object
        Returns:
        the int
      • getFrequency

        public int getFrequency()
        Description copied from interface: CpeCheckpoint
        Returns frequency of checkpoints.
        Specified by:
        getFrequency in interface CpeCheckpoint
        Returns:
        - number of millis between checkpoints
      • isTimeBased

        public boolean isTimeBased()
        Description copied from interface: CpeCheckpoint
        Returns true if frequency of checkpoints is time-based
        Specified by:
        isTimeBased in interface CpeCheckpoint
        Returns:
        true;
      • setBatchSize

        public void setBatchSize​(int aBatchSize)
        Specified by:
        setBatchSize in interface CpeCheckpoint
        Parameters:
        aBatchSize - the size of the batch
      • getXmlizationInfo

        protected XmlizationInfo getXmlizationInfo()
        Description copied from class: MetaDataObject_impl
        To be implemented by subclasses to return information describing how to represent this object in XML.
        Specified by:
        getXmlizationInfo in class MetaDataObject_impl
        Returns:
        information defining this object's XML representation
      • getBatch

        public int getBatch()
        Returns:
        the batch size
      • getFile

        public java.lang.String getFile()
        Gets the file.
        Returns:
        a file
      • getTime

        public java.lang.String getTime()
        Gets the time.
        Returns:
        a time
      • setBatch

        public void setBatch​(int i)
        Sets the batch.
        Parameters:
        i - the new batch
      • setFile

        public void setFile​(java.lang.String string)
        Sets the file.
        Parameters:
        string - the new file
      • setTime

        public void setTime​(java.lang.String i)
        Sets the time.
        Parameters:
        i - the new time