org.gcube.accounting.usagetracker.configuration
Class Configuration

java.lang.Object
  extended by org.gcube.accounting.webservice.configuration.BaseConfiguration
      extended by org.gcube.accounting.webservice.configuration.PropertiesBaseConfiguration
          extended by org.gcube.accounting.usagetracker.configuration.Configuration
All Implemented Interfaces:
org.gcube.accounting.webservice.configuration.NetworkConfiguration, org.gcube.accounting.webservice.configuration.RawConfiguration, org.gcube.accounting.webservice.configuration.SecurityConfiguration

public class Configuration
extends org.gcube.accounting.webservice.configuration.PropertiesBaseConfiguration

This class models Usage Tracker configuration. It relies on the configuration location defined in the context file.


Field Summary
 
Fields inherited from class org.gcube.accounting.webservice.configuration.PropertiesBaseConfiguration
logger
 
Method Summary
 String getBroker()
          Getter for the broker endpoint
 String getDBHost()
          Getter for the database host
 String getDBName()
          Getter for the database name
 String getDBPassword()
          Getter for the database password
 int getDBPort()
          Getter for the database port
 String getDBUser()
          Getter for the database user
 String getDefaultGroup()
           
static Configuration getInstance()
          Getter for the singleton instance
 String getMembershipPassword()
          Getter for password to use when connecting to the membership service
 String getMembershipServiceURL()
          Getter for the membership service endpoint
 String getMembershipUsername()
          Getter for username to use when connecting to the membership service
 List<Object> getScopes()
          Getter for the scopes
 Boolean isDBAuthnEnabled()
          Is DB authentication enabled?
 Boolean isMembershipServiceAuthnEnabled()
          Should the membership service be contacted?
 Boolean isMembershipServiceEnabled()
          Should the membership service be contacted?
 Boolean isRemoteDBEnabled()
          Should the remote DB cluster be used?
 
Methods inherited from class org.gcube.accounting.webservice.configuration.PropertiesBaseConfiguration
getBoolean, getBoolean, getInt, getInt, getList, getString
 
Methods inherited from class org.gcube.accounting.webservice.configuration.BaseConfiguration
getProxyHost, getProxyPassword, getProxyPort, getProxyUser, getRealm, isAuthnEnabled, isAuthzEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static Configuration getInstance()
Getter for the singleton instance

Returns:

getDBHost

public String getDBHost()
Getter for the database host

Returns:

getDBPort

public int getDBPort()
Getter for the database port

Returns:

isDBAuthnEnabled

public Boolean isDBAuthnEnabled()
Is DB authentication enabled?

Returns:

getDBName

public String getDBName()
Getter for the database name

Returns:

getDBUser

public String getDBUser()
Getter for the database user

Returns:

getDBPassword

public String getDBPassword()
Getter for the database password

Returns:

isMembershipServiceEnabled

public Boolean isMembershipServiceEnabled()
Should the membership service be contacted?

Returns:

getMembershipServiceURL

public String getMembershipServiceURL()
Getter for the membership service endpoint

Returns:

isMembershipServiceAuthnEnabled

public Boolean isMembershipServiceAuthnEnabled()
Should the membership service be contacted?

Returns:

getMembershipUsername

public String getMembershipUsername()
Getter for username to use when connecting to the membership service

Returns:

getMembershipPassword

public String getMembershipPassword()
Getter for password to use when connecting to the membership service

Returns:

getDefaultGroup

public String getDefaultGroup()

getScopes

public List<Object> getScopes()
Getter for the scopes

Returns:

getBroker

public String getBroker()
Getter for the broker endpoint

Returns:

isRemoteDBEnabled

public Boolean isRemoteDBEnabled()
Should the remote DB cluster be used?

Returns:


Copyright © 2013. All Rights Reserved.