當前位置: 首頁>>代碼示例>>Java>>正文


Java JsonRpcWriterUtil類代碼示例

本文整理匯總了Java中org.onosproject.ovsdb.rfc.utils.JsonRpcWriterUtil的典型用法代碼示例。如果您正苦於以下問題:Java JsonRpcWriterUtil類的具體用法?Java JsonRpcWriterUtil怎麽用?Java JsonRpcWriterUtil使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


JsonRpcWriterUtil類屬於org.onosproject.ovsdb.rfc.utils包,在下文中一共展示了JsonRpcWriterUtil類的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getSchema

import org.onosproject.ovsdb.rfc.utils.JsonRpcWriterUtil; //導入依賴的package包/類
@Override
public ListenableFuture<JsonNode> getSchema(List<String> dbnames) {
    String id = java.util.UUID.randomUUID().toString();
    String getSchemaString = JsonRpcWriterUtil.getSchemaStr(id, dbnames);

    SettableFuture<JsonNode> sf = SettableFuture.create();
    requestResult.put(id, sf);
    requestMethod.put(id, "getSchema");

    channel.writeAndFlush(getSchemaString);
    return sf;

}
 
開發者ID:shlee89,項目名稱:athena,代碼行數:14,代碼來源:DefaultOvsdbClient.java

示例2: echo

import org.onosproject.ovsdb.rfc.utils.JsonRpcWriterUtil; //導入依賴的package包/類
@Override
public ListenableFuture<List<String>> echo() {
    String id = java.util.UUID.randomUUID().toString();
    String echoString = JsonRpcWriterUtil.echoStr(id);

    SettableFuture<List<String>> sf = SettableFuture.create();
    requestResult.put(id, sf);
    requestMethod.put(id, "echo");

    channel.writeAndFlush(echoString);
    return sf;

}
 
開發者ID:shlee89,項目名稱:athena,代碼行數:14,代碼來源:DefaultOvsdbClient.java

示例3: monitor

import org.onosproject.ovsdb.rfc.utils.JsonRpcWriterUtil; //導入依賴的package包/類
@Override
public ListenableFuture<JsonNode> monitor(DatabaseSchema dbSchema,
                                          String monitorId) {
    String id = java.util.UUID.randomUUID().toString();
    String monitorString = JsonRpcWriterUtil.monitorStr(id, monitorId,
                                                        dbSchema);

    SettableFuture<JsonNode> sf = SettableFuture.create();
    requestResult.put(id, sf);
    requestMethod.put(id, "monitor");

    channel.writeAndFlush(monitorString);
    return sf;

}
 
開發者ID:shlee89,項目名稱:athena,代碼行數:16,代碼來源:DefaultOvsdbClient.java

示例4: listDbs

import org.onosproject.ovsdb.rfc.utils.JsonRpcWriterUtil; //導入依賴的package包/類
@Override
public ListenableFuture<List<String>> listDbs() {
    String id = java.util.UUID.randomUUID().toString();
    String listDbsString = JsonRpcWriterUtil.listDbsStr(id);

    SettableFuture<List<String>> sf = SettableFuture.create();
    requestResult.put(id, sf);
    requestMethod.put(id, "listDbs");

    channel.writeAndFlush(listDbsString);
    return sf;

}
 
開發者ID:shlee89,項目名稱:athena,代碼行數:14,代碼來源:DefaultOvsdbClient.java

示例5: transact

import org.onosproject.ovsdb.rfc.utils.JsonRpcWriterUtil; //導入依賴的package包/類
@Override
public ListenableFuture<List<JsonNode>> transact(DatabaseSchema dbSchema,
                                                 List<Operation> operations) {
    String id = java.util.UUID.randomUUID().toString();
    String transactString = JsonRpcWriterUtil.transactStr(id, dbSchema,
                                                          operations);

    SettableFuture<List<JsonNode>> sf = SettableFuture.create();
    requestResult.put(id, sf);
    requestMethod.put(id, "transact");

    channel.writeAndFlush(transactString);
    return sf;

}
 
