public class CliManagerImpl extends Object implements CliEntryPoint, Serializable
CliEntryPoint
implementation exposed to the remote CLI.VERSION
Constructor and Description |
---|
CliManagerImpl(hudson.remoting.Channel channel) |
Modifier and Type | Method and Description |
---|---|
void |
authenticate(String protocol,
hudson.remoting.Pipe c2s,
hudson.remoting.Pipe s2c)
Initiates authentication out of band.
|
boolean |
hasCommand(String name)
Does the named command exist?
|
int |
main(List<String> args,
Locale locale,
InputStream stdin,
OutputStream stdout,
OutputStream stderr)
Just like the static main method.
|
int |
protocolVersion()
Returns
CliEntryPoint.VERSION , so that the client and the server can detect version incompatibility
gracefully. |
public int main(List<String> args, Locale locale, InputStream stdin, OutputStream stdout, OutputStream stderr)
CliEntryPoint
main
in interface CliEntryPoint
locale
- Locale of this client.public void authenticate(String protocol, hudson.remoting.Pipe c2s, hudson.remoting.Pipe s2c)
CliEntryPoint
This method starts two-way byte channel that allows the client and the server to perform authentication. The current supported implementation is based on SSH public key authentication that mutually authenticates clients and servers.
authenticate
in interface CliEntryPoint
protocol
- Currently only "ssh" is supported.public boolean hasCommand(String name)
CliEntryPoint
hasCommand
in interface CliEntryPoint
public int protocolVersion()
CliEntryPoint
CliEntryPoint.VERSION
, so that the client and the server can detect version incompatibility
gracefully.protocolVersion
in interface CliEntryPoint
Copyright © 2019. All rights reserved.