close

Filter

loading table of contents...

Operations Basics / Version 2406.1

Table Of Contents

4.10.4 CapConnection Endpoint

The capconnection endpoint exposes information about the state of the cap connection in client applications.

Endpoint properties. 

management.endpoint.capconnection.access=unrestricted

Endpoint URL. 

http://localhost:8081/actuator/capconnection

When requested with a GET request, the endpoint responds with the state of the cap connection.

Response. 

{
  "url": "http://localhost:8080/ior",
  "user": {
    "domain": "",
    "name": "webserver"
  },
  "state": {
    "disrupted": false,
    "numberOfSUSessions": 0,
    "open": true,
    "stable": true
  },
  "content-repository": {
    "available": true,
    "healthy": true,
    "required": true
  },
  "workflow-repository": { ... },
  "caplist-repository": { ... },
  "events": {
    "timeSinceLastEventRetrievalMS": 54147,
    "latestReceivedContentEventSequenceNumber": 112678,
    "eventRetrievalDelayMS": 60000,
    "latestContentEventSequenceNumber": 112678,
    "eventChunkSize": 1000
  },
  "heap-cache": {
    "level": 2495694,
    "faults": 134,
    "size": 104857600
  },
  "blob-cache": { ... }
}

With a POST request to the endpoint, you can change some of the properties.

Configure cap connection. 

curl -X POST -H "Content-Type: application/json" \
     -d '{"blobStreamingThreads": 3, "eventChunkSize": 1000}' \
     http://localhost:8081/actuator/capconnection

The configurable properties are

  • blobCacheSize

  • blobStreamingSizeThreshold

  • blobStreamingThreads

  • eventChunkSize

  • heapCacheSize

  • maxCachedBlobSize

For the meanings of the properties see the API documentation of com.coremedia.cap.common.CapConnectionManager.

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.