|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.ecf.server.generic.GenericServerContainerGroupFactory
public class GenericServerContainerGroupFactory
Nested Class Summary | |
---|---|
protected class |
GenericServerContainerGroupFactory.SCGData
|
Field Summary |
---|
Fields inherited from interface org.eclipse.ecf.server.generic.IGenericServerContainerGroupFactory |
---|
DEFAULT_PORT, DEFAULT_SECURE_PORT, SSLTRANSPORT_CONTAINER_PROP |
Constructor Summary | |
---|---|
GenericServerContainerGroupFactory()
|
Method Summary | |
---|---|
void |
close()
|
IGenericServerContainerGroup |
createContainerGroup(java.lang.String hostname)
Create a new container group given a hostname using the IGenericServerContainerGroupFactory.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. |
protected IGenericServerContainerGroup |
createGenericServerContainerGroup(GenericServerContainerGroupFactory.SCGData scgdata,
java.util.Map defaultContainerProperties)
|
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. |
protected boolean |
isSSLTransportSpecified(java.util.Map defaultContainerProperties)
|
IGenericServerContainerGroup |
removeContainerGroup(java.lang.String hostname,
int port)
Remove the container group with the given hostname and port. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericServerContainerGroupFactory()
Method Detail |
---|
public IGenericServerContainerGroup createContainerGroup(java.lang.String hostname, int port, java.util.Map defaultContainerProperties) throws GenericServerContainerGroupCreateException
IGenericServerContainerGroupFactory
createContainerGroup
in interface IGenericServerContainerGroupFactory
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
protected boolean isSSLTransportSpecified(java.util.Map defaultContainerProperties)
protected IGenericServerContainerGroup createGenericServerContainerGroup(GenericServerContainerGroupFactory.SCGData scgdata, java.util.Map defaultContainerProperties) throws GenericServerContainerGroupCreateException
GenericServerContainerGroupCreateException
public IGenericServerContainerGroup createContainerGroup(java.lang.String hostname, int port) throws GenericServerContainerGroupCreateException
IGenericServerContainerGroupFactory
createContainerGroup
in interface IGenericServerContainerGroupFactory
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
public IGenericServerContainerGroup createContainerGroup(java.lang.String hostname) throws GenericServerContainerGroupCreateException
IGenericServerContainerGroupFactory
IGenericServerContainerGroupFactory.DEFAULT_PORT
.
createContainerGroup
in interface IGenericServerContainerGroupFactory
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
public void close()
public IGenericServerContainerGroup getContainerGroup(java.lang.String hostname, int port)
IGenericServerContainerGroupFactory
getContainerGroup
in interface IGenericServerContainerGroupFactory
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.public IGenericServerContainerGroup[] getContainerGroups()
IGenericServerContainerGroupFactory
getContainerGroups
in interface IGenericServerContainerGroupFactory
null
, but
may return empty array if no generic server container groups have been created by this factory.public IGenericServerContainerGroup removeContainerGroup(java.lang.String hostname, int port)
IGenericServerContainerGroupFactory
removeContainerGroup
in interface IGenericServerContainerGroupFactory
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.IGenericServerContainerGroupFactory.getContainerGroup(String, int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |