Class JcrDatastoreManager
- java.lang.Object
-
- org.silverpeas.core.persistence.jcr.JcrDatastoreManager
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JcrDatastoreManager.DatastorePathView
Some data about the Path of the JCR DataStore.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
forceGC()
Forces the JCR datastore garbage collector to run.static JcrDatastoreManager
get()
Optional<JcrDatastoreTaskMonitor>
getCurrentTask()
Gets the current running task if any.JcrDatastoreManager.DatastorePathView
getDatastorePathView()
Gets a view upon the JCR Datastore path.Optional<JcrDatastoreTaskMonitor>
getPreviousTask()
Gets the previous ran task if any.boolean
isRunningTask()
Indicates if a task is currently running.void
notifyDataSave()
Call this method to indicate to this manager that data has been saved into repository.
-
-
-
Method Detail
-
get
public static JcrDatastoreManager get()
-
getPreviousTask
public Optional<JcrDatastoreTaskMonitor> getPreviousTask()
Gets the previous ran task if any.- Returns:
- the optional running
JcrDatastoreTaskMonitor
instance.
-
getCurrentTask
public Optional<JcrDatastoreTaskMonitor> getCurrentTask()
Gets the current running task if any.- Returns:
- the optional running
JcrDatastoreTaskMonitor
instance.
-
notifyDataSave
public void notifyDataSave()
Call this method to indicate to this manager that data has been saved into repository.This will perform after a delay of non use of the JCR a treatment of data cleaning.
-
forceGC
public void forceGC()
Forces the JCR datastore garbage collector to run.
-
getDatastorePathView
public JcrDatastoreManager.DatastorePathView getDatastorePathView()
Gets a view upon the JCR Datastore path.- Returns:
- a
JcrDatastoreManager.DatastorePathView
instance.
-
isRunningTask
public boolean isRunningTask()
Indicates if a task is currently running.- Returns:
- true is running, false otherwise.
-
-