Examples of handleFailure()


Examples of com.google.dataconnector.client.HealthCheckHandler.FailCallback.handleFailure()

    EasyMock.expectLastCall().andReturn(FAKE_TIME_STAMP + 45000); // log message.
    EasyMock.replay(clock);

    // Call back handler should fire.
    FailCallback failCallback = EasyMock.createMock(FailCallback.class);
    failCallback.handleFailure();
    EasyMock.expectLastCall();
    EasyMock.replay(failCallback);

    HealthCheckHandler healthCheckHandler = new HealthCheckHandler(clock, shutdownManager);
    healthCheckHandler.setFrameSender(frameSender);
View Full Code Here

Examples of com.intellij.compiler.server.BuilderMessageHandler.handleFailure()

                        msg = stdErrOutput.toString();
                      }
                      else {
                        msg = "Abnormal build process termination: unknown error";
                      }
                      handler.handleFailure(sessionId, CmdlineProtoUtil.createFailure(msg, null));
                    }
                  }
                  else {
                    handler.handleFailure(sessionId, CmdlineProtoUtil.createFailure("Disconnected from build process", null));
                  }
View Full Code Here

Examples of com.intellij.compiler.server.BuilderMessageHandler.handleFailure()

                      }
                      handler.handleFailure(sessionId, CmdlineProtoUtil.createFailure(msg, null));
                    }
                  }
                  else {
                    handler.handleFailure(sessionId, CmdlineProtoUtil.createFailure("Disconnected from build process", null));
                  }
                }
                catch (Throwable e) {
                  execFailure = e;
                }
View Full Code Here

Examples of com.intellij.compiler.server.BuilderMessageHandler.handleFailure()

                    // either the connection has never been established (process not started or execution failed), or no messages were sent from the launched process.
                    // in this case the session cannot be unregistered by the message dispatcher
                    final BuilderMessageHandler unregistered = myMessageDispatcher.unregisterBuildMessageHandler(sessionId);
                    if (unregistered != null) {
                      if (execFailure != null) {
                        unregistered.handleFailure(sessionId, CmdlineProtoUtil.createFailure(execFailure.getMessage(), execFailure));
                      }
                      unregistered.sessionTerminated(sessionId);
                    }
                  }
                }
View Full Code Here

Examples of com.intellij.compiler.server.BuilderMessageHandler.handleFailure()

            });
          }
          catch (Throwable e) {
            final BuilderMessageHandler unregistered = myMessageDispatcher.unregisterBuildMessageHandler(sessionId);
            if (unregistered != null) {
              unregistered.handleFailure(sessionId, CmdlineProtoUtil.createFailure(e.getMessage(), e));
              unregistered.sessionTerminated(sessionId);
            }
          }
        }
      });
View Full Code Here

Examples of org.apache.sshd.common.Channel.handleFailure()

     * @param buffer the buffer containing the packet
     * @throws Exception if an error occurs
     */
    protected void channelFailure(Buffer buffer) throws IOException {
        Channel channel = getChannel(buffer);
        channel.handleFailure();
    }

    /**
     * Retrieve the channel designated by the given packet
     *
 
View Full Code Here

Examples of org.apache.sshd.common.Channel.handleFailure()

     * @param buffer the buffer containing the packet
     * @throws IOException if an error occurs
     */
    public void channelFailure(Buffer buffer) throws IOException {
        Channel channel = getChannel(buffer);
        channel.handleFailure();
    }

    /**
     * Retrieve the channel designated by the given packet
     *
 
View Full Code Here

Examples of org.apache.sshd.common.Channel.handleFailure()

     * @param buffer the buffer containing the packet
     * @throws Exception if an error occurs
     */
    protected void channelFailure(Buffer buffer) throws Exception {
        Channel channel = getChannel(buffer);
        channel.handleFailure();
    }

    /**
     * Retrieve the channel designated by the given packet
     *
 
View Full Code Here

Examples of org.apache.sshd.common.Channel.handleFailure()

     * @param buffer the buffer containing the packet
     * @throws Exception if an error occurs
     */
    protected void channelFailure(Buffer buffer) throws Exception {
        Channel channel = getChannel(buffer);
        channel.handleFailure();
    }

    /**
     * Retrieve the channel designated by the given packet
     *
 
View Full Code Here

Examples of org.apache.sshd.common.Channel.handleFailure()

     * @param buffer the buffer containing the packet
     * @throws Exception if an error occurs
     */
    protected void channelFailure(Buffer buffer) throws Exception {
        Channel channel = getChannel(buffer);
        channel.handleFailure();
    }

    /**
     * Retrieve the channel designated by the given packet
     *
 
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.