public class Bootstrapper
extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
static class |
Bootstrapper.ConfigServer |
ConfigServer specifies a configuration server
supporting requests to create a REST server.
|
static class |
Bootstrapper.RESTServer |
RESTServer specifies an application providing
access to a database using built-in RESTful services.
|
Constructor | Description |
---|---|
Bootstrapper() |
Modifier and Type | Method | Description |
---|---|---|
static void |
checkProperties(java.util.Properties properties) |
|
static java.lang.String |
getUsage() |
|
static java.lang.String |
joinList(java.util.List<java.lang.String> list) |
|
static java.lang.String |
joinList(java.util.List<java.lang.String> list,
java.lang.String sep) |
|
static
java.util.List<java.lang.String> |
listInvalidKeys(java.util.Properties properties) |
|
static void |
main(java.lang.String[] args) |
Command-line invocation.
|
void |
makeServer(Bootstrapper.ConfigServer configServer,
Bootstrapper.RESTServer restServer) |
Programmatic invocation.
|
void |
makeServer(java.util.Properties properties) |
Invocation based on properties.
|
public static void main(java.lang.String[] args) throws java.io.IOException
args
- command-line arguments specifying the
configuration and REST serverjava.io.IOException
- if a communication error
occurspublic void makeServer(java.util.Properties properties) throws java.io.IOException
properties
- the specification of the
configuration and REST serverjava.io.IOException
- if a communication error
occurspublic void makeServer(Bootstrapper.ConfigServer configServer, Bootstrapper.RESTServer restServer) throws java.io.IOException
configServer
- the configuration server for
creating the REST serverrestServer
- the specification of the REST
serverjava.io.IOException
- if a communication error
occurspublic static java.lang.String getUsage()
public static void checkProperties(java.util.Properties properties)
public static java.util.List<java.lang.String> listInvalidKeys(java.util.Properties properties)
public static java.lang.String joinList(java.util.List<java.lang.String> list)
public static java.lang.String joinList(java.util.List<java.lang.String> list, java.lang.String sep)
Copyright © 2022 MarkLogic Corporation