com.ibm.redback.threadpool
Class RBServletControl

java.lang.Object
  |
  +--com.ibm.redback.threadpool.RBServletControl

public class RBServletControl
extends java.lang.Object


Field Summary
protected static java.lang.String DEFAULT
           
protected static int DEFAULT_THREAD_NUMBER
           
protected static java.lang.String REDBACK_LOGFILE
           
protected static java.lang.String REDBACK_PROPERTIES
           
protected static java.lang.String SERVER_HOME
           
 
Constructor Summary
RBServletControl()
           
 
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
 

Field Detail

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
Constructor Detail

RBServletControl

public RBServletControl()
Method Detail

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; }