org.duracloud.appconfig.domain
Class DuradminConfig

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

public class DuradminConfig
extends BaseConfig
implements AppConfig

This class holds the configuration elements for duradmin.

Author:
Andrew Woods Date: Apr 20, 2010

Field Summary
protected static java.lang.String duraServiceContextKey
           
protected static java.lang.String duraServiceHostKey
           
protected static java.lang.String duraServicePortKey
           
protected static java.lang.String duraStoreContextKey
           
protected static java.lang.String duraStoreHostKey
           
protected static java.lang.String duraStorePortKey
           
static java.lang.String QUALIFIER
           
 
Constructor Summary
DuradminConfig()
           
 
Method Summary
 java.lang.String asXml()
          This method returns an XML serialization of the configuration.
 java.lang.String getDuraserviceContext()
           
 java.lang.String getDuraserviceHost()
           
 java.lang.String getDuraservicePort()
           
 java.lang.String getDurastoreContext()
           
 java.lang.String getDurastoreHost()
           
 java.lang.String getDurastorePort()
           
 java.lang.String getInitResource()
          This method returns the URL path element of the application's initialization resource.
protected  java.lang.String getQualifier()
          This method provides the qualifier used to distinquish this config object in a properties file.
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.
 void setDuraserviceContext(java.lang.String duraserviceContext)
           
 void setDuraserviceHost(java.lang.String duraserviceHost)
           
 void setDuraservicePort(java.lang.String duraservicePort)
           
 void setDurastoreContext(java.lang.String durastoreContext)
           
 void setDurastoreHost(java.lang.String durastoreHost)
           
 void setDurastorePort(java.lang.String durastorePort)
           
 
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

duraStoreHostKey

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

duraStorePortKey

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

duraStoreContextKey

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

duraServiceHostKey

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

duraServicePortKey

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

duraServiceContextKey

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

DuradminConfig

public DuradminConfig()
Method Detail

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:

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:

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

getDurastoreHost

public java.lang.String getDurastoreHost()

setDurastoreHost

public void setDurastoreHost(java.lang.String durastoreHost)

getDurastorePort

public java.lang.String getDurastorePort()

setDurastorePort

public void setDurastorePort(java.lang.String durastorePort)

getDurastoreContext

public java.lang.String getDurastoreContext()

setDurastoreContext

public void setDurastoreContext(java.lang.String durastoreContext)

getDuraserviceHost

public java.lang.String getDuraserviceHost()

setDuraserviceHost

public void setDuraserviceHost(java.lang.String duraserviceHost)

getDuraservicePort

public java.lang.String getDuraservicePort()

setDuraservicePort

public void setDuraservicePort(java.lang.String duraservicePort)

getDuraserviceContext

public java.lang.String getDuraserviceContext()

setDuraserviceContext

public void setDuraserviceContext(java.lang.String duraserviceContext)


Copyright © 2009-2010 DuraSpace. All Rights Reserved.