org.openanzo.services
Class ModelServiceProperties

java.lang.Object
  extended by org.openanzo.services.ModelServiceProperties

public class ModelServiceProperties
extends java.lang.Object

Configuration properties that are used by IModelService,IAuthenticationSetvice, and IReplicationService.

Author:
Generated Source from org.openanzo.utils.properties.jet

Field Summary
static java.lang.String KEY_MODELSERVICE_AUTHENTICATION_CLASS
          Key for property "org.openanzo.modelService.authenticationClass" Class name for implementation of IAuthenticationService which is to be used Server:Transport class used by server services for authentication calls Client:Transport class used by client classes for authentication service calls Embedded:This property is the definition of being in embedded mode. Examples: Server:org.openanzo.model.embedded.EmbeddedAuthenticationService Client:org.openanzo.services.impl.WSAuthenticationService Embedded:org.openanzo.model.embedded.EmbeddedAuthenticationService
static java.lang.String KEY_MODELSERVICE_HOST_NAME
          Key for property "org.openanzo.modelService.host" Host name for server Server:If server services are not using embedded mode, the hostname or IP address of the server for which the server services will use for service calls. Client:The hostname or IP address of the server for which the client's transport will use for service calls. Embedded:Not Used Examples: localhost or 127.0.0.1
static java.lang.String KEY_MODELSERVICE_HOST_PORT
          Key for property "org.openanzo.modelService.port" Port for server Server:If server services are not using embedded mode, the the listening port for the server for which the server services will use for service calls. Client:The listening port for the server for which the client's transport will use for service calls. Embedded:Not Used Examples: 8080
static java.lang.String KEY_MODELSERVICE_PASSWORD
          Key for property "org.openanzo.modelService.password" Password for server Server:The password used by server services to talk to other services. Client:The password for connecting to the server Embedded:The password under which all commands are authenticated with. Examples: 123
static java.lang.String KEY_MODELSERVICE_TIMEOUT
          Key for property "org.openanzo.modelService.timeout" Timeout in milliseconds for transport calls Server:When making calls to services, the time to wait on a transport to get a response before reporting a timeout error. Client:When making calls to services, the time to wait on a transport to get a response before reporting a timeout error. Embedded:Not Used Examples: 0=Never timeout, 60000=Timeout in 1 minute
static java.lang.String KEY_MODELSERVICE_TRANSPORT_CLASS
          Key for property "org.openanzo.modelService.transportClass" Class name for implementation of IModelService Server:Transport class used by server services for model service calls Client:Transport class used by client classes for model service calls Embedded:This property is the definition of being in embedded mode. Examples: Server:org.openanzo.model.embedded.EmbeddedModelService Client:org.openanzo.services.impl.WSModelService Embedded:org.openanzo.model.embedded.EmbeddedModelService
static java.lang.String KEY_MODELSERVICE_USER
          Key for property "org.openanzo.modelService.user" Login id for server Server:The login id used by server services to talk to other services. Client:The login id for connecting to the server Embedded:The login id under which all commands are run as. Examples: default
 
Constructor Summary
ModelServiceProperties()
           
 
Method Summary
static java.lang.String getAuthenticationClass(java.util.Properties properties, java.lang.String defaultValue)
          Get KEY_MODELSERVICE_AUTHENTICATION_CLASS property from properties
static java.lang.String getHost(java.util.Properties properties, java.lang.String defaultValue)
          Get KEY_MODELSERVICE_HOST_NAME property from properties
static java.lang.String getPassword(java.util.Properties properties, java.lang.String defaultValue)
          Get KEY_MODELSERVICE_PASSWORD property from properties
static int getPort(java.util.Properties properties, int defaultValue)
          Get KEY_MODELSERVICE_HOST_PORT property from properties
static int getTimeout(java.util.Properties properties, int defaultValue)
          Get KEY_MODELSERVICE_TIMEOUT property from properties
static java.lang.String getTransportClass(java.util.Properties properties, java.lang.String defaultValue)
          Get KEY_MODELSERVICE_TRANSPORT_CLASS property from properties
static java.lang.String getUser(java.util.Properties properties, java.lang.String defaultValue)
          Get KEY_MODELSERVICE_USER property from properties
static void setAuthenticationClass(java.util.Properties properties, java.lang.String authenticationClass)
          Set KEY_MODELSERVICE_AUTHENTICATION_CLASS property to authenticationClass in properties
