Package org.jdesktop.wonderland.modules.sharedstate.common.messages

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


            // find the appropriate map
            SharedMapImpl map = getMap(message.getMapName(), false);
           
            // if the map doesn't exist, return an empty result
            if (map == null) {
                return new GetResponseMessage(message.getMessageID(),
                                              0, null);
            }

            logger.fine("[SharedStateComponentMO]: Respond to get req: " +
                        map.get(message.getPropertyName()));

            return new GetResponseMessage(message.getMessageID(),
                                          map.getVersion(),
                                          map.get(message.getPropertyName()));
        }
View Full Code Here


        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());
            } else {
                throw new IllegalStateException("Invalid response to value " +
                        "request: " + rm.getClass());
            }
        }
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.modules.sharedstate.common.messages.GetResponseMessage

Copyright © 2018 www.massapicom. 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.