|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoemware.core.BaseSharedJob
oemware.core.InstanceConf
public final class InstanceConf
The instance configuration. This component can be registered with
a shared job runner if you want it to refresh. If a user attempts
get a property that doesn't exist, an exception is thrown. This
component pulls the data from a file.
This component is to be used for instance configuration and should
not be used for storing rapidly changing application states.
| Field Summary | |
|---|---|
static java.lang.String |
DIR_DATA_KEY
|
static java.lang.String |
ENV_NAME_KEY
|
static java.lang.String |
INSTANCE_ID_KEY
|
static java.lang.String |
NODE_ID_KEY
|
static java.lang.String |
SERVICE_NAME_KEY
|
| Constructor Summary | |
|---|---|
InstanceConf(java.lang.String pSystemPropertyName)
Construct a new instance. |
|
| Method Summary | |
|---|---|
int |
getIntProperty(java.lang.String pName)
Returns an integer property value (works same as string version). |
long |
getLongProperty(java.lang.String pName)
Returns a long property value (works same as string version). |
java.lang.String |
getProperty(java.lang.String pName)
Returns the property |
short |
getShortProperty(java.lang.String pName)
Returns a short property value (works same as string version). |
void |
runJob()
This is the method called by the shared job runner. |
void |
setProperty(java.lang.String pName,
java.lang.String pValue)
Set the property. |
| Methods inherited from class oemware.core.BaseSharedJob |
|---|
getJobFrequency, getJobName, getLastRunTime, setJobFrequency, setJobName, setLastRunTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String NODE_ID_KEY
public static final java.lang.String INSTANCE_ID_KEY
public static final java.lang.String SERVICE_NAME_KEY
public static final java.lang.String ENV_NAME_KEY
public static final java.lang.String DIR_DATA_KEY
| Constructor Detail |
|---|
public InstanceConf(java.lang.String pSystemPropertyName)
pSystemPropertyName - The system property name (-Dfoo=value).| Method Detail |
|---|
public final void runJob()
runJob in interface SharedJobrunJob in class BaseSharedJob
public final java.lang.String getProperty(java.lang.String pName)
throws ServiceException
pName - The property name (required).
ServiceException
public final long getLongProperty(java.lang.String pName)
throws ServiceException
pName - The property name (required).
ServiceException
public final int getIntProperty(java.lang.String pName)
throws ServiceException
pName - The property name (required).
ServiceException
public final short getShortProperty(java.lang.String pName)
throws ServiceException
pName - The property name (required).
ServiceException
public final void setProperty(java.lang.String pName,
java.lang.String pValue)
throws ServiceException
pName - The property name.pValue - The property value.
ServiceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||