public class JettyAdminServer extends Object implements AdminServer
Commands
,
CommandOutputter
AdminServer.AdminServerException
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_COMMAND_URL |
static int |
DEFAULT_HTTP_VERSION |
static int |
DEFAULT_IDLE_TIMEOUT |
static int |
DEFAULT_PORT |
static int |
DEFAULT_STS_MAX_AGE |
Constructor and Description |
---|
JettyAdminServer() |
JettyAdminServer(String address,
int port,
int timeout,
String commandUrl,
int httpVersion,
boolean portUnification) |
Modifier and Type | Method and Description |
---|---|
void |
setZooKeeperServer(ZooKeeperServer zkServer)
Set the ZooKeeperServer that will be used to run Commands.
|
void |
shutdown()
Stop the embedded Jetty server.
|
void |
start()
Start the embedded Jetty server.
|
public static final int DEFAULT_PORT
public static final int DEFAULT_IDLE_TIMEOUT
public static final String DEFAULT_COMMAND_URL
public static final int DEFAULT_STS_MAX_AGE
public static final int DEFAULT_HTTP_VERSION
public JettyAdminServer() throws AdminServer.AdminServerException, IOException, GeneralSecurityException
public JettyAdminServer(String address, int port, int timeout, String commandUrl, int httpVersion, boolean portUnification) throws IOException, GeneralSecurityException
IOException
GeneralSecurityException
public void start() throws AdminServer.AdminServerException
start
in interface AdminServer
AdminServer.AdminServerException
public void shutdown() throws AdminServer.AdminServerException
shutdown
in interface AdminServer
AdminServer.AdminServerException
public void setZooKeeperServer(ZooKeeperServer zkServer)
setZooKeeperServer
in interface AdminServer
Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.