public interface IGenericServerContainerGroupFactory
IContainer instances...all of which are associated with a single
hostname and port combination.| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PORT |
static int |
DEFAULT_SECURE_PORT |
static String |
SSLTRANSPORT_CONTAINER_PROP |
| Modifier and Type | Method and Description |
|---|---|
IGenericServerContainerGroup |
createContainerGroup(String hostname)
Create a new container group given a hostname using the
DEFAULT_PORT. |
IGenericServerContainerGroup |
createContainerGroup(String hostname,
int port)
Create a new container group given a hostname, and port.
|
IGenericServerContainerGroup |
createContainerGroup(String hostname,
int port,
InetAddress bindAddress,
Map defaultContainerProperties)
Create a new container group given a hostname, port, and a Map of default container properties.
|
IGenericServerContainerGroup |
createContainerGroup(String hostname,
int port,
Map defaultContainerProperties)
Create a new container group given a hostname, port, and a Map of default container properties.
|
IGenericServerContainerGroup |
getContainerGroup(String hostname,
int port)
Get the container group associated with the given hostname and port.
|
IGenericServerContainerGroup[] |
getContainerGroups()
Get all the container groups created by this container group factory.
|
IGenericServerContainerGroup |
removeContainerGroup(String hostname,
int port)
Remove the container group with the given hostname and port.
|
static final int DEFAULT_PORT
static final int DEFAULT_SECURE_PORT
static final String SSLTRANSPORT_CONTAINER_PROP
IGenericServerContainerGroup createContainerGroup(String hostname, int port, InetAddress bindAddress, Map defaultContainerProperties) throws GenericServerContainerGroupCreateException
hostname - the hostname associated with the new container group. Must not be null.port - the port that the new container group will listen on (once IGenericServerContainerGroup.startListening()
is called). Should be a valid tcp port, openable for listening by this process via IGenericServerContainerGroup.startListening().bindAddress - an InetAddress specifying what the resulting container group will bind the ServerSocket to when IGenericServerContainerGroup.startListening()
is called. May be null. If null then the ServerSocket binding will occur for any/all available addressesdefaultContainerProperties - a Map of default properties passed to any IContainer instances created within the resulting group.null.GenericServerContainerGroupCreateException - if a container group exists for the given hostname and port combination.IGenericServerContainerGroupIGenericServerContainerGroup createContainerGroup(String hostname, int port, Map defaultContainerProperties) throws GenericServerContainerGroupCreateException
hostname - the hostname associated with the new container group. Must not be null.port - the port that the new container group will listen on (once IGenericServerContainerGroup.startListening()
is called). Should be a valid tcp port, openable for listening by this process via IGenericServerContainerGroup.startListening().defaultContainerProperties - a Map of default properties passed to any IContainer instances created within the resulting group.null.GenericServerContainerGroupCreateException - if a container group exists for the given hostname and port combination.IGenericServerContainerGroupIGenericServerContainerGroup createContainerGroup(String hostname, int port) throws GenericServerContainerGroupCreateException
hostname - the hostname associated with the new container group. Must not be null.port - the port that the new container group will listen on (once IGenericServerContainerGroup.startListening()
is called). Should be a valid tcp port, openable for listening by this process via IGenericServerContainerGroup.startListening().null.GenericServerContainerGroupCreateException - if a container group exists for the given hostname and port combination.IGenericServerContainerGroupIGenericServerContainerGroup createContainerGroup(String hostname) throws GenericServerContainerGroupCreateException
DEFAULT_PORT.hostname - the hostname associated with the new container group. Must not be null.null.GenericServerContainerGroupCreateException - if a container group exists for the given hostname and port combination.IGenericServerContainerGroupIGenericServerContainerGroup getContainerGroup(String hostname, int port)
hostname - the hostname associated with the new container group. Must not be null.port - the port of the desired container group.null will be returned.IGenericServerContainerGroup[] getContainerGroups()
null, but
may return empty array if no generic server container groups have been created by this factory.IGenericServerContainerGroup removeContainerGroup(String hostname, int port)
hostname - the hostname of the container group to remove. Must not be null.port - the port of the desired container group.null will be returned.getContainerGroup(String, int)Copyright © 2019 Eclipse Foundation. All rights reserved.