Package org.apache.jackrabbit.oak.run
Class FrozenNodeRefsByScanningCommand
- java.lang.Object
-
- org.apache.jackrabbit.oak.run.FrozenNodeRefsByScanningCommand
-
- All Implemented Interfaces:
Command
public class FrozenNodeRefsByScanningCommand extends Object implements Command
Scans and lists all references to nt:frozenNode and returns an exit code of 1 if any are found (0 otherwise).This variant does a *very expensive repository scan* for all properties formatted as uuid ( LIKE \"________-____-____-____-____________\" ) and checking if any reference points to an nt:frozenNode (under /jcr:system/jcr:versionStorage at depth > 7).
Note that any property with uuid that cannot be resolved will *not be reported*, as that is a legitimate use case of uuid property use. Only uuids that resolve will be analysed.
Example:
java -mx4g -jar oak-run-*.jar frozennoderefsbyscanning mongodb://localhost/<dbname> -user=admin -password=admin
-
-
Constructor Summary
Constructors Constructor Description FrozenNodeRefsByScanningCommand()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(String... args)
static Session
openSession(NodeStore nodeStore, String workspaceName, String user, String password)
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
openSession
public static Session openSession(NodeStore nodeStore, String workspaceName, String user, String password) throws RepositoryException
- Throws:
RepositoryException
-
-