public abstract class Command extends Object implements Serializable
At this level, remoting of class files are not provided, so both Channels
need to have the definition of Command-implementation.
Channel.Listener.onRead(hudson.remoting.Channel, hudson.remoting.Command, long),
Channel.Listener.onWrite(hudson.remoting.Channel, hudson.remoting.Command, long),
Serialized Form| Modifier and Type | Method and Description |
|---|---|
Throwable |
getCreationStackTrace()
Obtains a diagnostic stack trace recording the point at which the command was created.
|
static Command |
readFrom(Channel channel,
byte[] payload)
Reads command from the specified payload.
|
abstract String |
toString()
Should provide concise information useful for
Channel.Listener. |
public static Command readFrom(@Nonnull Channel channel, @Nonnull byte[] payload) throws IOException, ClassNotFoundException
channel - Channelpayload - PayloadIOException - Read exceptionClassNotFoundException - Deserialization error: class not found@CheckForNull public Throwable getCreationStackTrace()
ProxyException may be used in place of the original.public abstract String toString()
Channel.Listener.Copyright © 2004–2020. All rights reserved.