public class EngineConfig extends java.lang.Object implements java.lang.Cloneable, EngineConfigIf
Modifier and Type | Field and Description |
---|---|
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
|
Constructor and Description |
---|
EngineConfig() |
Modifier and Type | Method and Description |
---|---|
EngineConfig |
clone()
Clones the current object
|
java.lang.String |
getAppPropertiesFileName()
The name of the properties file for the KonaKart application engine (can be just the name of
a file on the classpath or a full file path).
|
java.lang.String |
getEngineId()
This is not designed to be set by developers.
|
java.lang.String |
getJaxwsClientPropertiesFileName()
The name of the properties file for the KonaKart 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 |
getPropertiesFileName()
The name of the properties file for the KonaKart engine (can be just the name of a file on
the classpath or a full file path).
|
java.lang.String |
getRmiClientPropertiesFileName()
The name of the properties file for the KonaKart RMI client (can be just the name of a file
on the classpath or a full file path).
|
java.lang.String |
getStoreId()
Used in multi-store mode to configure the engine to use the correct store.
|
boolean |
isAppEngPortlet()
Used only by the AppEng.
|
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 |
setAppEngPortlet(boolean appEngPortlet)
Used only by the AppEng.
|
void |
setAppPropertiesFileName(java.lang.String appPropertiesFileName)
The name of the properties file for the KonaKart application engine (can be just the name of
a file on the classpath or a full file path).
|
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)
This is not designed to be set by developers.
|
void |
setJaxwsClientPropertiesFileName(java.lang.String jaxwsClientPropertiesFileName)
The name of the properties file for the KonaKart 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 |
setPropertiesFileName(java.lang.String propertiesFileName)
The name of the properties file for the KonaKart engine (can be just the name of a file on
the classpath or a full file path).
|
void |
setRmiClientPropertiesFileName(java.lang.String rmiClientPropertiesFileName)
The name of the properties file for the KonaKart RMI client (can be just the name of a file
on the classpath or a full file path).
|
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
public EngineConfig clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public java.lang.String getStoreId()
getStoreId
in interface EngineConfigIf
public void setStoreId(java.lang.String storeId)
setStoreId
in interface EngineConfigIf
storeId
- The storeId to set.public java.lang.String toString()
toString
in class java.lang.Object
public int getMode()
getMode
in interface EngineConfigIf
public void setMode(int mode)
setMode
in interface EngineConfigIf
mode
- The mode to set.public java.lang.String getPropertiesFileName()
getPropertiesFileName
in interface EngineConfigIf
public void setPropertiesFileName(java.lang.String propertiesFileName)
setPropertiesFileName
in interface EngineConfigIf
propertiesFileName
- The propertiesFileName to set.public java.lang.String getAppPropertiesFileName()
getAppPropertiesFileName
in interface EngineConfigIf
public void setAppPropertiesFileName(java.lang.String appPropertiesFileName)
setAppPropertiesFileName
in interface EngineConfigIf
appPropertiesFileName
- The appPropertiesFileName to set.public boolean isCustomersShared()
isCustomersShared
in interface EngineConfigIf
public void setCustomersShared(boolean customersShared)
setCustomersShared
in interface EngineConfigIf
customersShared
- set to true or falsepublic boolean isProductsShared()
isProductsShared
in interface EngineConfigIf
public void setProductsShared(boolean productsShared)
setProductsShared
in interface EngineConfigIf
productsShared
- the productsShared to setpublic boolean isCategoriesShared()
isCategoriesShared
in interface EngineConfigIf
public void setCategoriesShared(boolean categoriesShared)
setCategoriesShared
in interface EngineConfigIf
categoriesShared
- the categoriesShared to setpublic java.lang.String getEngineId()
getEngineId
in interface EngineConfigIf
public void setEngineId(java.lang.String engineId)
setEngineId
in interface EngineConfigIf
engineId
- the engineId to setpublic java.lang.String getJaxwsClientPropertiesFileName()
getJaxwsClientPropertiesFileName
in interface EngineConfigIf
public void setJaxwsClientPropertiesFileName(java.lang.String jaxwsClientPropertiesFileName)
setJaxwsClientPropertiesFileName
in interface EngineConfigIf
jaxwsClientPropertiesFileName
- the jaxwsClientPropertiesFileName to setpublic java.lang.String getRmiClientPropertiesFileName()
getRmiClientPropertiesFileName
in interface EngineConfigIf
public void setRmiClientPropertiesFileName(java.lang.String rmiClientPropertiesFileName)
setRmiClientPropertiesFileName
in interface EngineConfigIf
rmiClientPropertiesFileName
- the rmiClientPropertiesFileName to setpublic boolean isAppEngPortlet()
isAppEngPortlet
in interface EngineConfigIf
public void setAppEngPortlet(boolean appEngPortlet)
setAppEngPortlet
in interface EngineConfigIf
appEngPortlet
- the appEngPortlet to setCopyright © 2018 DS Data Systems UK Ltd.