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_IDLE_TIMEOUT |
static int |
DEFAULT_PORT |
Constructor and Description |
---|
JettyAdminServer() |
JettyAdminServer(String address,
int port,
int timeout,
String commandUrl) |
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 JettyAdminServer() throws AdminServer.AdminServerException
AdminServer.AdminServerException
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–2019 The Apache Software Foundation. All rights reserved.