|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoemware.core.ServiceConf
public final class ServiceConf
The service config object. This wraps both the instance and the node conf together. The instance conf is checked first and if nothing is found, the node conf is checked.
| Constructor Summary | |
|---|---|
ServiceConf(InstanceConf pNodeConf,
InstanceConf pModuleConf,
InstanceConf pInstanceConf)
Construct a new instance. |
|
| Method Summary | |
|---|---|
java.lang.String |
getBaseDir()
|
java.lang.String |
getDataDir()
|
java.lang.String |
getEnvName()
|
InstanceConf |
getInstanceConf()
|
short |
getInstanceId()
|
int |
getIntProperty(java.lang.String pName)
Returns an integer property value (works same as string version). |
int |
getIntProperty(java.lang.String pName,
int pDefault)
Returns an integer property value (works same as string version). |
long |
getLongProperty(java.lang.String pName,
long pDefault)
Returns a long property value (works same as string version). |
InstanceConf |
getNodeConf()
|
short |
getNodeId()
|
java.lang.String |
getProperty(java.lang.String pName)
Returns the property |
java.lang.String |
getProperty(java.lang.String pName,
java.lang.String pDefault)
Returns the property |
java.lang.String |
getServiceName()
|
short |
getShortProperty(java.lang.String pName)
Returns a short property value (works same as string version). |
short |
getShortProperty(java.lang.String pName,
short pDefault)
Returns a short property value (works same as string version). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceConf(InstanceConf pNodeConf,
InstanceConf pModuleConf,
InstanceConf pInstanceConf)
throws ServiceException
pNodeConf - The global node conf.pModuleConf - The module conf.pInstanceConf - The instance conf.
ServiceException| Method Detail |
|---|
public final InstanceConf getNodeConf()
public final InstanceConf getInstanceConf()
public final java.lang.String getProperty(java.lang.String pName)
throws ServiceException
pName - The property name (required).
ServiceException
public final java.lang.String getProperty(java.lang.String pName,
java.lang.String pDefault)
throws ServiceException
pName - The property name (required).pDefault - Is returned if not found in config files.
ServiceException
public final int getIntProperty(java.lang.String pName)
throws ServiceException
pName - The property name (required).
ServiceException
public final int getIntProperty(java.lang.String pName,
int pDefault)
throws ServiceException
pName - The property name (required).pDefault - The default value to pass if not found in config file.
ServiceException
public final short getShortProperty(java.lang.String pName)
throws ServiceException
pName - The property name (required).
ServiceException
public final short getShortProperty(java.lang.String pName,
short pDefault)
throws ServiceException
pName - The property name (required).pDefault - Is returned if not in config file.
ServiceException
public final long getLongProperty(java.lang.String pName,
long pDefault)
throws ServiceException
pName - The property name (required).pDefault - Is returned if not in config file.
ServiceExceptionpublic final java.lang.String getServiceName()
public final java.lang.String getEnvName()
public final short getNodeId()
public final java.lang.String getBaseDir()
public final java.lang.String getDataDir()
public final short getInstanceId()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||