public interface Acceptor extends ConfigurationObject
Title: Service Event Fabric Core
Description: Defines a network access point to the Fabric node.
Copyright: Copyright (c) 2010
Company: StreamScape Technologies
DEFAULT_SERIAL_VERSION_ID
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.
|
LinkAddress |
getAddress()
Returns the
LinkAddress |
java.lang.String |
getDescription()
Returns a description of the acceptor.
|
java.lang.String |
getError()
Returns an error associated with the invalid acceptor.
|
java.lang.String |
getName()
Returns a name of the acceptor.
|
LinkProtocol |
getProtocol()
Returns a protocol of the acceptor.
|
java.lang.String |
getURL()
Returns a URL of the acceptor.
|
boolean |
isStarted()
Checks if the acceptor is started.
|
boolean |
isValid()
Checks if the acceptor is valid.
|
void |
reset()
Resets the acceptor.
|
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 |
setDescription(java.lang.String description)
Sets the specified description of the acceptor.
|
void |
setEnableSSL(boolean enableSSL)
Checks if the acceptor is started.
|
void |
setURL(java.lang.String url)
Sets the specified URL of the acceptor.
|
void |
start()
Starts the acceptor.
|
void |
stop()
Stops the acceptor.
|
destroy, init
getSerialVersionUID
clone
LinkProtocol getProtocol()
java.lang.String getName()
getName
in interface NamedObject
java.lang.String getDescription()
void setDescription(java.lang.String description)
description
- the description to be set.java.lang.String getURL()
void setURL(java.lang.String url)
url
- the URL to be set.LinkAddress getAddress()
LinkAddress (a real socket address) associated with the acceptor.
If the address is not resolved this method will return null
.
null
if the address is not resolved.boolean autoStart()
AcceptorManager
.true if the acceptor will be auto started, false
otherwise.
void setAutoStart(boolean autoStart)
AcceptorManager
.autoStart
- the parameter to be set.boolean abortOnFailure()
abortOnFailure
in interface ConfigurationObject
true if the current node should be aborted on the acceptor's failure, false
otherwise.
void setAbortOnFailure(boolean abortOnFailure)
abortOnFailure
- the parameter to be set.boolean anonymousRegistration()
true if the acceptor enables an anonymous registration, false
otherwise.
void setAnonymousRegistration(boolean anonymousRegistration)
anonymousRegistration
- true
if the acceptor enables an anonymous registration, false
otherwise.boolean enableSSL()
true
if the SSL is enabled for the acceptor, false
otherwise.void setEnableSSL(boolean enableSSL)
boolean isStarted()
true if the acceptor is started, false
otherwise.
boolean isValid()
AcceptorFactory.registerAcceptor(Acceptor)
and AcceptorFactory.saveAcceptor(Acceptor)
)
or the acceptor cannot be started.true
if the acceptor is valid, false
otherwise.java.lang.String getError()
null
.null
if the acceptor is valid.void start() throws AcceptorException
AcceptorException
void stop() throws AcceptorException
AcceptorException
void reset() throws AcceptorException
AcceptorException
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.