Class SessionCommandBuilder
- java.lang.Object
-
- com.e1c.g5.v8.dt.platform.standaloneserver.core.SessionCommandBuilder
-
public class SessionCommandBuilder extends Object
Builds command line arguments for the session administration mode of ibcmd.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SessionCommandBuilder.CommandLineBuilderWithMandatoryParameters
Represents builder that has mandatory parameters and so caller have use one of the sub-builders to actually obtain command line.static class
SessionCommandBuilder.CommandLineBuilderWithoutMandatoryParameters
Represents a builder that does not have mandatory options and can actually build the command line.static class
SessionCommandBuilder.InfoBuilder
Builds arguments for the 'info' command.static class
SessionCommandBuilder.InterruptServerCallBuilder
Builds arguments for the 'interrupt-current-server-call' command.static class
SessionCommandBuilder.ListBuilder
Builds arguments for the 'list' command.static class
SessionCommandBuilder.TerminalCommandLineBuilder
Command line builder that does not add any new arguments but allows to finish build process with already accumulated parameters.static class
SessionCommandBuilder.TerminateBuilder
Builds arguments for the 'terminate' command.static class
SessionCommandBuilder.WithTargetSessionCommandLineBuilder
Further builds command line once target standalone server was specified.
-
Constructor Summary
Constructors Constructor Description SessionCommandBuilder(List<String> args)
Creates new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SessionCommandBuilder.WithTargetSessionCommandLineBuilder
forRemoteStandaloneServer(String url)
Specifies remote standalone server process to interact with.SessionCommandBuilder.WithTargetSessionCommandLineBuilder
forStandaloneServerProcessWithPid(long pid)
Specifies local standalone server process to interact with.
-
-
-
Method Detail
-
forStandaloneServerProcessWithPid
public SessionCommandBuilder.WithTargetSessionCommandLineBuilder forStandaloneServerProcessWithPid(long pid)
Specifies local standalone server process to interact with.- Parameters:
pid
- Process identifier of the local standalone server.- Returns:
- Command line builder. Never
null
.
-
forRemoteStandaloneServer
public SessionCommandBuilder.WithTargetSessionCommandLineBuilder forRemoteStandaloneServer(String url)
Specifies remote standalone server process to interact with.- Parameters:
url
- SSH gateway URL of standalone server. Must not benull
.- Returns:
- Command line builder. Never
null
.
-
-