Examples of SyncMessage


Examples of org.sdnplatform.sync.thrift.SyncMessage

     * the {@link AsyncMessageHeader}.
     * @param store the {@link Store} associated with the message
     * @return the {@link SyncMessage}
     */
    public static SyncMessage getTSyncValueMessage(Store store) {
        SyncMessage bsm =
                new SyncMessage(MessageType.SYNC_VALUE);
        AsyncMessageHeader header = new AsyncMessageHeader();
        SyncValueMessage svm = new SyncValueMessage();
        svm.setHeader(header);
        svm.setStore(store);

        bsm.setSyncValue(svm);
        return bsm;
    }
View Full Code Here

Examples of org.sdnplatform.sync.thrift.SyncMessage

     * @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;
    }
View Full Code Here

Examples of org.sdnplatform.sync.thrift.SyncMessage

        ClusterJoinRequestMessage cjrm = new ClusterJoinRequestMessage();
        AsyncMessageHeader header = new AsyncMessageHeader();
        header.setTransactionId(bootstrap.transactionId.getAndIncrement());
        cjrm.setHeader(header);
        cjrm.setNode(n);
        SyncMessage bsm =
                new SyncMessage(MessageType.CLUSTER_JOIN_REQUEST);
        bsm.setClusterJoinRequest(cjrm);
        channel.write(bsm);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.