Package hudson.remoting
Class Capability
java.lang.Object
hudson.remoting.Capability
- All Implemented Interfaces:
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringKey usable as a WebSocket HTTP header to negotiate capabilities.static final Capability -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CapabilityThe inverse oftoASCII().booleanDeprecated.no longer usedstatic Capabilityread(InputStream is) The opposite operation ofwrite(java.io.OutputStream).booleanSupports chunking to designate a command boundary.booleanDoesRemoteInputStreamsupports greedy flag.booleanDoes this implementation supports multi-classloader serialization inUserRequest?booleanDoes the implementation supports window size control over pipes?booleanDoes the implementation allow classes to be prefetched and JARs to be cached?booleanSupportsProxyExceptionas a fallback when failing to deserializeUserRequestexceptions.booleanDoesProxyWritersupports proper throttling? This flag is also used to check other improvements made in ProxyWriter at the same time.toASCII()Useswrite(java.io.OutputStream)to serialize this object to a Base64-encoded ASCII stream.toString()
-
Field Details
-
KEY
Key usable as a WebSocket HTTP header to negotiate capabilities.- See Also:
-
NONE
-
-
Constructor Details
-
Capability
public Capability()
-
-
Method Details
-
supportsMultiClassLoaderRPC
public boolean supportsMultiClassLoaderRPC()Does this implementation supports multi-classloader serialization inUserRequest?- See Also:
-
supportsPipeThrottling
public boolean supportsPipeThrottling()Does the implementation supports window size control over pipes?- See Also:
-
hasMimicException
Deprecated.no longer used -
supportsChunking
public boolean supportsChunking()Supports chunking to designate a command boundary.In this mode, the wire format of the data changes to:
- Include the framing (length+payload) so that a command boundary can be discovered without understanding the Java serialization wire format.
- Each command is serialized by its
ObjectOutputStream
- See Also:
-
supportsPrefetch
public boolean supportsPrefetch()Does the implementation allow classes to be prefetched and JARs to be cached?- Since:
- 2.24
-
supportsGreedyRemoteInputStream
public boolean supportsGreedyRemoteInputStream()DoesRemoteInputStreamsupports greedy flag.- Since:
- 2.35
-
supportsProxyWriter2_35
public boolean supportsProxyWriter2_35()DoesProxyWritersupports proper throttling? This flag is also used to check other improvements made in ProxyWriter at the same time.- Since:
- 2.35
-
supportsProxyExceptionFallback
public boolean supportsProxyExceptionFallback()SupportsProxyExceptionas a fallback when failing to deserializeUserRequestexceptions.- Since:
- 3.19
- See Also:
-
read
The opposite operation ofwrite(java.io.OutputStream).- Throws:
IOException
-
toASCII
Useswrite(java.io.OutputStream)to serialize this object to a Base64-encoded ASCII stream.- Throws:
IOException
-
fromASCII
The inverse oftoASCII().- Throws:
IOException
-
toString
-