|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.services.ModelServiceProperties
public class ModelServiceProperties
Configuration properties that are used by IModelService,IAuthenticationSetvice, and IReplicationService.
| 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 |
|---|
public static final java.lang.String KEY_MODELSERVICE_AUTHENTICATION_CLASS
public static final java.lang.String KEY_MODELSERVICE_TRANSPORT_CLASS
public static final java.lang.String KEY_MODELSERVICE_HOST_NAME
public static final java.lang.String KEY_MODELSERVICE_HOST_PORT
public static final java.lang.String KEY_MODELSERVICE_USER
public static final java.lang.String KEY_MODELSERVICE_PASSWORD
public static final java.lang.String KEY_MODELSERVICE_TIMEOUT
| Constructor Detail |
|---|
public ModelServiceProperties()
| Method Detail |
|---|
public static java.lang.String getAuthenticationClass(java.util.Properties properties,
java.lang.String defaultValue)
KEY_MODELSERVICE_AUTHENTICATION_CLASS property from properties
properties - containing configuration datadefaultValue - defaultValue for authenticationClass
KEY_MODELSERVICE_AUTHENTICATION_CLASSor defaultValue if not present
public static void setAuthenticationClass(java.util.Properties properties,
java.lang.String authenticationClass)
KEY_MODELSERVICE_AUTHENTICATION_CLASS property to authenticationClass in properties
properties - containing configuration dataauthenticationClass - value for authenticationClass
public static java.lang.String getTransportClass(java.util.Properties properties,
java.lang.String defaultValue)
KEY_MODELSERVICE_TRANSPORT_CLASS property from properties
properties - containing configuration datadefaultValue - defaultValue for transportClass
KEY_MODELSERVICE_TRANSPORT_CLASSor defaultValue if not present
public static void setTransportClass(java.util.Properties properties,
java.lang.String transportClass)
KEY_MODELSERVICE_TRANSPORT_CLASS property to transportClass in properties
properties - containing configuration datatransportClass - value for transportClass
public static java.lang.String getHost(java.util.Properties properties,
java.lang.String defaultValue)
KEY_MODELSERVICE_HOST_NAME property from properties
properties - containing configuration datadefaultValue - defaultValue for host
KEY_MODELSERVICE_HOST_NAMEor defaultValue if not present
public static void setHost(java.util.Properties properties,
java.lang.String host)
KEY_MODELSERVICE_HOST_NAME property to host in properties
properties - containing configuration datahost - value for host
public static int getPort(java.util.Properties properties,
int defaultValue)
KEY_MODELSERVICE_HOST_PORT property from properties
properties - containing configuration datadefaultValue - defaultValue for port
KEY_MODELSERVICE_HOST_PORTor defaultValue if not present
public static void setPort(java.util.Properties properties,
int port)
KEY_MODELSERVICE_HOST_PORT property to port in properties
properties - containing configuration dataport - value for port
public static java.lang.String getUser(java.util.Properties properties,
java.lang.String defaultValue)
KEY_MODELSERVICE_USER property from properties
properties - containing configuration datadefaultValue - defaultValue for user
KEY_MODELSERVICE_USERor defaultValue if not present
public static void setUser(java.util.Properties properties,
java.lang.String user)
KEY_MODELSERVICE_USER property to user in properties
properties - containing configuration datauser - value for user
public static java.lang.String getPassword(java.util.Properties properties,
java.lang.String defaultValue)
KEY_MODELSERVICE_PASSWORD property from properties
properties - containing configuration datadefaultValue - defaultValue for password
KEY_MODELSERVICE_PASSWORDor defaultValue if not present
public static void setPassword(java.util.Properties properties,
java.lang.String password)
KEY_MODELSERVICE_PASSWORD property to password in properties
properties - containing configuration datapassword - value for password
public static int getTimeout(java.util.Properties properties,
int defaultValue)
KEY_MODELSERVICE_TIMEOUT property from properties
properties - containing configuration datadefaultValue - defaultValue for timeout
KEY_MODELSERVICE_TIMEOUTor defaultValue if not present
public static void setTimeout(java.util.Properties properties,
int timeout)
KEY_MODELSERVICE_TIMEOUT property to timeout in properties
properties - containing configuration datatimeout - value for timeout
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||