Package es.bsc.dataclay.logic
Class LogicModuleFactory
- java.lang.Object
-
- es.bsc.dataclay.logic.LogicModuleFactory
-
public class LogicModuleFactory extends Object
Factory for the LogicModule instance.When instantiating the LogicModule, the specific DBHandler is also instantiated (following the type in the configuration).
-
-
Constructor Summary
Constructors Constructor Description LogicModuleFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LogicModule
initLogicModule(String name, String hostName, int port, boolean inMemory, String theexposedIPForClient)
Return the new LogicModule instance.
-
-
-
Method Detail
-
initLogicModule
public static LogicModule initLogicModule(String name, String hostName, int port, boolean inMemory, String theexposedIPForClient) throws InterruptedException
Return the new LogicModule instance.- Parameters:
name
- Name for the LogicModulehostName
- Hostname for the LogicModuleport
- Port the LogicModule will be listening toinMemory
- inMemory flag (?)theexposedIPForClient
- IPs to be send to clients when information of a registered EE/SL is required- Returns:
- The new LogicModule instance
- Throws:
InterruptedException
- When the actual LogicModule subtype instantiation fails
-
-