本文整理了Java中hudson.remoting.Channel.send()
方法的一些代码示例,展示了Channel.send()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Channel.send()
方法的具体详情如下:
包路径:hudson.remoting.Channel
类名称:Channel
方法名:send
[英]Sends a command to the remote end and executes it there.
This is the lowest layer of abstraction in Channel. Commands are executed on a remote system in the order they are sent.
[中]向远程端发送命令并在那里执行。
这是通道中的最低抽象层。命令按发送顺序在远程系统上执行。
代码示例来源:origin: org.eclipse.hudson.main/hudson-remoting
@Override
public synchronized void close() throws IOException {
if(channel!=null) {
channel.send(new EOF(oid));
channel = null;
oid = -1;
}
}
代码示例来源:origin: org.eclipse.hudson/hudson-remoting
public synchronized void write(char[] cbuf) throws IOException {
if(closed)
throw new IOException("stream is already closed");
if(channel==null) {
if(tmp==null)
tmp = new CharArrayWriter();
tmp.write(cbuf);
} else {
channel.send(new Chunk(oid,cbuf));
}
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-remoting
@Override
protected void finalize() throws Throwable {
super.finalize();
// if we haven't done so, release the exported object on the remote side.
if (channel != null) {
channel.send(new Unexport(oid));
channel = null;
oid = -1;
}
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-remoting
private void doClose() throws IOException {
channel.send(new EOF(oid));
channel = null;
oid = -1;
}
代码示例来源:origin: org.eclipse.hudson/hudson-remoting
protected void finalize() throws Throwable {
// unexport the remote object
if(channel!=null && !autoUnexportByCaller)
channel.send(new UnexportCommand(oid));
super.finalize();
}
代码示例来源:origin: hudson/hudson-2.x
protected void finalize() throws Throwable {
// unexport the remote object
if(channel!=null && !autoUnexportByCaller)
channel.send(new UnexportCommand(oid));
super.finalize();
}
代码示例来源:origin: hudson/hudson-2.x
@Override
public synchronized void close() throws IOException {
if(channel!=null) {
channel.send(new EOF(oid));
channel = null;
oid = -1;
}
}
代码示例来源:origin: hudson/hudson-2.x
public synchronized void flush() throws IOException {
if (channel != null) {
channel.send(new Flush(oid));
}
}
代码示例来源:origin: jenkinsci/remoting
@Override
public synchronized void close() throws IOException {
if(channel!=null) {
channel.send(new EOF(oid));
channel = null;
oid = -1;
}
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-remoting
public synchronized void flush() throws IOException {
if (channel != null) {
channel.send(new Flush(oid));
}
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-remoting
public synchronized void close() throws IOException {
closed = true;
if(channel!=null) {
channel.send(new EOF(oid));
channel = null;
oid = -1;
}
}
代码示例来源:origin: org.eclipse.hudson/hudson-remoting
public synchronized void close() throws IOException {
closed = true;
if(channel!=null) {
channel.send(new EOF(oid));
channel = null;
oid = -1;
}
}
代码示例来源:origin: hudson/hudson-2.x
public synchronized void write(char[] cbuf) throws IOException {
if(closed)
throw new IOException("stream is already closed");
if(channel==null) {
if(tmp==null)
tmp = new CharArrayWriter();
tmp.write(cbuf);
} else {
channel.send(new Chunk(oid,cbuf));
}
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-remoting
public synchronized void write(char[] cbuf) throws IOException {
if(closed)
throw new IOException("stream is already closed");
if(channel==null) {
if(tmp==null)
tmp = new CharArrayWriter();
tmp.write(cbuf);
} else {
channel.send(new Chunk(oid,cbuf));
}
}
代码示例来源:origin: org.eclipse.hudson.main/hudson-remoting
protected void finalize() throws Throwable {
// unexport the remote object
if(channel!=null && !autoUnexportByCaller)
channel.send(new UnexportCommand(oid));
super.finalize();
}
代码示例来源:origin: org.eclipse.hudson/hudson-remoting
@Override
public synchronized void close() throws IOException {
if(channel!=null) {
channel.send(new EOF(oid));
channel = null;
oid = -1;
}
}
代码示例来源:origin: org.eclipse.hudson/hudson-remoting
public synchronized void flush() throws IOException {
if (channel != null) {
channel.send(new Flush(oid));
}
}
代码示例来源:origin: org.eclipse.hudson/hudson-remoting
@Override
protected void finalize() throws Throwable {
super.finalize();
// if we haven't done so, release the exported object on the remote side.
if (channel != null) {
channel.send(new Unexport(oid));
channel = null;
oid = -1;
}
}
代码示例来源:origin: org.eclipse.hudson/hudson-remoting
private void doClose() throws IOException {
channel.send(new EOF(oid));
channel = null;
oid = -1;
}
代码示例来源:origin: jenkinsci/remoting
public synchronized void flush() throws IOException {
if (channel != null && /* see #finalize */ oid != -1) {
channel.send(new Flush(channel.newIoId(), oid));
}
}
内容来源于网络,如有侵权,请联系作者删除!