Package ch.ethz.iks.r_osgi.messages

Examples of ch.ethz.iks.r_osgi.messages.RemoteCallResultMessage.causedException()


    invokeMsg.setArgs(args);

    try {
      // send the message and get a MethodResultMessage in return
      final RemoteCallResultMessage resultMsg = (RemoteCallResultMessage) sendAndWait(invokeMsg);
      if (resultMsg.causedException()) {
        throw resultMsg.getException();
      }
      final Object result = resultMsg.getResult();
      if (result instanceof InputStreamHandle) {
        return getInputStreamProxy((InputStreamHandle) result);
View Full Code Here


    synchronized (callbacks) {
      callbacks.put(xid, new AsyncCallback() {
        public void result(final RemoteOSGiMessage msg) {
          final RemoteCallResultMessage resultMsg = (RemoteCallResultMessage) msg;
          if (resultMsg.causedException()) {
            callback.remoteCallResult(false, resultMsg
                .getException());
          }
          final Object result = resultMsg.getResult();
          final Object res;
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.