spring / / 2025. 10. 12. 17:57

[Spring Boot 번역] Spring Integration Graph (integrationgraph)

Spring Integration Graph (integrationgraph)

integrationgraph 엔드포인트는 애플리케이션의 모든 Spring Integration 컴포넌트 그래프를 노출합니다.

Spring Integration Graph 조회하기

Spring Integration 그래프를 조회하려면 다음 예제와 같이 /actuator/integrationgraphGET 요청을 보냅니다:

$ curl 'http://localhost:8080/actuator/integrationgraph' -i -X GET

앞선 요청의 결과 HTTP 응답은 다음과 같습니다:

HTTP/1.1 200 OK
Content-Type: application/vnd.spring-boot.actuator.v3+json
Content-Length: 912

{
  "contentDescriptor" : {
    "providerVersion" : "7.0.0-SNAPSHOT",
    "providerFormatVersion" : 1.2,
    "provider" : "spring-integration"
  },
  "nodes" : [ {
    "nodeId" : 1,
    "componentType" : "gateway",
    "integrationPatternType" : "gateway",
    "integrationPatternCategory" : "messaging_endpoint",
    "properties" : { },
    "sendTimers" : {
      "successes" : {
        "count" : 0,
        "mean" : 0.0,
        "max" : 0.0
      },
      "failures" : {
        "count" : 0,
        "mean" : 0.0,
        "max" : 0.0
      }
    },
    "name" : "myGateway"
  } ],
  "links" : [ {
    "from" : 1,
    "to" : 2,
    "type" : "input"
  } ],
  "errors" : [ {
    "nodeId" : 2,
    "description" : "No component found for node with id:2, which has reference from the node with id:1"
  } ]
}

응답 구조

응답에는 애플리케이션의 Spring Integration 그래프에 대한 세부 정보가 포함됩니다. 다음 표는 응답의 구조를 설명합니다:

Path Type Description
contentDescriptor.providerVersion String Spring Integration의 버전입니다.
contentDescriptor.providerFormatVersion Number 그래프 콘텐츠의 버전입니다.
contentDescriptor.provider String 그래프의 제공자입니다.
nodes Array 그래프의 노드입니다.
links Array 그래프의 링크입니다.
links[].from Number 링크가 시작하는 노드의 ID입니다.
links[].to Number 링크가 끝나는 노드의 ID입니다.
links[].type String 링크의 타입입니다.
errors Array 발견된 에러입니다.

Graph 재구성하기

그래프를 재구성하려면 다음 예제와 같이 /actuator/integrationgraphPOST 요청을 보냅니다:

$ curl 'http://localhost:8080/actuator/integrationgraph' -i -X POST

이렇게 하면 그래프가 재구성됩니다. 앞선 요청의 결과 HTTP 응답은 다음과 같습니다:

HTTP/1.1 204 No Content

출처: Spring Boot 4.0-SNAPSHOT API Documentation - Spring Integration Graph

반응형
  • 네이버 블로그 공유
  • 네이버 밴드 공유
  • 페이스북 공유
  • 카카오스토리 공유