Examples of GetRequestMessage


Examples of org.jdesktop.wonderland.modules.sharedstate.common.messages.GetRequestMessage

        public ValueGetter(String propName) {
            this.propName = propName;
        }

        public VersionedValue call() throws InterruptedException {
            CellMessage m = new GetRequestMessage(getName(), propName);
            ResponseMessage rm = channel.sendAndWait(m);
            if (rm instanceof GetResponseMessage) {
                GetResponseMessage grm = (GetResponseMessage) rm;
                return new ImmediateVersionedValue(VersionType.REMOTE,
                                                   grm.getVersion(), grm.getData());
View Full Code Here

Examples of org.sdnplatform.sync.thrift.GetRequestMessage

    // *************************

    @Override
    public List<Versioned<byte[]>> get(ByteArray key) throws SyncException {
        StoreUtils.assertValidKey(key);
        GetRequestMessage grm = new GetRequestMessage();

        AsyncMessageHeader header = new AsyncMessageHeader();
        header.setTransactionId(syncManager.getTransactionId());
        grm.setHeader(header);

        grm.setKey(key.get());
        grm.setStoreName(storeName);
       
        SyncMessage bsm = new SyncMessage(MessageType.GET_REQUEST);
        bsm.setGetRequest(grm);

        SyncReply reply = getReply(header.getTransactionId(), 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.