Package ch.ethz.iks.r_osgi.messages

Examples of ch.ethz.iks.r_osgi.messages.RemoteOSGiMessage


      callback.result(msg);
      return;
    } else {
      final Runnable r = new Runnable() {
        public void run() {
          final RemoteOSGiMessage reply = handleMessage(msg);
          if (reply != null) {

            try {
              networkChannel.sendMessage(reply);
            } catch (final NotSerializableException nse) {
View Full Code Here


    send(msg);

    // wait for the reply
    synchronized (blocking) {
      final long timeout = System.currentTimeMillis() + TIMEOUT;
      RemoteOSGiMessage result = blocking.getResult();
      try {
        while (result == null && networkChannel != null
            && System.currentTimeMillis() < timeout) {
          blocking.wait(TIMEOUT);
          result = blocking.getResult();
View Full Code Here

      }

      public void run() {
        while (connected) {
          try {
            final RemoteOSGiMessage msg = RemoteOSGiMessage
                .parse(input);
            if (RemoteOSGiServiceImpl.MSG_DEBUG) {
              RemoteOSGiServiceImpl.log.log(LogService.LOG_DEBUG,
                  "{TCP Channel} received " + msg); //$NON-NLS-1$
            }
View Full Code Here

TOP

Related Classes of ch.ethz.iks.r_osgi.messages.RemoteOSGiMessage

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.