public class TLPAcceptor extends com.streamscape.sef.network.mf.admin.AbstractAcceptor implements Acceptor
Title: Service Event Fabric Core
Description: Defines a TLP Acceptor.
Copyright: Copyright (c) 2010
Company: StreamScape Technologies
DEFAULT_SERIAL_VERSION_ID
Constructor and Description |
---|
TLPAcceptor() |
TLPAcceptor(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
abortOnFailure()
Checks if the current node should be aborted in case of a failure during initialization or start-up of the acceptor.
|
boolean |
anonymousRegistration()
Checks if the acceptor enables an anonymous registration of new users.
|
boolean |
autoStart()
Checks if the acceptor should be automatically started by
AcceptorManager . |
boolean |
enableSSL()
Checks if the SSL is enabled for the acceptor.
|
java.lang.String |
getDescription()
Returns a description of the acceptor.
|
IncomingConnectionChannel |
getIncomingConnectionChannel() |
java.lang.String |
getName()
Returns a name of the acceptor.
|
OutgoingConnectionChannel |
getOutgoingConnectionChannel() |
LinkProtocol |
getProtocol()
Returns a protocol of the acceptor.
|
java.util.Date |
getTimestamp() |
java.lang.String |
getURL()
Returns a URL of the acceptor.
|
void |
init(RuntimeContext context)
Initializes the object.
|
boolean |
keepAlive()
Checks if the acceptor will periodically test the viability of established connections.
|
void |
setAbortOnFailure(boolean abortOnFailure)
Sets a parameter specifying if the current node should be aborted in case of a failure during initialization or start-up of the acceptor.
|
void |
setAnonymousRegistration(boolean anonymousRegistration)
Sets a parameter specifying if the acceptor enables an anonymous registration of new users.
|
void |
setAutoStart(boolean autoStart)
Sets a parameter specifying if the acceptor should be automatically started by
AcceptorManager . |
void |
setConnectionFactory(com.streamscape.sef.network.tlp.impl.ConnectionFactoryImpl connectionFactory) |
void |
setDescription(java.lang.String description)
Sets the specified description of the acceptor.
|
void |
setKeepAlive(boolean keepAlive)
Checks the
keepAlive parameter. |
void |
touch() |
destroy, getAddress, getError, isStarted, isValid, reset, setEnableSSL, setURL, start, stop
clone, getSerialVersionUID
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAddress, getError, isStarted, isValid, reset, setEnableSSL, setURL, start, stop
destroy
getSerialVersionUID
clone
public TLPAcceptor()
public TLPAcceptor(java.lang.String name)
public void init(RuntimeContext context) throws java.lang.Exception
ConfigurationObject
init
in interface ConfigurationObject
init
in class com.streamscape.sef.network.mf.admin.AbstractAcceptor
FabricException
- if some error occurs.java.lang.Exception
public LinkProtocol getProtocol()
Acceptor
getProtocol
in interface Acceptor
public java.lang.String getName()
Acceptor
getName
in interface NamedObject
getName
in interface Acceptor
getName
in class com.streamscape.sef.dispatcher.AcceptorHelper
public java.lang.String getDescription()
Acceptor
getDescription
in interface Acceptor
public void setDescription(java.lang.String description)
Acceptor
setDescription
in interface Acceptor
description
- the description to be set.public java.lang.String getURL()
Acceptor
public boolean autoStart()
Acceptor
AcceptorManager
.public void setAutoStart(boolean autoStart)
Acceptor
AcceptorManager
.setAutoStart
in interface Acceptor
autoStart
- the parameter to be set.public boolean abortOnFailure()
Acceptor
abortOnFailure
in interface Acceptor
abortOnFailure
in interface ConfigurationObject
true if the current node should be aborted on the acceptor's failure, false
otherwise.
public void setAbortOnFailure(boolean abortOnFailure)
Acceptor
setAbortOnFailure
in interface Acceptor
abortOnFailure
- the parameter to be set.public boolean anonymousRegistration()
Acceptor
anonymousRegistration
in interface Acceptor
true if the acceptor enables an anonymous registration, false
otherwise.
public void setAnonymousRegistration(boolean anonymousRegistration)
Acceptor
setAnonymousRegistration
in interface Acceptor
anonymousRegistration
- true
if the acceptor enables an anonymous registration, false
otherwise.public boolean keepAlive()
SocketOptions.SO_KEEPALIVE
for further details.true
if the acceptor periodically checks the viability of established connections, false
otherwise.public void setKeepAlive(boolean keepAlive)
public boolean enableSSL()
Acceptor
public OutgoingConnectionChannel getOutgoingConnectionChannel()
public IncomingConnectionChannel getIncomingConnectionChannel()
public void setConnectionFactory(com.streamscape.sef.network.tlp.impl.ConnectionFactoryImpl connectionFactory)
public java.util.Date getTimestamp()
public void touch()
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.