Class RepositoryManager

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull javax.management.openmbean.CompositeData cancelRevisionGC()
      Cancel a running revision garbage collection operation.
      @NotNull javax.management.openmbean.CompositeData cancelRevisionGCForRole​(java.lang.String role)
      Cancel a running revision garbage collection operation for a given role.
      java.lang.String checkpoint​(long lifetime)
      Creates a new checkpoint of the latest root of the tree.
      javax.management.openmbean.CompositeData getBackupStatus()
      Backup status
      javax.management.openmbean.CompositeData getDataStoreGCStatus()
      Data store garbage collection status
      java.lang.String getName()  
      javax.management.openmbean.CompositeData getPropertyIndexAsyncReindexStatus()
      Asynchronous Property Index reindexing status
      javax.management.openmbean.CompositeData getRestoreStatus()
      Restore status
      javax.management.openmbean.CompositeData getRevisionGCStatus()
      Revision garbage collection status
      @NotNull javax.management.openmbean.CompositeData getRevisionGCStatusForRole​(java.lang.String role)
      Revision garbage collection status for a given role.
      javax.management.openmbean.TabularData refreshAllSessions()
      Refresh all currently open sessions.
      javax.management.openmbean.CompositeData startBackup()
      Initiate a backup operation.
      javax.management.openmbean.CompositeData startDataStoreGC​(boolean markOnly)
      Initiate a data store garbage collection operation
      javax.management.openmbean.CompositeData startPropertyIndexAsyncReindex()
      Initiate a reindex operation for the property indexes marked for reindexing
      javax.management.openmbean.CompositeData startRestore()
      Initiate a restore operation.
      javax.management.openmbean.CompositeData startRevisionGC()
      Initiate a revision garbage collection operation
      javax.management.openmbean.CompositeData startRevisionGCForRole​(java.lang.String role)
      Initiate a revision garbage collection operation
      • Methods inherited from class javax.management.StandardMBean

        cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
      • Methods inherited from class java.lang.Object

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

      • RepositoryManager

        public RepositoryManager​(@NotNull
                                 @NotNull Whiteboard whiteboard)
    • Method Detail

      • getName

        public java.lang.String getName()
      • getBackupStatus

        public javax.management.openmbean.CompositeData getBackupStatus()
        Description copied from interface: RepositoryManagementMBean
        Backup status
        Specified by:
        getBackupStatus in interface RepositoryManagementMBean
        Returns:
        the status of the ongoing operation or if none the terminal status of the last operation or Status not available if none.
      • getRestoreStatus

        public javax.management.openmbean.CompositeData getRestoreStatus()
        Description copied from interface: RepositoryManagementMBean
        Restore status
        Specified by:
        getRestoreStatus in interface RepositoryManagementMBean
        Returns:
        the status of the ongoing operation or if none the terminal status of the last operation or Status not available if none.
      • startDataStoreGC

        public javax.management.openmbean.CompositeData startDataStoreGC​(boolean markOnly)
        Description copied from interface: RepositoryManagementMBean
        Initiate a data store garbage collection operation
        Specified by:
        startDataStoreGC in interface RepositoryManagementMBean
        Parameters:
        markOnly - whether to only mark references and not sweep in the mark and sweep operation.
        Returns:
        the status of the operation right after it was initiated
      • getDataStoreGCStatus

        public javax.management.openmbean.CompositeData getDataStoreGCStatus()
        Description copied from interface: RepositoryManagementMBean
        Data store garbage collection status
        Specified by:
        getDataStoreGCStatus in interface RepositoryManagementMBean
        Returns:
        the status of the ongoing operation or if none the terminal status of the last operation or Status not available if none.
      • startRevisionGC

        public javax.management.openmbean.CompositeData startRevisionGC()
        Description copied from interface: RepositoryManagementMBean
        Initiate a revision garbage collection operation
        Specified by:
        startRevisionGC in interface RepositoryManagementMBean
        Returns:
        the status of the operation right after it was initiated
      • startRevisionGCForRole

        public javax.management.openmbean.CompositeData startRevisionGCForRole​(java.lang.String role)
        Description copied from interface: RepositoryManagementMBean
        Initiate a revision garbage collection operation
        Specified by:
        startRevisionGCForRole in interface RepositoryManagementMBean
        Returns:
        the status of the operation right after it was initiated
      • cancelRevisionGC

        @NotNull
        public @NotNull javax.management.openmbean.CompositeData cancelRevisionGC()
        Description copied from interface: RepositoryManagementMBean
        Cancel a running revision garbage collection operation. Does nothing if revision garbage collection is not running.
        Specified by:
        cancelRevisionGC in interface RepositoryManagementMBean
        Returns:
        the status of the operation right after it was initiated
      • cancelRevisionGCForRole

        @NotNull
        public @NotNull javax.management.openmbean.CompositeData cancelRevisionGCForRole​(java.lang.String role)
        Description copied from interface: RepositoryManagementMBean
        Cancel a running revision garbage collection operation for a given role. Does nothing if revision garbage collection is not running.
        Specified by:
        cancelRevisionGCForRole in interface RepositoryManagementMBean
        Returns:
        the status of the operation right after it was initiated
      • getRevisionGCStatus

        public javax.management.openmbean.CompositeData getRevisionGCStatus()
        Description copied from interface: RepositoryManagementMBean
        Revision garbage collection status
        Specified by:
        getRevisionGCStatus in interface RepositoryManagementMBean
        Returns:
        the status of the ongoing operation or if none the terminal status of the last operation or Status not available if none.
      • getRevisionGCStatusForRole

        @NotNull
        public @NotNull javax.management.openmbean.CompositeData getRevisionGCStatusForRole​(java.lang.String role)
        Description copied from interface: RepositoryManagementMBean
        Revision garbage collection status for a given role.
        Specified by:
        getRevisionGCStatusForRole in interface RepositoryManagementMBean
        Returns:
        the status of the ongoing operation or if none the terminal status of the last operation or Status not available if none.
      • checkpoint

        public java.lang.String checkpoint​(long lifetime)
        Description copied from interface: RepositoryManagementMBean
        Creates a new checkpoint of the latest root of the tree. The checkpoint remains valid for at least as long as requested and allows that state of the repository to be retrieved using the returned opaque string reference.
        Specified by:
        checkpoint in interface RepositoryManagementMBean
        Parameters:
        lifetime - time (in milliseconds, > 0) that the checkpoint should remain available
        Returns:
        string reference of this checkpoint or null if the checkpoint could not be set.
      • startPropertyIndexAsyncReindex

        public javax.management.openmbean.CompositeData startPropertyIndexAsyncReindex()
        Description copied from interface: RepositoryManagementMBean
        Initiate a reindex operation for the property indexes marked for reindexing
        Specified by:
        startPropertyIndexAsyncReindex in interface RepositoryManagementMBean
        Returns:
        the status of the operation right after it was initiated
      • getPropertyIndexAsyncReindexStatus

        public javax.management.openmbean.CompositeData getPropertyIndexAsyncReindexStatus()
        Description copied from interface: RepositoryManagementMBean
        Asynchronous Property Index reindexing status
        Specified by:
        getPropertyIndexAsyncReindexStatus in interface RepositoryManagementMBean
        Returns:
        the status of the ongoing operation or if none the terminal status of the last operation or Status not available if none.
      • refreshAllSessions

        public javax.management.openmbean.TabularData refreshAllSessions()
        Description copied from interface: RepositoryManagementMBean
        Refresh all currently open sessions. Warning: this operation might be disruptive to the owner of the affected sessions
        Specified by:
        refreshAllSessions in interface RepositoryManagementMBean