10.5. 例子

这些示例是从测试中获取的:

from("atmos:foo/get?remotePath=/path").to("mock:test");

下面是一个消费者的示例。remotePath 代表数据要读取的路径,并将 camel Exchange 传递给制作者 Underneath,此组件将mos 客户端 API 用于此和其他操作。

from("direct:start")
.to("atmos://get?remotePath=/dummy/dummy.txt")
.to("mock:result");

在这里,这是一个制作者示例。remotePath 表示操作在 ViPR 对象数据服务上发生的路径。在制作者中,操作(GetDelMovePut)在 ViPR 对象数据服务上运行,结果由 camel Exchange 的标头设置。

关于操作,会在 camel exhange 中设置以下标头

DOWNLOADED_FILE, DOWNLOADED_FILES, UPLOADED_FILE, UPLOADED_FILES, FOUND_FILES, DELETED_PATH, MOVED_PATH;