開發者ID:shlee89,項目名稱:athena,代碼行數:16,代碼來源:DefaultOvsdbClient.java

示例6: getSchema

import org.onosproject.ovsdb.rfc.utils.JsonRpcWriterUtil; //導入依賴的package包/類
@Override
public ListenableFuture<JsonNode> getSchema(List<String> dbnames) {
    String id = java.util.UUID.randomUUID().toString();
    String getSchemaString = JsonRpcWriterUtil.getSchemaStr(id, dbnames);

    SettableFuture<JsonNode> sf = SettableFuture.create();
    requestResult.put(id, sf);
    requestMethod.put(id, "getSchema");

    channel.writeAndFlush(getSchemaString);
    return sf;
}
 
開發者ID:opennetworkinglab,項目名稱:onos,代碼行數:13,代碼來源:DefaultOvsdbClient.java

示例7: echo

import org.onosproject.ovsdb.rfc.utils.JsonRpcWriterUtil; //導入依賴的package包/類
@Override
public ListenableFuture<List<String>> echo() {
    String id = java.util.UUID.randomUUID().toString();
    String echoString = JsonRpcWriterUtil.echoStr(id);

    SettableFuture<List<String>> sf = SettableFuture.create();
    requestResult.put(id, sf);
    requestMethod.put(id, "echo");

    channel.writeAndFlush(echoString);
    return sf;
}
 
開發者ID:opennetworkinglab,項目名稱:onos,代碼行數:13,代碼來源:DefaultOvsdbClient.java

示例8: monitor

import org.onosproject.ovsdb.rfc.utils.JsonRpcWriterUtil; //導入依賴的package包/類
@Override
public ListenableFuture<JsonNode> monitor(DatabaseSchema dbSchema,
                                          String monitorId) {
    String id = java.util.UUID.randomUUID().toString();
    String monitorString = JsonRpcWriterUtil.monitorStr(id, monitorId,
                                                        dbSchema);

    SettableFuture<JsonNode> sf = SettableFuture.create();
    requestResult.put(id, sf);
    requestMethod.put(id, "monitor");

    channel.writeAndFlush(monitorString);
    return sf;
}
 
開發者ID:opennetworkinglab,項目名稱:onos,代碼行數:15,代碼來源:DefaultOvsdbClient.java

示例9: listDbs

import org.onosproject.ovsdb.rfc.utils.JsonRpcWriterUtil; //導入依賴的package包/類
@Override
public ListenableFuture<List<String>> listDbs() {
    String id = java.util.UUID.randomUUID().toString();
    String listDbsString = JsonRpcWriterUtil.listDbsStr(id);

    SettableFuture<List<String>> sf = SettableFuture.create();
    requestResult.put(id, sf);
    requestMethod.put(id, "listDbs");

    channel.writeAndFlush(listDbsString);
    return sf;
}
 
開發者ID:opennetworkinglab,項目名稱:onos,代碼行數:13,代碼來源:DefaultOvsdbClient.java

示例10: transact

import org.onosproject.ovsdb.rfc.utils.JsonRpcWriterUtil; //導入依賴的package包/類
@Override
public ListenableFuture<List<JsonNode>> transact(DatabaseSchema dbSchema,
                                                 List<Operation> operations) {
    String id = java.util.UUID.randomUUID().toString();
    String transactString = JsonRpcWriterUtil.transactStr(id, dbSchema,
                                                          operations);

    SettableFuture<List<JsonNode>> sf = SettableFuture.create();
    requestResult.put(id, sf);
    requestMethod.put(id, "transact");
    channel.writeAndFlush(transactString);
    return sf;
}
 
開發者ID:opennetworkinglab,項目名稱:onos,代碼行數:14,代碼來源:DefaultOvsdbClient.java


注:本文中的org.onosproject.ovsdb.rfc.utils.JsonRpcWriterUtil類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。