hudson.remoting
Class Capability

java.lang.Object
  extended by hudson.remoting.Capability
All Implemented Interfaces:
java.io.Serializable

public final class Capability
extends java.lang.Object
implements java.io.Serializable

Represents additional features implemented on Channel.

Each Channel exposes its capability to Channel.getProperty(Object).

This mechanism allows two different versions of remoting.jar to talk to each other.

Author:
Kohsuke Kawaguchi
See Also:
Channel.remoteCapability, Serialized Form

Field Summary
static Capability NONE
           
 
Method Summary
static Capability read(java.io.InputStream is)
          The opposite operation of writePreamble(OutputStream).
 boolean supportsMultiClassLoaderRPC()
          Does this implementation supports multi-classloader serialization in UserRequest?
 boolean supportsPipeThrottling()
          Does the implementation supports window size control over pipes?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final Capability NONE
Method Detail

supportsMultiClassLoaderRPC

public boolean supportsMultiClassLoaderRPC()
Does this implementation supports multi-classloader serialization in UserRequest?

See Also:
MultiClassLoaderSerializer

supportsPipeThrottling

public boolean supportsPipeThrottling()
Does the implementation supports window size control over pipes?

See Also:
ProxyOutputStream

read

public static Capability read(java.io.InputStream is)
                       throws java.io.IOException
The opposite operation of writePreamble(OutputStream).

Throws:
java.io.IOException


Copyright © 2012. All Rights Reserved.