10.5. 예
다음 예제는 테스트에서 가져옵니다.
from("atmos:foo/get?remotePath=/path").to("mock:test");
from("atmos:foo/get?remotePath=/path").to("mock:test");
다음은 소비자 예입니다. remotePath
는 데이터를 읽고 생산자 Underneath와 관련하여 comel 교환을 전달할 경로를 나타냅니다. 이 구성 요소는 이 및 기타 모든 작업에 대해 atmos 클라이언트 API를 사용합니다.
from("direct:start") .to("atmos://get?remotePath=/dummy/dummy.txt") .to("mock:result");
from("direct:start")
.to("atmos://get?remotePath=/dummy/dummy.txt")
.to("mock:result");
다음은 프로듀서 샘플입니다. remotePath
는 VeleroPR 오브젝트 데이터 서비스에서 작업이 발생하는 경로를 나타냅니다. 생산자의 작업(Get
,://< ,Move
, Move )은 VeleroPR 오브젝트 데이터 서비스에서 실행되고 결과는 camel exchange의 헤더에 설정됩니다.
작업에 대해 다음 헤더가 camel exhange에 설정됩니다.
DOWNLOADED_FILE, DOWNLOADED_FILES, UPLOADED_FILE, UPLOADED_FILES, FOUND_FILES, DELETED_PATH, MOVED_PATH;
DOWNLOADED_FILE, DOWNLOADED_FILES, UPLOADED_FILE, UPLOADED_FILES, FOUND_FILES, DELETED_PATH, MOVED_PATH;