[
https://issues.redhat.com/browse/ISPN-12606?page=com.atlassian.jira.plugi...
]
Tristan Tarrant updated ISPN-12606:
-----------------------------------
Description:
Add configuration event listeners to the REST endpoint.
These should use HTTP Server-Sent-Events
[
https://html.spec.whatwg.org/multipage/server-sent-events.html|https://ht...]
h3. Configuration listeners:
{{GET /v2/server/config?action=listen[&includeCurrentState=true|false]}}
This will result in a response with content-type text/event-stream followed by a stream of
configuration events.
Each event follows the following structure:
{noformat}
event: [cache|template|schema|task]
data: [json representantion of event]
{noformat}
the data field will contain a representation of the event:
* {{[cache|template|counter]-created}}: the full configuration of the entity
* {{[cache|template|counter]-removed}}: an empty string
* {{[schema]-created}}: the protobuf
* {{[schema]-removed}}: an empty string
was:
Add configuration event listeners to the REST endpoint.
These should use HTTP Server-Sent-Events
[
https://html.spec.whatwg.org/multipage/server-sent-events.html|https://ht...]
h3. Configuration listeners:
{{GET /v2/server/config?action=listen[&includeCurrentState=true|false]}}
This will result in a response with content-type text/event-stream followed by a stream of
configuration events.
Each event follows the following structure:
{noformat}
event: [cache|template|schema|task]
data: [json representantion of event]
{noformat}
the data field will contain a representation of the event:
* [cache|template|counter]-created: the full configuration of the entity
* [cache|template|counter]-removed: an empty string
* [schema]-created: the protobuf
* [schema]-removed: an empty string
REST configuration listeners
----------------------------
Key: ISPN-12606
URL:
https://issues.redhat.com/browse/ISPN-12606
Project: Infinispan
Issue Type: Feature Request
Components: Listeners, REST, Server
Reporter: Tristan Tarrant
Priority: Major
Add configuration event listeners to the REST endpoint.
These should use HTTP Server-Sent-Events
[
https://html.spec.whatwg.org/multipage/server-sent-events.html|https://ht...]
h3. Configuration listeners:
{{GET /v2/server/config?action=listen[&includeCurrentState=true|false]}}
This will result in a response with content-type text/event-stream followed by a stream
of configuration events.
Each event follows the following structure:
{noformat}
event: [cache|template|schema|task]
data: [json representantion of event]
{noformat}
the data field will contain a representation of the event:
* {{[cache|template|counter]-created}}: the full configuration of the entity
* {{[cache|template|counter]-removed}}: an empty string
* {{[schema]-created}}: the protobuf
* {{[schema]-removed}}: an empty string
--
This message was sent by Atlassian Jira
(v8.13.1#813001)