Class DummyAdminServer
- java.lang.Object
-
- org.apache.zookeeper.server.admin.DummyAdminServer
-
- All Implemented Interfaces:
AdminServer
public class DummyAdminServer extends Object implements AdminServer
An AdminServer that does nothing. We use this class when we wish to disable the AdminServer. (This way we only have to consider whether the server is enabled when we create the AdminServer, which is handled by AdminServerFactory.)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.zookeeper.server.admin.AdminServer
AdminServer.AdminServerException
-
-
Constructor Summary
Constructors Constructor Description DummyAdminServer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setZooKeeperServer(ZooKeeperServer zkServer)
void
shutdown()
void
start()
-
-
-
Method Detail
-
start
public void start() throws AdminServer.AdminServerException
- Specified by:
start
in interfaceAdminServer
- Throws:
AdminServer.AdminServerException
-
shutdown
public void shutdown() throws AdminServer.AdminServerException
- Specified by:
shutdown
in interfaceAdminServer
- Throws:
AdminServer.AdminServerException
-
setZooKeeperServer
public void setZooKeeperServer(ZooKeeperServer zkServer)
- Specified by:
setZooKeeperServer
in interfaceAdminServer
-
-