You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Jason Gerlowski (Jira)" <ji...@apache.org> on 2026/09/15 19:25:00 UTC

[jira] [Created] (SOLR-18448) Create model/POJO types for CLUSTERSTATUS output

Jason Gerlowski created SOLR-18448:
--------------------------------------

             Summary: Create model/POJO types for CLUSTERSTATUS output
                 Key: SOLR-18448
                 URL: https://issues.apache.org/jira/browse/SOLR-18448
             Project: Solr
          Issue Type: Improvement
          Components: SolrJ
            Reporter: Jason Gerlowski


"CLUSTERSTATUS" is an extremely common v1 API for users writing monitoring code, workflows, etc.  SolrJ provides \{{CollectionAdminRequest.ClusterStatus}} to help users hit this API, but doesn't provide much on the response-parsing side.  The response class, 'CollectionAdminResponse', doesn't offer many helpful 'getters' and largely leaves users to write their own \{{NamedList}} inspection code.

We could make this experience much better for our users by providing a few model types or POJOs so that users can use strongly-typed getters instead of the null-check and casting-heavy code that's currently required.

(It might complicate things and require its own ticket, but having some strongly-typed model-classes would probably simplify a lot of our server-side code that inspects ZK cluster/collection state as well.)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org