public class ServerV1 extends java.lang.Object implements Server
| Modifier and Type | Method and Description |
|---|---|
CacheResult |
cache()
Lists the cached configuration values after the project is configured.
|
CodeModel |
codemodel()
Requests the project's code model once its configured successfully.
|
ComputeResult |
compute()
Computes, i.e., generates the build system files in the build directory.
|
ConfigureCommandResult |
configure(java.lang.String... cacheArguments)
Configures our project for build.
|
boolean |
connect()
Starts and connects to a Cmake server and sends a HelloRequest.
|
void |
disconnect()
Disconnected from the Cmake server.
|
java.lang.String |
getCCompilerExecutable()
Returns the compiler executable used C files.
|
java.lang.String |
getCppCompilerExecutable()
Returns the compiler executable used Cpp files.
|
java.util.List<ProtocolVersion> |
getSupportedVersion()
Cmake server returns a list of supported versions when a connection is established (via the
HelloResult).
|
GlobalSettings |
globalSettings()
Request to get the state of Cmake (after a successful handshake).
|
HandshakeResult |
handshake(HandshakeRequest handshakeRequest)
One of the first request a client may send to the Cmake server.
|
boolean |
isConnected()
Returns the connection status to the Cmake server
|
public boolean connect()
throws java.io.IOException
Serverpublic void disconnect()
Serverdisconnect in interface Serverpublic boolean isConnected()
ServerisConnected in interface Serverpublic java.util.List<ProtocolVersion> getSupportedVersion()
ServergetSupportedVersion in interface Serverpublic HandshakeResult handshake(@NonNull HandshakeRequest handshakeRequest) throws java.io.IOException
Serverpublic ConfigureCommandResult configure(java.lang.String... cacheArguments) throws java.io.IOException
Serverconfigure in interface ServercacheArguments - list of strings to configure via the cache argument keys. These string
are interpreted similar to cmake command line client.java.io.IOException - I/O failurepublic ComputeResult compute() throws java.io.IOException
Serverpublic CodeModel codemodel() throws java.io.IOException
Serverpublic CacheResult cache() throws java.io.IOException
Serverpublic GlobalSettings globalSettings() throws java.io.IOException
ServerglobalSettings in interface Serverjava.io.IOException - I/O failurepublic java.lang.String getCCompilerExecutable()
ServergetCCompilerExecutable in interface Serverpublic java.lang.String getCppCompilerExecutable()
ServergetCppCompilerExecutable in interface Server