com.ibm.redback.threadpool
Class RBServletControl
java.lang.Object
|
+--com.ibm.redback.threadpool.RBServletControl
- public class RBServletControl
- extends java.lang.Object
Method Summary |
java.lang.String |
getRedBackPropsFilePath()
|
int |
getThreadNumber(java.lang.String accName)
protected Properties readPropertiesFiles() {
if(rbPropsFilePath == null)
rbPropsFilePath = getRedBackPropsFilePath();
try {
FileInputStream fis =
new FileInputStream(rbPropsFilePath);
rbProps = new Properties();
rbProps.load(fis);
fis.close();
//rblog.writeToLog("(Inf) Properties read and loaded");
}
catch(IOException ioe) {
rblog.writeToLog("(Err) Could not read properties " + ioe);
}
return rbProps;
}
public Properties getRBProperties() {
readPropertiesFiles();
return rbProps;
} |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REDBACK_PROPERTIES
protected static final java.lang.String REDBACK_PROPERTIES
REDBACK_LOGFILE
protected static final java.lang.String REDBACK_LOGFILE
SERVER_HOME
protected static final java.lang.String SERVER_HOME
DEFAULT
protected static final java.lang.String DEFAULT
DEFAULT_THREAD_NUMBER
protected static final int DEFAULT_THREAD_NUMBER
RBServletControl
public RBServletControl()
getRedBackPropsFilePath
public java.lang.String getRedBackPropsFilePath()
getThreadNumber
public int getThreadNumber(java.lang.String accName)
- protected Properties readPropertiesFiles() {
if(rbPropsFilePath == null)
rbPropsFilePath = getRedBackPropsFilePath();
try {
FileInputStream fis =
new FileInputStream(rbPropsFilePath);
rbProps = new Properties();
rbProps.load(fis);
fis.close();
//rblog.writeToLog("(Inf) Properties read and loaded");
}
catch(IOException ioe) {
rblog.writeToLog("(Err) Could not read properties " + ioe);
}
return rbProps;
}
public Properties getRBProperties() {
readPropertiesFiles();
return rbProps;
}