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

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

本文整理了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

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @Override
  5. public boolean isReadOpen() {
  6. return channel == null || !channel.isInClosed();
  7. }

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

  1. protected void onDead() {
  2. try {
  3. if (!channel.isInClosed()) {
  4. LOGGER.info("Ping failed. Terminating the socket.");
  5. socket.close();
  6. }
  7. } catch (IOException e) {
  8. LOGGER.log(SEVERE, "Failed to terminate the socket", e);
  9. }
  10. }
  11. };

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

  1. protected void onDead() {
  2. try {
  3. if (!channel.isInClosed()) {
  4. LOGGER.info("Ping failed. Terminating the socket.");
  5. socket.close();
  6. }
  7. } catch (IOException e) {
  8. LOGGER.log(SEVERE, "Failed to terminate the socket", e);
  9. }
  10. }
  11. };

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

  1. protected void onDead() {
  2. try {
  3. if (!channel.isInClosed()) {
  4. LOGGER.info("Ping failed. Terminating the socket.");
  5. socket.close();
  6. }
  7. } catch (IOException e) {
  8. LOGGER.log(SEVERE, "Failed to terminate the socket", e);
  9. }
  10. }
  11. };

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

  1. if (isInClosed())
  2. throw new IllegalStateException("Channel was already closed", inClosed);
  3. if (isOutClosed())
  4. if (isInClosed()) {
  5. throw new IllegalStateException("Channel was already closed", inClosed);
  6. } else if (isOutClosed()) {

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

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

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

  1. final String name =channel.getName();
  2. try {
  3. while(!channel.isInClosed()) {
  4. Command cmd = null;
  5. try {

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

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

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

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

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

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

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

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

相关文章