本文整理汇总了Java中org.sdnplatform.sync.thrift.SyncOfferMessage类的典型用法代码示例。如果您正苦于以下问题:Java SyncOfferMessage类的具体用法?Java SyncOfferMessage怎么用?Java SyncOfferMessage使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SyncOfferMessage类属于org.sdnplatform.sync.thrift包,在下文中一共展示了SyncOfferMessage类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getTSyncOfferMessage
import org.sdnplatform.sync.thrift.SyncOfferMessage; //导入依赖的package包/类
/**
* Get a partially-initialized {@link SyncOfferMessage} wrapped with a
* {@link SyncMessage}.
* @param storeName the name of the store associated with the message
* @param scope the {@link Scope} for the store
* @param persist the scope for the store
* @return the {@link SyncMessage}
*/
public static SyncMessage getTSyncOfferMessage(String storeName,
Scope scope,
boolean persist) {
SyncMessage bsm = new SyncMessage(MessageType.SYNC_OFFER);
AsyncMessageHeader header = new AsyncMessageHeader();
SyncOfferMessage som = new SyncOfferMessage();
som.setHeader(header);
som.setStore(getTStore(storeName, scope, persist));
bsm.setSyncOffer(som);
return bsm;
}
开发者ID:xuraylei,项目名称:fresco_floodlight,代码行数:21,代码来源:TProtocolUtil.java
示例2: sendSyncOffer
import org.sdnplatform.sync.thrift.SyncOfferMessage; //导入依赖的package包/类
private void sendSyncOffer(short nodeId, SyncMessage bsm)
throws InterruptedException {
SyncOfferMessage som = bsm.getSyncOffer();
if (!som.isSetVersions()) return;
if (logger.isTraceEnabled()) {
logger.trace("[{}->{}] Sending SyncOffer with {} elements",
new Object[]{getLocalNodeId(), nodeId,
som.getVersionsSize()});
}
som.getHeader().setTransactionId(rpcService.getTransactionId());
rpcService.writeToNode(nodeId, bsm);
}
开发者ID:xuraylei,项目名称:fresco_floodlight,代码行数:14,代码来源:SyncManager.java
示例3: sendSyncOffer
import org.sdnplatform.sync.thrift.SyncOfferMessage; //导入依赖的package包/类
private void sendSyncOffer(short nodeId, SyncMessage bsm)
throws InterruptedException {
SyncOfferMessage som = bsm.getSyncOffer();
if (!som.isSetVersions()) return;
if (logger.isTraceEnabled()) {
logger.trace("[{}->{}] Sending SyncOffer with {} elements",
new Object[]{getLocalNodeId(), nodeId,
som.getVersionsSize()});
}
som.getHeader().setTransactionId(rpcService.getTransactionId());
rpcService.writeToNode(nodeId, bsm);
}
开发者ID:nsg-ethz,项目名称:iTAP-controller,代码行数:14,代码来源:SyncManager.java
示例4: getTSyncOfferMessage
import org.sdnplatform.sync.thrift.SyncOfferMessage; //导入依赖的package包/类
/**
* Get a partially-initialized {@link SyncOfferMessage} wrapped with a
* {@link SyncMessage}.
* @param storeName the name of the store associated with the message
* @param scope the {@link Scope} for the store
* @param persist the scope for the store
* @return the {@link SyncMessage}
*/
public static SyncMessage getTSyncOfferMessage(String storeName,
Scope scope,
boolean persist) {
SyncMessage bsm = new SyncMessage(MessageType.SYNC_OFFER);
AsyncMessageHeader header = new AsyncMessageHeader();
SyncOfferMessage som = new SyncOfferMessage();
som.setHeader(header);
som.setStore(getTStore(storeName, scope, persist));
bsm.setSyncOffer(som);
return bsm;
}
开发者ID:zhenshengcai,项目名称:floodlight-hardware,代码行数:21,代码来源:TProtocolUtil.java
示例5: handleSyncOffer
import org.sdnplatform.sync.thrift.SyncOfferMessage; //导入依赖的package包/类
protected void handleSyncOffer(SyncOfferMessage message,
Channel channel) {
unexpectedMessage(message.getHeader().getTransactionId(),
MessageType.SYNC_OFFER, channel);
}
开发者ID:xuraylei,项目名称:fresco_floodlight,代码行数:6,代码来源:AbstractRPCChannelHandler.java
示例6: handleSyncOffer
import org.sdnplatform.sync.thrift.SyncOfferMessage; //导入依赖的package包/类
protected void handleSyncOffer(SyncOfferMessage message,
Channel channel) {
unexpectedMessage(message.getHeader().getTransactionId(),
MessageType.SYNC_OFFER, channel);
}
开发者ID:zhenshengcai,项目名称:floodlight-hardware,代码行数:6,代码来源:AbstractRPCChannelHandler.java
注:本文中的org.sdnplatform.sync.thrift.SyncOfferMessage类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论