public interface AcceptorFactory
Title: Service Event Fabric Core
Description: Defines an Acceptor Factory managing Acceptor instances.
Copyright: Copyright (c) 2010
Company: StreamScape Technologies
Modifier and Type | Method and Description |
---|---|
Acceptor |
createAcceptor(java.lang.String acceptorName)
Creates a new acceptor instance with the specified name and default class.
|
Acceptor |
createAcceptor(java.lang.String acceptorName,
java.lang.Class acceptorClass)
Creates a new acceptor instance with the specified name and class.
|
LinkProtocol |
getAcceptorProtocol()
Returns a base acceptor protocol supported by the factory.
|
java.util.List |
getAcceptors()
Returns a list of all acceptors registered with the factory.
|
java.lang.String |
getName()
Returns a name of the factory.
|
java.lang.String |
getNamespace()
Returns a namespace indicating where the acceptors are stored in the Repository.
|
boolean |
isAcceptorRegistered(java.lang.String acceptorName)
Checks if the specified acceptor is registered with the factory.
|
java.util.List |
listAcceptors()
Returns a list of names of all acceptors registered with the factory.
|
java.util.List |
listSupportedModels()
Returns a list of the acceptor models supported by the factory.
|
Acceptor |
loadAcceptor(java.lang.String acceptorName)
(Re)Loads the specified existing acceptor from the Repository.
|
Acceptor |
lookupAcceptor(java.lang.String acceptorName)
Finds and returns an acceptor with the specified name.
|
Acceptor |
registerAcceptor(Acceptor acceptor)
Registers the specified acceptor with the factory and saves it to the Repository.
|
Acceptor |
registerAcceptor(java.lang.String acceptorName)
Loads the specified acceptor from the Repository and registers it with the factory.
|
void |
saveAcceptor(Acceptor acceptor)
Saves the specified acceptor to the Repository.
|
void |
startAcceptors()
Starts all acceptors.
|
void |
stopAcceptors()
Stops all acceptors.
|
void |
unregisterAcceptor(java.lang.String acceptorName)
Unregisters the specified acceptor from the factory and removes it from the Repository.
|
java.lang.String getName()
LinkProtocol getAcceptorProtocol()
java.lang.String getNamespace()
java.util.List listSupportedModels()
Acceptor createAcceptor(java.lang.String acceptorName)
acceptorName
- the name of the acceptor to be created.Acceptor createAcceptor(java.lang.String acceptorName, java.lang.Class acceptorClass)
acceptorName
- the name of the acceptor to be created.acceptorClass
- the class of the acceptor to be created.null
if the specified class is not supported.Acceptor registerAcceptor(Acceptor acceptor) throws AcceptorFactoryException
acceptor
- the acceptor to be registered.AcceptorFactoryException
- if the specified acceptor is already registered or
if a model of the specified acceptor is not supported or
if some other error occurs.Acceptor registerAcceptor(java.lang.String acceptorName) throws AcceptorFactoryException
acceptor
- the name of acceptor to be registered.AcceptorFactoryException
- if the specified acceptor does not exist in the Repository or
if the specified acceptor is already registered or
if a model of the specified acceptor is not supported or
if some other error occurs.void unregisterAcceptor(java.lang.String acceptorName) throws AcceptorFactoryException
acceptorName
- the name of acceptor to be unregistered.AcceptorFactoryException
- if some error occurs.boolean isAcceptorRegistered(java.lang.String acceptorName)
acceptorName
- the name of the specified acceptor.true
if the acceptor is registered with the factory, false
otherwise.void saveAcceptor(Acceptor acceptor) throws AcceptorFactoryException
acceptor
- the acceptor to be saved.AcceptorFactoryException
- if some error occurs.Acceptor loadAcceptor(java.lang.String acceptorName) throws AcceptorFactoryException
acceptor
- the name of acceptor to be loaded.AcceptorFactoryException
- if the acceptor is not registered or
if the acceptor is started or
if some other error occurs.Acceptor lookupAcceptor(java.lang.String acceptorName)
acceptorName
- the name of acceptor to be found.null
if acceptor is not found.java.util.List getAcceptors()
java.util.List listAcceptors()
void startAcceptors() throws AcceptorException
AcceptorException
- if a critical error occurs during a start-up of an acceptor.void stopAcceptors()
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.