org.duracloud.appconfig.domain
Class DuraserviceConfig

java.lang.Object
  extended by org.duracloud.appconfig.domain.BaseConfig
      extended by org.duracloud.appconfig.domain.DuraserviceConfig
All Implemented Interfaces:
AppConfig

public class DuraserviceConfig
extends BaseConfig
implements AppConfig

This class holds the configuration elements for duraservice.

Author:
Andrew Woods Date: Apr 20, 2010

Nested Class Summary
static class DuraserviceConfig.PrimaryInstance
           
static class DuraserviceConfig.ServiceCompute
           
static class DuraserviceConfig.ServiceStore
           
static class DuraserviceConfig.UserStore
           
 
Field Summary
protected static java.lang.String contextKey
           
protected static java.lang.String hostKey
           
protected static java.lang.String imageIdKey
           
protected static java.lang.String msgBrokerUrlKey
           
protected static java.lang.String passwordKey
           
protected static java.lang.String portKey
           
protected static java.lang.String primaryInstanceKey
           
static java.lang.String QUALIFIER
           
protected static java.lang.String serviceComputeKey
           
protected static java.lang.String servicesAdminContextKey
           
protected static java.lang.String servicesAdminPortKey
           
protected static java.lang.String serviceStoreKey
           
protected static java.lang.String spaceIdKey
           
protected static java.lang.String typeKey
           
protected static java.lang.String usernameKey
           
protected static java.lang.String userStoreKey
           
 
Constructor Summary
DuraserviceConfig()
           
 
Method Summary
 java.lang.String asXml()
          This method returns an XML serialization of the configuration.
 java.lang.String getInitResource()
          This method returns the URL path element of the application's initialization resource.
 DuraserviceConfig.PrimaryInstance getPrimaryInstance()
           
protected  java.lang.String getQualifier()
          This method provides the qualifier used to distinquish this config object in a properties file.
 DuraserviceConfig.ServiceCompute getServiceCompute()
           
 DuraserviceConfig.ServiceStore getServiceStore()
           
 DuraserviceConfig.UserStore getUserStore()
           
protected  void loadProperty(java.lang.String key, java.lang.String value)
          This method handles loading the given key/value into its proper, application-specific field.
 
Methods inherited from class org.duracloud.appconfig.domain.BaseConfig
getPrefix, getSuffix, load
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.duracloud.appconfig.domain.AppConfig
load
 

Field Detail

QUALIFIER

public static final java.lang.String QUALIFIER
See Also:
Constant Field Values

primaryInstanceKey

protected static final java.lang.String primaryInstanceKey
See Also:
Constant Field Values

userStoreKey

protected static final java.lang.String userStoreKey
See Also:
Constant Field Values

serviceStoreKey

protected static final java.lang.String serviceStoreKey
See Also:
Constant Field Values

serviceComputeKey

protected static final java.lang.String serviceComputeKey
See Also:
Constant Field Values

hostKey

protected static final java.lang.String hostKey
See Also:
Constant Field Values

portKey

protected static final java.lang.String portKey
See Also:
Constant Field Values

contextKey

protected static final java.lang.String contextKey
See Also:
Constant Field Values

servicesAdminPortKey

protected static final java.lang.String servicesAdminPortKey
See Also:
Constant Field Values

servicesAdminContextKey

protected static final java.lang.String servicesAdminContextKey
See Also:
Constant Field Values

msgBrokerUrlKey

protected static final java.lang.String msgBrokerUrlKey
See Also:
Constant Field Values

spaceIdKey

protected static final java.lang.String spaceIdKey
See Also:
Constant Field Values

typeKey

protected static final java.lang.String typeKey
See Also:
Constant Field Values

imageIdKey

protected static final java.lang.String imageIdKey
See Also:
Constant Field Values

usernameKey

protected static final java.lang.String usernameKey
See Also:
Constant Field Values

passwordKey

protected static final java.lang.String passwordKey
See Also:
Constant Field Values
Constructor Detail

DuraserviceConfig

public DuraserviceConfig()
Method Detail

getQualifier

protected java.lang.String getQualifier()
Description copied from class: BaseConfig
This method provides the qualifier used to distinquish this config object in a properties file.

Specified by:
getQualifier in class BaseConfig
Returns:

asXml

public java.lang.String asXml()
Description copied from interface: AppConfig
This method returns an XML serialization of the configuration.

Specified by:
asXml in interface AppConfig
Returns:

getInitResource

public java.lang.String getInitResource()
Description copied from interface: AppConfig
This method returns the URL path element of the application's initialization resource.

Specified by:
getInitResource in interface AppConfig
Returns:

loadProperty

protected void loadProperty(java.lang.String key,
                            java.lang.String value)
Description copied from class: BaseConfig
This method handles loading the given key/value into its proper, application-specific field.

Specified by:
loadProperty in class BaseConfig

getPrimaryInstance

public DuraserviceConfig.PrimaryInstance getPrimaryInstance()

getUserStore

public DuraserviceConfig.UserStore getUserStore()

getServiceStore

public DuraserviceConfig.ServiceStore getServiceStore()

getServiceCompute

public DuraserviceConfig.ServiceCompute getServiceCompute()


Copyright © 2009-2010 DuraSpace. All Rights Reserved.