Noble Paul created SOLR-13650:
---------------------------------

             Summary: Support for named global classloaders
                 Key: SOLR-13650
                 URL: https://issues.apache.org/jira/browse/SOLR-13650
             Project: Solr
          Issue Type: Improvement
      Security Level: Public (Default Security Level. Issues are Public)
            Reporter: Noble Paul


{code:json}
curl -X POST -H 'Content-type:application/json' --data-binary '
{
  "add-runtimelib": {
     "package": "my-package",
      "name": "jar-name" ,
      "url" : "http://host:port/url/of/jar";,
      "sha512":"<the-sha512>"
  }
}' http://localhost:8983/api/cluster
{code:json}

This means that Solr creates a globally accessible classloader with a name 
{{my-package}} which contains all the jars of that package. 
A component should be able to use the package by using the {{"runtimeLib" : 
"my-package"}}.
eg:

curl -X POST -H 'Content-type:application/json' --data-binary '
{
  "create-searchcomponent": {
      "name": "my-searchcomponent" ,
      "class" : "my.path.to.ClassName",
     "runtimeLib" : "my-package"
  }
}' http://localhost:8983/api/c/mycollection/config 



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to