@Service public class EmbeddedAdminCtrImpl extends Object implements EmbeddedAdminContainer
| Constructor and Description |
|---|
EmbeddedAdminCtrImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(Port port)
Make the server listen to administrative requests (CLI, REST) on
the passed port.
|
void |
bind(Port port,
String protocol)
Binds a port using a specific protocol to this container.
|
CommandExecution |
execute(String commandName,
CommandParameters params)
Executes synchronously a command
|
List<Sniffer> |
getSniffers()
Returns the list of sniffers associated with this container.
|
void |
start()
Starts the embedded container instance
|
void |
stop()
Stops the embedded container instance
|
public List<Sniffer> getSniffers()
EmbeddedContainergetSniffers in interface EmbeddedContainerpublic void bind(Port port, String protocol)
EmbeddedContainerbind in interface EmbeddedContainerport - the port instance to bindprotocol - the protocol the port should be used for, can
be null and the container can use the port for any protocol(s)
it needs to.public void start()
throws LifecycleException
EmbeddedContainerstart in interface EmbeddedContainerLifecycleException - if the container cannot startedpublic void stop()
throws LifecycleException
EmbeddedContainerstop in interface EmbeddedContainerLifecycleException - if the container cannot be stoppedpublic CommandExecution execute(String commandName, CommandParameters params)
EmbeddedAdminContainerexecute in interface EmbeddedAdminContainercommandName - command name as typed by asadmin usersparams - command parameterspublic void bind(Port port)
EmbeddedAdminContainerbind in interface EmbeddedAdminContainerport - an initialized portCopyright © 2019. All rights reserved.