Class FrozenNodeRefsUsingIndexCommand

  • All Implemented Interfaces:
    Command

    public class FrozenNodeRefsUsingIndexCommand
    extends java.lang.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 uses the /oak:index/reference by scanning through that list (only) and checking if any reference points to an nt:frozenNode (under /jcr:system/jcr:versionStorage at depth > 7).

    Example:

     java -mx4g -jar oak-run-*.jar frozennoderefsusingindex mongodb://localhost/<dbname>
     
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String NAME  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute​(java.lang.String... args)  
      • Methods inherited from class java.lang.Object

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

      • FrozenNodeRefsUsingIndexCommand

        public FrozenNodeRefsUsingIndexCommand()
    • Method Detail

      • execute

        public void execute​(java.lang.String... args)
                     throws java.lang.Exception
        Specified by:
        execute in interface Command
        Throws:
        java.lang.Exception