|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.cli.CliManagerImpl
public class CliManagerImpl
CliEntryPoint
implementation exposed to the remote CLI.
Field Summary |
---|
Fields inherited from interface hudson.cli.CliEntryPoint |
---|
VERSION |
Constructor Summary | |
---|---|
CliManagerImpl(hudson.remoting.Channel channel)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CliManagerImpl(hudson.remoting.Channel channel)
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |