@Contract
public interface EmbeddedContainer
Port
instance, it's not automatic, for instance JPA and
other non network based containers might not.Modifier and Type | Method and Description |
---|---|
void |
bind(Port port,
String protocol)
Binds a port using a specific protocol to this container.
|
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
|
void bind(Port port, String protocol)
port
- 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.List<Sniffer> getSniffers()
void start() throws LifecycleException
LifecycleException
- if the container cannot startedvoid stop() throws LifecycleException
LifecycleException
- if the container cannot be stoppedCopyright © 2020. All rights reserved.