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
Modifier and TypeFieldDescriptionstatic final String
Key usable as a WebSocket HTTP header to negotiate capabilities.static final Capability
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Capability
The inverse oftoASCII()
.boolean
Deprecated.no longer usedstatic Capability
read
(InputStream is) The opposite operation ofwrite(java.io.OutputStream)
.boolean
Supports chunking to designate a command boundary.boolean
DoesRemoteInputStream
supports greedy flag.boolean
Does this implementation supports multi-classloader serialization inUserRequest
?boolean
Does the implementation supports window size control over pipes?boolean
Does the implementation allow classes to be prefetched and JARs to be cached?boolean
SupportsProxyException
as a fallback when failing to deserializeUserRequest
exceptions.boolean
DoesProxyWriter
supports 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:
-
MultiClassLoaderSerializer
-
supportsPipeThrottling
public boolean supportsPipeThrottling()Does the implementation supports window size control over pipes?- See Also:
-
ProxyOutputStream
-
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()DoesRemoteInputStream
supports greedy flag.- Since:
- 2.35
-
supportsProxyWriter2_35
public boolean supportsProxyWriter2_35()DoesProxyWriter
supports 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()SupportsProxyException
as a fallback when failing to deserializeUserRequest
exceptions.- 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
-