public class JettyAdminServer extends Object implements AdminServer
Commands, 
CommandOutputterAdminServer.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.AdminServerExceptionpublic void start()
           throws AdminServer.AdminServerException
start in interface AdminServerAdminServer.AdminServerExceptionpublic void shutdown()
              throws AdminServer.AdminServerException
shutdown in interface AdminServerAdminServer.AdminServerExceptionpublic void setZooKeeperServer(ZooKeeperServer zkServer)
setZooKeeperServer in interface AdminServerCopyright © 2008–2021 The Apache Software Foundation. All rights reserved.