|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.officefloor.frame.spi.managedobject.source.impl.AbstractAsyncManagedObjectSource<D,F>
net.officefloor.frame.spi.managedobject.source.impl.AbstractManagedObjectSource<None,Indexed>
net.officefloor.plugin.socket.server.impl.AbstractServerSocketManagedObjectSource<CH>
public abstract class AbstractServerSocketManagedObjectSource<CH extends ConnectionHandler>
Abstract ManagedObjectSource for a ServerSocketChannel.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.officefloor.frame.spi.managedobject.source.impl.AbstractAsyncManagedObjectSource |
|---|
AbstractAsyncManagedObjectSource.Labeller, AbstractAsyncManagedObjectSource.MetaDataContext<D extends Enum<D>,F extends Enum<F>>, AbstractAsyncManagedObjectSource.SpecificationContext |
| Field Summary | |
|---|---|
static String |
PROPERTY_BUFFER_SIZE
Buffer size property name. |
static String |
PROPERTY_MAXIMUM_CONNECTIONS_PER_LISTENER
Maximum connections property name. |
static String |
PROPERTY_PORT
Port property name. |
| Constructor Summary | |
|---|---|
AbstractServerSocketManagedObjectSource()
Default constructor necessary as per ManagedObjectSource. |
|
| Method Summary | |
|---|---|
protected abstract CommunicationProtocol<CH> |
createCommunicationProtocol()
Creates the CommunicationProtocol. |
protected CommunicationProtocol<CH> |
createWrappingCommunicationProtocol(CommunicationProtocol<CH> communicationProtocol)
Creates a wrapping CommunicationProtocol around the input
CommunicationProtocol. |
protected ManagedObject |
getManagedObject()
|
protected void |
loadMetaData(AbstractAsyncManagedObjectSource.MetaDataContext<None,Indexed> context)
|
protected void |
loadSpecification(AbstractAsyncManagedObjectSource.SpecificationContext context)
|
void |
start(ManagedObjectExecuteContext<Indexed> context)
|
void |
stop()
|
| Methods inherited from class net.officefloor.frame.spi.managedobject.source.impl.AbstractManagedObjectSource |
|---|
sourceManagedObject |
| Methods inherited from class net.officefloor.frame.spi.managedobject.source.impl.AbstractAsyncManagedObjectSource |
|---|
getMetaData, getSpecification, init |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PROPERTY_PORT
public static final String PROPERTY_BUFFER_SIZE
public static final String PROPERTY_MAXIMUM_CONNECTIONS_PER_LISTENER
| Constructor Detail |
|---|
public AbstractServerSocketManagedObjectSource()
ManagedObjectSource.
| Method Detail |
|---|
protected abstract CommunicationProtocol<CH> createCommunicationProtocol()
CommunicationProtocol.
CommunicationProtocol.protected CommunicationProtocol<CH> createWrappingCommunicationProtocol(CommunicationProtocol<CH> communicationProtocol)
Creates a wrapping CommunicationProtocol around the input
CommunicationProtocol.
An example would be to add SSL CommunicationProtocol.
This default implementation returns the input
CommunicationProtocol as is.
communicationProtocol - CommunicationProtocol to possibly wrap.
CommunicationProtocol (no wrapping).protected void loadSpecification(AbstractAsyncManagedObjectSource.SpecificationContext context)
loadSpecification in class AbstractAsyncManagedObjectSource<None,Indexed>
protected void loadMetaData(AbstractAsyncManagedObjectSource.MetaDataContext<None,Indexed> context)
throws Exception
loadMetaData in class AbstractAsyncManagedObjectSource<None,Indexed>Exception
public void start(ManagedObjectExecuteContext<Indexed> context)
throws Exception
start in interface ManagedObjectSource<None,Indexed>start in class AbstractAsyncManagedObjectSource<None,Indexed>Exception
protected ManagedObject getManagedObject()
throws Throwable
getManagedObject in class AbstractManagedObjectSource<None,Indexed>Throwablepublic void stop()
stop in interface ManagedObjectSource<None,Indexed>stop in class AbstractAsyncManagedObjectSource<None,Indexed>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||