本文整理了Java中hudson.remoting.Channel.isInClosed()
方法的一些代码示例,展示了Channel.isInClosed()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Channel.isInClosed()
方法的具体详情如下:
包路径:hudson.remoting.Channel
类名称: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())
内容来源于网络,如有侵权,请联系作者删除!