- All Implemented Interfaces:
public abstract class Command extends Object implements SerializableOne-way command to be sent over to the remote system and executed there. This is the smallest unit of message in remoting from one side to another, such as "please execute this method" or "here's the return value from an earlier method call". This is layer 0, the lower most layer.
- Kohsuke Kawaguchi
- See Also:
Channel.Listener.onRead(hudson.remoting.Channel, hudson.remoting.Command, long),
Channel.Listener.onWrite(hudson.remoting.Channel, hudson.remoting.Command, long), Serialized Form
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description
getCreationStackTrace()Obtains a diagnostic stack trace recording the point at which the command was created.
readFrom(Channel channel, byte payload)Reads command from the specified payload.
toString()Should provide concise information useful for
public static Command readFrom(@NonNull Channel channel, @NonNull byte payload) throws IOException, ClassNotFoundExceptionReads command from the specified payload.
@CheckForNull public Throwable getCreationStackTrace()Obtains a diagnostic stack trace recording the point at which the command was created. This is not necessarily the point at which the command was delivered or run. Part of the stack trace might have been produced on a remote machine, in which case
ProxyExceptionmay be used in place of the original.
- an information stack trace, or null if not recorded