public class AdminEngineConfig
extends java.lang.Object
implements java.lang.Cloneable
Attributes required are dependent on the mode.
When creating engine clients for RMI and SOAP you can use the properties attribute to define your properties rather than referencing a properties file. The structure of the properties array is:
properties[0] = key 1
properties[1] = value 1
properties[2] = key 2
properties[3] = value 2
etc
If the properties array is non-null it will be used instead of the properties file (for the RMI and SOAP engines only). It may be useful to choose this way of constructing engine clients if you do not wish to use files to store the property definitions.
Modifier and Type | Field and Description |
---|---|
private boolean |
categoriesShared |
private boolean |
customersShared |
private java.lang.String |
engineId
This is not designed to be set by developers.
|
private java.lang.String |
jaxwsClientFileName
The properties file used by a client-side of a SOAP/JAXWS engine
|
private int |
mode
Mode is SingleStore, MultiStore (Multi-DB) or MultiStore (Single-DB)
|
static int |
MODE_MULTI_STORE_NON_SHARED_DB
Constant for mode
|
static int |
MODE_MULTI_STORE_SHARED_DB
Constant for mode
|
static int |
MODE_SINGLE_STORE
Constant for mode
|
private boolean |
productsShared |
private java.lang.String[] |
properties |
private java.lang.String |
propertiesFileName
The properties file used by a server-side engine
|
private java.lang.String |
rmiClientFileName
The properties file used by a client-side of an RMI engine
|
private java.lang.String |
storeId |
Constructor and Description |
---|
AdminEngineConfig() |
Modifier and Type | Method and Description |
---|---|
AdminEngineConfig |
clone()
Clones the current object
|
java.lang.String |
getEngineId() |
java.lang.String |
getJaxwsClientFileName()
The name of the properties file for the KonaKart Admin JAXWS client (can be just the name of
a file on the classpath or a full file path).
|
int |
getMode()
Used to configure the engine at startup.
|
java.lang.String[] |
getProperties() |
java.lang.String |
getPropertiesFileName()
The name of the properties file (can be just the name of a file on the classpath or a full
file path).
|
java.lang.String |
getRmiClientFileName()
The properties file used by a client-side of an RMI engine
|
java.lang.String |
getStoreId()
Used in multi-store mode to configure the engine to use the correct store.
|
boolean |
isCategoriesShared()
Only relevant when in MODE_MULTI_STORE_SHARED_DB mode and products are shared.
|
boolean |
isCustomersShared()
Only relevant when in MODE_MULTI_STORE_SHARED_DB mode.
|
boolean |
isProductsShared()
Only relevant when in MODE_MULTI_STORE_SHARED_DB mode.
|
void |
setCategoriesShared(boolean categoriesShared)
Only relevant when in MODE_MULTI_STORE_SHARED_DB mode and products are shared.
|
void |
setCustomersShared(boolean customersShared)
Only relevant when in MODE_MULTI_STORE_SHARED_DB mode.
|
void |
setEngineId(java.lang.String engineId) |
void |
setJaxwsClientFileName(java.lang.String jaxwsClientFileName)
The name of the properties file for the KonaKart Admin JAXWS client (can be just the name of
a file on the classpath or a full file path).
|
void |
setMode(int mode)
Used to configure the engine at startup.
|
void |
setProductsShared(boolean productsShared)
Only relevant when in MODE_MULTI_STORE_SHARED_DB mode.
|
void |
setProperties(java.lang.String[] properties) |
void |
setPropertiesFileName(java.lang.String propertiesFileName)
The name of the properties file (can be just the name of a file on the classpath or a full
file path).
|
void |
setRmiClientFileName(java.lang.String rmiClientFileName)
The properties file used by a client-side of an RMI engine
|
void |
setStoreId(java.lang.String storeId)
Used in multi-store mode to configure the engine to use the correct store.
|
java.lang.String |
toString() |
public static final int MODE_SINGLE_STORE
public static final int MODE_MULTI_STORE_NON_SHARED_DB
public static final int MODE_MULTI_STORE_SHARED_DB
private java.lang.String storeId
private int mode
private java.lang.String propertiesFileName
private java.lang.String jaxwsClientFileName
private java.lang.String rmiClientFileName
private boolean customersShared
private boolean productsShared
private boolean categoriesShared
private java.lang.String[] properties
private java.lang.String engineId
public java.lang.String toString()
toString
in class java.lang.Object
public AdminEngineConfig clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public java.lang.String getStoreId()
public void setStoreId(java.lang.String storeId)
storeId
- The storeId to set.public int getMode()
public void setMode(int mode)
mode
- The mode to set.public java.lang.String getPropertiesFileName()
public void setPropertiesFileName(java.lang.String propertiesFileName)
propertiesFileName
- The propertiesFileName to set.public boolean isCustomersShared()
public void setCustomersShared(boolean customersShared)
customersShared
- set to true or falsepublic boolean isProductsShared()
public void setProductsShared(boolean productsShared)
productsShared
- the productsShared to setpublic boolean isCategoriesShared()
public void setCategoriesShared(boolean categoriesShared)
categoriesShared
- the categoriesShared to setpublic java.lang.String getEngineId()
public void setEngineId(java.lang.String engineId)
engineId
- The engineId to set.public java.lang.String[] getProperties()
properties[0] = key 1
properties[1] = value 1
properties[2] = key 2
properties[3] = value 2
etc
public void setProperties(java.lang.String[] properties)
properties
- the properties to setpublic java.lang.String getRmiClientFileName()
public void setRmiClientFileName(java.lang.String rmiClientFileName)
rmiClientFileName
- the rmiClientFileName to setpublic java.lang.String getJaxwsClientFileName()
public void setJaxwsClientFileName(java.lang.String jaxwsClientFileName)
jaxwsClientFileName
- the jaxwsClientFileName to setCopyright © 2018 DS Data Systems UK Ltd.