hudson.remoting.Channel.isInClosed()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(236)

本文整理了Java中hudson.remoting.Channel.isInClosed()方法的一些代码示例,展示了Channel.isInClosed()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Channel.isInClosed()方法的具体详情如下:
包路径:hudson.remoting.Channel
类名称:Channel
方法名:isInClosed

Channel.isInClosed介绍

[英]If the receiving end of the channel is closed (that is, if we are guaranteed to receive nothing further), this method returns true.
[中]如果通道的接收端关闭(即,如果我们保证不再接收任何内容),此方法将返回true。

代码示例

代码示例来源:origin: jenkinsci/remoting

/**
 * {@inheritDoc}
 */
@Override
public boolean isReadOpen() {
  return channel == null || !channel.isInClosed();
}

代码示例来源:origin: hudson/hudson-2.x

protected void onDead() {
    try {
      if (!channel.isInClosed()) {
        LOGGER.info("Ping failed. Terminating the socket.");
        socket.close();
      }
    } catch (IOException e) {
      LOGGER.log(SEVERE, "Failed to terminate the socket", e);
    }
  }
};

代码示例来源:origin: org.eclipse.hudson/hudson-remoting

protected void onDead() {
    try {
      if (!channel.isInClosed()) {
        LOGGER.info("Ping failed. Terminating the socket.");
        socket.close();
      }
    } catch (IOException e) {
      LOGGER.log(SEVERE, "Failed to terminate the socket", e);
    }
  }
};

代码示例来源:origin: org.eclipse.hudson.main/hudson-remoting

protected void onDead() {
    try {
      if (!channel.isInClosed()) {
        LOGGER.info("Ping failed. Terminating the socket.");
        socket.close();
      }
    } catch (IOException e) {
      LOGGER.log(SEVERE, "Failed to terminate the socket", e);
    }
  }
};

代码示例来源:origin: jenkinsci/remoting

if (isInClosed())
  throw new IllegalStateException("Channel was already closed", inClosed);
if (isOutClosed())
    if (isInClosed()) {
      throw new IllegalStateException("Channel was already closed", inClosed);
    } else if (isOutClosed()) {

代码示例来源:origin: jenkinsci/remoting

@Override
  public void run() {
    // if this EOF is unexpected, report an error.
    if (!t.getChannel().isInClosed()) {
      t.getChannel().terminate(new IOException("Unexpected EOF while receiving the data from the channel. "
          + "FIFO buffer has been already closed", t.rb.getCloseCause()));
    }
  }
});

代码示例来源:origin: jenkinsci/remoting

final String name =channel.getName();
try {
  while(!channel.isInClosed()) {
    Command cmd = null;
    try {

代码示例来源:origin: org.eclipse.hudson.main/hudson-remoting

while(response==null && !channel.isInClosed())

代码示例来源:origin: org.eclipse.hudson/hudson-remoting

while(response==null && !channel.isInClosed())

代码示例来源:origin: hudson/hudson-2.x

while(response==null && !channel.isInClosed())

代码示例来源:origin: jenkinsci/remoting

while(response==null && !channel.isInClosed())

相关文章