static void setHost(java.util.Properties properties, java.lang.String host)
          Set KEY_MODELSERVICE_HOST_NAME property to host in properties
static void setPassword(java.util.Properties properties, java.lang.String password)
          Set KEY_MODELSERVICE_PASSWORD property to password in properties
static void setPort(java.util.Properties properties, int port)
          Set KEY_MODELSERVICE_HOST_PORT property to port in properties
static void setTimeout(java.util.Properties properties, int timeout)
          Set KEY_MODELSERVICE_TIMEOUT property to timeout in properties
static void setTransportClass(java.util.Properties properties, java.lang.String transportClass)
          Set KEY_MODELSERVICE_TRANSPORT_CLASS property to transportClass in properties
static void setUser(java.util.Properties properties, java.lang.String user)
          Set KEY_MODELSERVICE_USER property to user in properties
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_MODELSERVICE_AUTHENTICATION_CLASS

public static final java.lang.String KEY_MODELSERVICE_AUTHENTICATION_CLASS
Key for property "org.openanzo.modelService.authenticationClass" Class name for implementation of IAuthenticationService which is to be used
  • Server:Transport class used by server services for authentication calls
  • Client:Transport class used by client classes for authentication service calls
  • Embedded:This property is the definition of being in embedded mode.
  • Examples:
  • Server:org.openanzo.model.embedded.EmbeddedAuthenticationService
  • Client:org.openanzo.services.impl.WSAuthenticationService
  • Embedded:org.openanzo.model.embedded.EmbeddedAuthenticationService
  • See Also:
    Constant Field Values

    KEY_MODELSERVICE_TRANSPORT_CLASS

    public static final java.lang.String KEY_MODELSERVICE_TRANSPORT_CLASS
    Key for property "org.openanzo.modelService.transportClass" Class name for implementation of IModelService
  • Server:Transport class used by server services for model service calls
  • Client:Transport class used by client classes for model service calls
  • Embedded:This property is the definition of being in embedded mode.
  • Examples:
  • Server:org.openanzo.model.embedded.EmbeddedModelService
  • Client:org.openanzo.services.impl.WSModelService
  • Embedded:org.openanzo.model.embedded.EmbeddedModelService
  • See Also:
    Constant Field Values

    KEY_MODELSERVICE_HOST_NAME

    public static final java.lang.String KEY_MODELSERVICE_HOST_NAME
    Key for property "org.openanzo.modelService.host" Host name for server
  • Server:If server services are not using embedded mode, the hostname or IP address of the server for which the server services will use for service calls.
  • Client:The hostname or IP address of the server for which the client's transport will use for service calls.
  • Embedded:Not Used
  • Examples: localhost or 127.0.0.1

    See Also:
    Constant Field Values

    KEY_MODELSERVICE_HOST_PORT

    public static final java.lang.String KEY_MODELSERVICE_HOST_PORT
    Key for property "org.openanzo.modelService.port" Port for server
  • Server:If server services are not using embedded mode, the the listening port for the server for which the server services will use for service calls.
  • Client:The listening port for the server for which the client's transport will use for service calls.
  • Embedded:Not Used
  • Examples: 8080

    See Also:
    Constant Field Values

    KEY_MODELSERVICE_USER

    public static final java.lang.String KEY_MODELSERVICE_USER
    Key for property "org.openanzo.modelService.user" Login id for server
  • Server:The login id used by server services to talk to other services.
  • Client:The login id for connecting to the server
  • Embedded:The login id under which all commands are run as.
  • Examples: default

    See Also:
    Constant Field Values

    KEY_MODELSERVICE_PASSWORD

    public static final java.lang.String KEY_MODELSERVICE_PASSWORD
    Key for property "org.openanzo.modelService.password" Password for server
  • Server:The password used by server services to talk to other services.
  • Client:The password for connecting to the server
  • Embedded:The password under which all commands are authenticated with.
  • Examples: 123

    See Also:
    Constant Field Values

    KEY_MODELSERVICE_TIMEOUT

    public static final java.lang.String KEY_MODELSERVICE_TIMEOUT
    Key for property "org.openanzo.modelService.timeout" Timeout in milliseconds for transport calls
  • Server:When making calls to services, the time to wait on a transport to get a response before reporting a timeout error.
  • Client:When making calls to services, the time to wait on a transport to get a response before reporting a timeout error.
  • Embedded:Not Used
  • Examples: 0=Never timeout, 60000=Timeout in 1 minute

    See Also:
    Constant Field Values
    Constructor Detail

    ModelServiceProperties

    public ModelServiceProperties()
    Method Detail

    getAuthenticationClass

    public static java.lang.String getAuthenticationClass(java.util.Properties properties,
                                                          java.lang.String defaultValue)
    Get KEY_MODELSERVICE_AUTHENTICATION_CLASS property from properties

    Parameters:
    properties - containing configuration data
    defaultValue - defaultValue for authenticationClass
    Returns:
    value of KEY_MODELSERVICE_AUTHENTICATION_CLASSor defaultValue if not present

    setAuthenticationClass

    public static void setAuthenticationClass(java.util.Properties properties,
                                              java.lang.String authenticationClass)
    Set KEY_MODELSERVICE_AUTHENTICATION_CLASS property to authenticationClass in properties

    Parameters:
    properties - containing configuration data
    authenticationClass - value for authenticationClass

    getTransportClass

    public static java.lang.String getTransportClass(java.util.Properties properties,
                                                     java.lang.String defaultValue)
    Get KEY_MODELSERVICE_TRANSPORT_CLASS property from properties

    Parameters:
    properties - containing configuration data
    defaultValue - defaultValue for transportClass
    Returns:
    value of KEY_MODELSERVICE_TRANSPORT_CLASSor defaultValue if not present

    setTransportClass

    public static void setTransportClass(java.util.Properties properties,
                                         java.lang.String transportClass)
    Set KEY_MODELSERVICE_TRANSPORT_CLASS property to transportClass in properties

    Parameters:
    properties - containing configuration data
    transportClass - value for transportClass

    getHost

    public static java.lang.String getHost(java.util.Properties properties,
                                           java.lang.String defaultValue)
    Get KEY_MODELSERVICE_HOST_NAME property from properties

    Parameters:
    properties - containing configuration data
    defaultValue - defaultValue for host
    Returns:
    value of KEY_MODELSERVICE_HOST_NAMEor defaultValue if not present

    setHost

    public static void setHost(java.util.Properties properties,
                               java.lang.String host)
    Set KEY_MODELSERVICE_HOST_NAME property to host in properties

    Parameters:
    properties - containing configuration data
    host - value for host

    getPort

    public static int getPort(java.util.Properties properties,
                              int defaultValue)
    Get KEY_MODELSERVICE_HOST_PORT property from properties

    Parameters:
    properties - containing configuration data
    defaultValue - defaultValue for port
    Returns:
    value of KEY_MODELSERVICE_HOST_PORTor defaultValue if not present

    setPort

    public static void setPort(java.util.Properties properties,
                               int port)
    Set KEY_MODELSERVICE_HOST_PORT property to port in properties

    Parameters:
    properties - containing configuration data
    port - value for port

    getUser

    public static java.lang.String getUser(java.util.Properties properties,
                                           java.lang.String defaultValue)
    Get KEY_MODELSERVICE_USER property from properties

    Parameters:
    properties - containing configuration data
    defaultValue - defaultValue for user
    Returns:
    value of KEY_MODELSERVICE_USERor defaultValue if not present

    setUser

    public static void setUser(java.util.Properties properties,
                               java.lang.String user)
    Set KEY_MODELSERVICE_USER property to user in properties

    Parameters:
    properties - containing configuration data
    user - value for user

    getPassword

    public static java.lang.String getPassword(java.util.Properties properties,
                                               java.lang.String defaultValue)
    Get KEY_MODELSERVICE_PASSWORD property from properties

    Parameters:
    properties - containing configuration data
    defaultValue - defaultValue for password
    Returns:
    value of KEY_MODELSERVICE_PASSWORDor defaultValue if not present

    setPassword

    public static void setPassword(java.util.Properties properties,
                                   java.lang.String password)
    Set KEY_MODELSERVICE_PASSWORD property to password in properties

    Parameters:
    properties - containing configuration data
    password - value for password

    getTimeout

    public static int getTimeout(java.util.Properties properties,
                                 int defaultValue)
    Get KEY_MODELSERVICE_TIMEOUT property from properties

    Parameters:
    properties - containing configuration data
    defaultValue - defaultValue for timeout
    Returns:
    value of KEY_MODELSERVICE_TIMEOUTor defaultValue if not present

    setTimeout

    public static void setTimeout(java.util.Properties properties,
                                  int timeout)
    Set KEY_MODELSERVICE_TIMEOUT property to timeout in properties

    Parameters:
    properties - containing configuration data
    timeout - value for timeout


    Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.