public class CloudPoolServer extends Object
CloudPool instance.
The REST API is fully covered in the
elastisys:scale
cloud pool REST API documentation.| Constructor and Description |
|---|
CloudPoolServer() |
| Modifier and Type | Method and Description |
|---|---|
static org.eclipse.jetty.server.Server |
createServer(CloudPool cloudPool,
CloudPoolOptions options)
Creates a HTTPS server that serves REST API requests for a given
CloudPool. |
static void |
main(CloudPool cloudPool,
String[] args)
Parse command-line arguments and start an HTTPS server that serves REST
API requests for a given
CloudPool. |
static CloudPoolOptions |
parseArgs(String[] args)
Parses command-line arguments into
CloudPoolOptions. |
public static CloudPoolOptions parseArgs(String[] args)
CloudPoolOptions. On failure
to process the command-line arguments, an error will be written together
with a usage string and then the program will exit with a failure code.
The --help will cause the uasge text to be written before exiting
the program (with a zero exit code).args - public static void main(CloudPool cloudPool, String[] args) throws Exception
CloudPool.
A failure to parse the command-line arguments will cause the program to
print a usage message and exit with an error code. The function blocks
until the started server is stopped.cloudPool - The cloud pool that the started server will publish.args - The command-line arguments.Exceptionpublic static org.eclipse.jetty.server.Server createServer(CloudPool cloudPool, CloudPoolOptions options) throws Exception
CloudPool.
The created server is returned with the CloudPool REST API
deployed, but in an unstarted state, so the client is responsible
for starting the server.
The behavior of the HTTPS server is controlled via a set of
CloudPoolOptions.Copyright © 2011–2017 Elastisys. All rights reserved.