You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2019/07/26 18:26:00 UTC

[jira] [Commented] (SOLR-13650) Support for named global classloaders

    [ https://issues.apache.org/jira/browse/SOLR-13650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16894037#comment-16894037 ] 

ASF subversion and git services commented on SOLR-13650:
--------------------------------------------------------

Commit 24039e6f80685c768c1b08d46a0f71c033fe213b in lucene-solr's branch refs/heads/jira/SOLR-13650 from Noble Paul
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=24039e6 ]

SOLR-13650: support for named packages


> Support for named global classloaders
> -------------------------------------
>
>                 Key: SOLR-13650
>                 URL: https://issues.apache.org/jira/browse/SOLR-13650
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Noble Paul
>            Priority: Major
>
> {code:json}
> curl -X POST -H 'Content-type:application/json' --data-binary '
> {
>   "add-package": {
>        "name": "my-package" ,
>       "url" : "http://host:port/url/of/jar",
>       "sha512":"<the-sha512>"
>   }
> }' http://localhost:8983/api/cluster
> {code}
> 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 {{"package" : "my-package"}}.
> eg:
> {code:json}
> curl -X POST -H 'Content-type:application/json' --data-binary '
> {
>   "create-searchcomponent": {
>       "name": "my-searchcomponent" ,
>       "class" : "my.path.to.ClassName",
>      "package" : "my-package"
>   }
> }' http://localhost:8983/api/c/mycollection/config 
> {code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org