public class ClientModuleFactory extends ModuleFactory implements ClientModuleFactoryMXBean
The factory assumes that the Client is already initialized if
the URL is not set. Otherwise if the URL is set and the Client is
not initialized,
the factory will initialize the Client before
creating the module instance.
The factory has the following characteristics.
| Provider URN: | metc:server:system |
|---|---|
| Cardinality: | Singleton |
| InstanceURN: | metc:server:system:single |
| Auto-Instantiated: | No |
| Auto-Started: | Yes |
| Instantiation Arguments: | None |
| Management Interface | ClientModuleFactoryMXBean |
| Module Type | ClientModule |
| Modifier and Type | Field and Description |
|---|---|
static ModuleURN |
INSTANCE_URN |
| Constructor and Description |
|---|
ClientModuleFactory()
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
Module |
create(Object... inParameters) |
String |
getHostname()
The server hostname.
|
String |
getIDPrefix()
The string that should be prefixed to any orderIDs generated by
the client based on IDs issued by the server.
|
int |
getPort()
The port number of the server.
|
String |
getURL()
The Server URL to connect to.
|
String |
getUsername()
The username to use when connecting to the server.
|
void |
setHostname(String inHostname)
Sets the server host name.
|
void |
setIDPrefix(String inIDPrefix)
Sets the string that should be prefixed to any orderIDs generated by
the client based on IDs issued by the server.
|
void |
setPassword(String inPassword)
Sets the password to use when connecting to the server.
|
void |
setPort(int inPort)
Sets the server port number.
|
void |
setURL(String inURL)
Sets the Server URL to connect to.
|
void |
setUsername(String inUsername)
Sets the user name to use when connecting to the server.
|
getParameterTypes, getProviderDescription, getProviderURN, isAutoInstantiate, isMultipleInstancespublic static final ModuleURN INSTANCE_URN
public Module create(Object... inParameters) throws ModuleCreationException
create in class ModuleFactoryModuleCreationExceptionpublic String getURL()
ClientModuleFactoryMXBeangetURL in interface ClientModuleFactoryMXBeanpublic void setURL(String inURL)
ClientModuleFactoryMXBeansetURL in interface ClientModuleFactoryMXBeaninURL - the Server URLpublic String getUsername()
ClientModuleFactoryMXBeangetUsername in interface ClientModuleFactoryMXBeanpublic void setUsername(String inUsername)
ClientModuleFactoryMXBeansetUsername in interface ClientModuleFactoryMXBeaninUsername - the username.public void setPassword(String inPassword)
ClientModuleFactoryMXBeansetPassword in interface ClientModuleFactoryMXBeaninPassword - the password.public String getHostname()
ClientModuleFactoryMXBeangetHostname in interface ClientModuleFactoryMXBeanpublic void setHostname(String inHostname)
ClientModuleFactoryMXBeansetHostname in interface ClientModuleFactoryMXBeaninHostname - the server hostname.public int getPort()
ClientModuleFactoryMXBeangetPort in interface ClientModuleFactoryMXBeanpublic void setPort(int inPort)
ClientModuleFactoryMXBeansetPort in interface ClientModuleFactoryMXBeaninPort - the server port number.public String getIDPrefix()
ClientModuleFactoryMXBeangetIDPrefix in interface ClientModuleFactoryMXBeanpublic void setIDPrefix(String inIDPrefix)
ClientModuleFactoryMXBeansetIDPrefix in interface ClientModuleFactoryMXBeaninIDPrefix - the orderID prefix.Copyright © 2015. All Rights Reserved.