当前位置: 首页>>代码示例>>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;未经允许,请勿转载。