public abstract class DiscoveryModuleFactory
extends com.streamscape.sef.dispatcher.AbstractDiscoveryModuleFactory
Title: Service Event Fabric Core
Description: Defines a factory managing DiscoveryModuleFactory
objects.
Module
class and
invoke ModuleFactory.addModule(String, String, String, java.util.Map)
method.
activateModule(String)
method.
Only one module can be active.
Copyright: Copyright (c) 2011
Company: StreamScape Technologies
DEFAULT_SERIAL_VERSION_ID
Modifier and Type | Method and Description |
---|---|
void |
activateModule(java.lang.String name)
Activates the specified module.
|
DiscoveryModuleConfiguration |
getActiveModuleConfiguration()
Returns a configuration object of the active module.
|
DiscoveryModuleConfiguration |
getModuleConfiguration(java.lang.String name)
Returns a configuration object of the specified module.
|
static DirectoryTable |
readDirectoryTable(java.lang.String filename)
Reads the
DirectoryTable object from the specified file. |
static void |
writeDirectoryTable(DirectoryTable directoryTable,
java.lang.String filename)
Writes the specified
DirectoryTable object to the specified file. |
addModule, existsModule, isModuleActive, listModules, removeModule, saveModule
getContext, getContextType, hasContext
clone, getSerialVersionUID
public DiscoveryModuleConfiguration getActiveModuleConfiguration()
getActiveModuleConfiguration
in class ModuleFactory
public DiscoveryModuleConfiguration getModuleConfiguration(java.lang.String name)
getModuleConfiguration
in class ModuleFactory
name
- the module name.null
if this does not exist.public void activateModule(java.lang.String name) throws ModuleFactoryException
name
- the name of the module to be activated.ModuleFactoryException
- if the specified module does not exist or
if the specified module is already active or
if some error occurs during initialization of the module's implementing object.public static DirectoryTable readDirectoryTable(java.lang.String filename) throws FabricException
DirectoryTable
object from the specified file.filename
- the specified file name.DirectoryTable
object.FabricException
- if some error occurs.public static void writeDirectoryTable(DirectoryTable directoryTable, java.lang.String filename) throws FabricException
DirectoryTable
object to the specified file.directoryTable
- the DirectoryTable
object to be written.filename
- the specified file name.FabricException
- if some error occurs.Copyright © 2015-2024 StreamScape Technologies. All rights reserved.