|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IGenericServerContainerGroupFactory
Generic server container group factory service. This service interface defines
the contract for dynamically creating ECF generic server container groups for a given hostname and port. A container group
is a set of IContainer
instances...all of which are associated with a single
hostname and port combination.
Field Summary | |
---|---|
static int |
DEFAULT_PORT
|
static int |
DEFAULT_SECURE_PORT
|
static java.lang.String |
SSLTRANSPORT_CONTAINER_PROP
|
Method Summary | |
---|---|
IGenericServerContainerGroup |
createContainerGroup(java.lang.String hostname)
Create a new container group given a hostname using the DEFAULT_PORT . |
IGenericServerContainerGroup |
createContainerGroup(java.lang.String hostname,
int port)
Create a new container group given a hostname, and port. |
IGenericServerContainerGroup |
createContainerGroup(java.lang.String hostname,
int port,
java.util.Map defaultContainerProperties)
Create a new container group given a hostname, port, and a Map of default container properties. |
IGenericServerContainerGroup |
getContainerGroup(java.lang.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(java.lang.String hostname,
int port)
Remove the container group with the given hostname and port. |
Field Detail |
---|
static final int DEFAULT_PORT
static final int DEFAULT_SECURE_PORT
static final java.lang.String SSLTRANSPORT_CONTAINER_PROP
Method Detail |
---|
IGenericServerContainerGroup createContainerGroup(java.lang.String hostname, int port, java.util.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.IGenericServerContainerGroup
IGenericServerContainerGroup createContainerGroup(java.lang.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.IGenericServerContainerGroup
IGenericServerContainerGroup createContainerGroup(java.lang.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.IGenericServerContainerGroup
IGenericServerContainerGroup getContainerGroup(java.lang.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(java.lang.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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |