Package es.bsc.dataclay.util.configs
Class CfgDataService
- java.lang.Object
-
- es.bsc.dataclay.util.configs.CfgDataService
-
public final class CfgDataService extends Object
This class represents the configuration used by Data Service.
-
-
Constructor Summary
Constructors Constructor Description CfgDataService(String newname, DBHandlerConf newdbHandlerConf)Creates a new CfgDataService with name and Database Handler specification providedCfgDataService(String newname, String newhostname, int newtcpPort, DBHandlerConf newdbHandlerConf)Creates a new CfgDataService with name, port, hostname and Database Handler specification provided
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DBHandlerConfgetDbHandlerConf()Get the CfgDataService::dbHandlerConfStringgetHostname()Get the CfgDataService::hostnameStringgetName()Get the CfgDataService::nameintgetTcpPort()Get the CfgDataService::tcpPort
-
-
-
Constructor Detail
-
CfgDataService
public CfgDataService(String newname, DBHandlerConf newdbHandlerConf)
Creates a new CfgDataService with name and Database Handler specification provided- Parameters:
newname- Hostname of the DataServicenewdbHandlerConf- Database Handler configuration
-
CfgDataService
public CfgDataService(String newname, String newhostname, int newtcpPort, DBHandlerConf newdbHandlerConf)
Creates a new CfgDataService with name, port, hostname and Database Handler specification provided- Parameters:
newname- Name of the DataServicenewhostname- Hostname of the DataServicenewtcpPort- Port of TCP DataServicenewdbHandlerConf- Database Handler configuration
-
-
Method Detail
-
getName
public String getName()
Get the CfgDataService::name- Returns:
- the port
-
getDbHandlerConf
public DBHandlerConf getDbHandlerConf()
Get the CfgDataService::dbHandlerConf- Returns:
- the dbHandlerConf
-
getHostname
public String getHostname()
Get the CfgDataService::hostname- Returns:
- the hostname
-
getTcpPort
public int getTcpPort()
Get the CfgDataService::tcpPort- Returns:
- the tcpPort
-
-