Enum CoreAdminOperation

    • Method Detail

      • values

        public static CoreAdminOperation[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (CoreAdminOperation c : CoreAdminOperation.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CoreAdminOperation valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getCoreStatus

        public static NamedList<Object> getCoreStatus​(CoreContainer cores,
                                                      String cname,
                                                      boolean isIndexInfoNeeded)
                                               throws IOException
        Returns the core status for a particular core.
        Parameters:
        cores - - the enclosing core container
        cname - - the core to return
        isIndexInfoNeeded - - add what may be expensive index information. NOT returned if the core is not loaded
        Returns:
        - a named list of key/value pairs from the core.
        Throws:
        IOException - - LukeRequestHandler can throw an I/O exception
      • execute

        public void execute​(org.apache.solr.handler.admin.CoreAdminHandler.CallInfo it)
                     throws Exception
        Throws:
        Exception