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

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

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

Channel.getPipeWindow介绍

暂无

代码示例

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

  1. @Override
  2. protected void execute(Channel channel) {
  3. PipeWindow w = channel.getPipeWindow(oid);
  4. w.dead(createdAt.getCause());
  5. }

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

  1. @Override
  2. protected void execute(Channel channel) {
  3. PipeWindow w = channel.getPipeWindow(oid);
  4. w.dead(createdAt.getCause());
  5. }

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

  1. @Override
  2. protected void execute(Channel channel) {
  3. PipeWindow w = channel.getPipeWindow(oid);
  4. w.dead(createdAt.getCause());
  5. }

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

  1. @Override
  2. protected void execute(Channel channel) {
  3. PipeWindow w = channel.getPipeWindow(oid);
  4. w.dead(createdAt != null ? createdAt.getCause() : null);
  5. }

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

  1. @Override
  2. protected void execute(Channel channel) {
  3. PipeWindow w = channel.getPipeWindow(oid);
  4. w.dead(createdAt != null ? createdAt.getCause() : null);
  5. }

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

  1. protected void execute(Channel channel) {
  2. PipeWindow w = channel.getPipeWindow(oid);
  3. w.increase(size);
  4. }

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

  1. protected void execute(Channel channel) {
  2. PipeWindow w = channel.getPipeWindow(oid);
  3. w.increase(size);
  4. }

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

  1. protected void execute(Channel channel) {
  2. PipeWindow w = channel.getPipeWindow(oid);
  3. w.increase(size);
  4. }

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

  1. protected void execute(Channel channel) {
  2. PipeWindow w = channel.getPipeWindow(oid);
  3. w.increase(size);
  4. }

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

  1. protected void execute(Channel channel) {
  2. PipeWindow w = channel.getPipeWindow(oid);
  3. w.increase(size);
  4. }

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

  1. /**
  2. * Connects this stream to the specified remote object.
  3. */
  4. synchronized void connect(@Nonnull Channel channel, int oid) throws IOException {
  5. if(this.channel!=null)
  6. throw new IllegalStateException("Cannot connect twice");
  7. if(oid==0)
  8. throw new IllegalArgumentException("oid=0");
  9. this.channel = channel;
  10. this.oid = oid;
  11. window = channel.getPipeWindow(oid);
  12. if(closed) // already marked closed?
  13. doClose(error);
  14. notifyAll(); // release blocking writes
  15. }

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

  1. /**
  2. * Connects this stream to the specified remote object.
  3. */
  4. synchronized void connect(@Nonnull Channel channel, int oid) throws IOException {
  5. if(this.channel!=null)
  6. throw new IllegalStateException("Cannot connect twice");
  7. if(oid==0)
  8. throw new IllegalArgumentException("oid=0");
  9. this.channel = channel;
  10. this.oid = oid;
  11. window = channel.getPipeWindow(oid);
  12. // if we already have bytes to write, do so now.
  13. if(tmp!=null) {
  14. char[] b = tmp.toCharArray();
  15. tmp = null;
  16. _write(b, 0, b.length);
  17. }
  18. if(closeCause != null) { // already closed asynchronously?
  19. close();
  20. }
  21. }

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

  1. /**
  2. * Connects this stream to the specified remote object.
  3. */
  4. synchronized void connect(Channel channel, int oid) throws IOException {
  5. if (this.channel != null) {
  6. throw new IllegalStateException("Cannot connect twice");
  7. }
  8. if (oid == 0) {
  9. throw new IllegalArgumentException("oid=0");
  10. }
  11. this.channel = channel;
  12. this.oid = oid;
  13. window = channel.getPipeWindow(oid);
  14. // if we already have bytes to write, do so now.
  15. if (tmp != null) {
  16. byte[] b = tmp.toByteArray();
  17. tmp = null;
  18. _write(b, 0, b.length);
  19. }
  20. if (closed) // already marked closed?
  21. {
  22. doClose();
  23. }
  24. }

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

  1. /**
  2. * Connects this stream to the specified remote object.
  3. */
  4. synchronized void connect(Channel channel, int oid) throws IOException {
  5. if (this.channel != null) {
  6. throw new IllegalStateException("Cannot connect twice");
  7. }
  8. if (oid == 0) {
  9. throw new IllegalArgumentException("oid=0");
  10. }
  11. this.channel = channel;
  12. this.oid = oid;
  13. window = channel.getPipeWindow(oid);
  14. // if we already have bytes to write, do so now.
  15. if (tmp != null) {
  16. byte[] b = tmp.toByteArray();
  17. tmp = null;
  18. _write(b, 0, b.length);
  19. }
  20. if (closed) // already marked closed?
  21. {
  22. doClose();
  23. }
  24. }

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

  1. /**
  2. * Connects this stream to the specified remote object.
  3. */
  4. synchronized void connect(Channel channel, int oid) throws IOException {
  5. if (this.channel != null) {
  6. throw new IllegalStateException("Cannot connect twice");
  7. }
  8. if (oid == 0) {
  9. throw new IllegalArgumentException("oid=0");
  10. }
  11. this.channel = channel;
  12. this.oid = oid;
  13. window = channel.getPipeWindow(oid);
  14. // if we already have bytes to write, do so now.
  15. if (tmp != null) {
  16. byte[] b = tmp.toByteArray();
  17. tmp = null;
  18. _write(b, 0, b.length);
  19. }
  20. if (closed) // already marked closed?
  21. {
  22. doClose();
  23. }
  24. }

相关文章