Class AbstractCheckpointMBean

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract void collectCheckpoints​(javax.management.openmbean.TabularDataSupport tab)
      Called to collect the tabular data for the checkpoints.
      java.util.Date getOldestCheckpointCreationDate()  
      abstract long getOldestCheckpointCreationTimestamp()  
      javax.management.openmbean.TabularData listCheckpoints()
      List the checkpoints that are currently present along with its id, creation time and expiry time.
      protected javax.management.openmbean.CompositeDataSupport toCompositeData​(java.lang.String id, java.lang.String created, java.lang.String expires, java.util.Map<java.lang.String,​java.lang.String> properties)
      Utility method for converting the fields associated with a checkpoint to the composite data format.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractCheckpointMBean

        public AbstractCheckpointMBean()
    • Method Detail

      • collectCheckpoints

        protected abstract void collectCheckpoints​(javax.management.openmbean.TabularDataSupport tab)
                                            throws javax.management.openmbean.OpenDataException
        Called to collect the tabular data for the checkpoints. Each checkpoint should be represented by a single row in tab. Implementors should use the toCompositeData(java.lang.String, java.lang.String, java.lang.String, java.util.Map<java.lang.String, java.lang.String>) utility method for converting the individual fields associated with a checkpoint into the correct composite data format.
        Parameters:
        tab -
        Throws:
        javax.management.openmbean.OpenDataException
      • listCheckpoints

        public javax.management.openmbean.TabularData listCheckpoints()
        Description copied from interface: CheckpointMBean
        List the checkpoints that are currently present along with its id, creation time and expiry time.
        Specified by:
        listCheckpoints in interface CheckpointMBean
        Returns:
      • toCompositeData

        protected final javax.management.openmbean.CompositeDataSupport toCompositeData​(java.lang.String id,
                                                                                        java.lang.String created,
                                                                                        java.lang.String expires,
                                                                                        java.util.Map<java.lang.String,​java.lang.String> properties)
                                                                                 throws javax.management.openmbean.OpenDataException
        Utility method for converting the fields associated with a checkpoint to the composite data format.
        Parameters:
        id - id of the checkpoint
        created - creation data of the checkpoint
        expires - expiry data of the checkpoint
        Returns:
        composite data representation of the fields associated with the checkpoint
        Throws:
        javax.management.openmbean.OpenDataException