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 org.apache.solr.common.util.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​(CoreAdminHandler.CallInfo it)
                     throws Exception
        Specified by:
        execute in interface CoreAdminHandler.CoreAdminOp
        Parameters:
        it - request/response object

        If the request is invalid throw a SolrException with SolrException.ErrorCode.BAD_REQUEST ( 400 ) If the execution of the command fails throw a SolrException with SolrException.ErrorCode.SERVER_ERROR ( 500 )

        Any non-SolrException's are wrapped at a higher level as a SolrException with SolrException.ErrorCode.SERVER_ERROR.

        Throws:
        Exception