Orion バックエンド

OrionBackend インタフェース

このクラスは、Orion バックエンド実装が公開しなければならないメソッドを列挙します。この場合、次のものがあります。

JsonResponse subscribeContextV1(String cygnusSubscription, String token) throws Exception;

Json Cygnus サブスクリプション(Orion サブスクリプション + Orion エンドポイント)と認証目的のトークンを指定して Orion をサブスクライブします (NGSIv1)。

JsonResponse subscribeContextV2(String cygnusSubscription, String token) throws Exception;

Json Cygnus サブスクリプション(Orion サブスクリプション + Orion エンドポイント)と認証目的のトークンを指定してOrionをサブスクライブします (NGSIv2)。

JsonResponse deleteSubscriptionV1(String subscriptionId, String token) throws Exception;

ID と認証目的のトークンを指定して、Orion へのサブスクリプションを削除します (NGSIv1)。

JsonResponse deleteSubscriptionV2(String subscriptionId, String token) throws Exception;

ID と認証目的のトークンを指定して、Orion へのサブスクリプションを削除します (NGSIv2)。

JsonResponse getSubscriptionsByIdV2(String token, String subscriptionId) throws Exception;

ID と認証目的のトークンを指定して、Orionへのサブスクリプションを取得します (NGSIv2)。

OrionBackendImpl クラス

これは上記の OrionBackend インタフェースを実装する Orion の便利なバックエンドクラスです。

OrionBackendImplは、実際に Orion API(NGSIv1NGSIv2) をラップします。