AR System Java API

com.bmc.arsys.api
Class Config

java.lang.Object
  extended by com.bmc.arsys.api.Config

public class Config
extends Object


Method Summary
 int getApiRecording()
           
 String getCatalogFileName()
           
 int getConnectionMaxRetries()
           
static Config getInstance()
          Return the config singleton
 int getJniLoadMode()
           
 boolean getJrpcMode()
           
 int getMinimumSupportedServerRpcVersion()
           
 int getTimeLagBetweenRetriesMillSecc()
           
 org.apache.commons.lang.builder.ToStringStyle getToStringStyle()
           
 boolean getUseLegacyAssignFormatter()
          Get Assignment Formatter mode.
 boolean getUseLegacyAssignParser()
          Get Assignment Parser mode.
 boolean getUseLegacyQualFormatter()
          Get Qualification Formatter mode.
 boolean getUseLegacyQualParser()
          Get Qualification Parser mode.
 boolean isStringizeFieldAssignments()
           
 boolean isStringizeSetIfQualification()
           
static void refresh()
          Refresh the config singleton with the latest config file
 void resetJrpcMode()
          Reset the JRpc mode from the configuration
 void setJrpcMode(boolean newMode)
           
 void setParserMode()
          Set Parser mode from the configuration file.
 void setQualAssignFormatterMode()
          Set mode for Qualfication and Assignment from the configuration file.
 void setStringizeFieldAssignments(boolean stringizeFieldAssignments)
           
 void setStringizeSetIfQualification(boolean stringizeSetIfQualification)
           
 void setToStringStyle(String toStringStyleName)
           
 void setToStringStyle(org.apache.commons.lang.builder.ToStringStyle toStringStyle)
           
 void setUseLegacyAssignFormatter(boolean formatterMode)
          Set Assignment Formatter mode.
 void setUseLegacyAssignParser(boolean parserMode)
          Set Assignment Parser mode.
 void setUseLegacyQualFormatter(boolean formatterMode)
          Set Qualification Formatter mode.
 void setUseLegacyQualParser(boolean parserMode)
          Set Qualification Parser mode.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static Config getInstance()
Return the config singleton


getCatalogFileName

public String getCatalogFileName()
Returns:
the catalogFileName

getJrpcMode

public boolean getJrpcMode()
Returns:
the jrpcMode

getJniLoadMode

public int getJniLoadMode()
Returns:
the jniLoadMode

getApiRecording

public int getApiRecording()
Returns:
the apiRecordingMode

getMinimumSupportedServerRpcVersion

public int getMinimumSupportedServerRpcVersion()
Returns:
the MinimumSupportedServerRpcVersion

getConnectionMaxRetries

public int getConnectionMaxRetries()
Returns:
the connectionMaxRetries

getTimeLagBetweenRetriesMillSecc

public int getTimeLagBetweenRetriesMillSecc()
Returns:
the timeLagBetweenRetriesMillSec

getToStringStyle

public org.apache.commons.lang.builder.ToStringStyle getToStringStyle()
Returns:
the toStringStyle

setToStringStyle

public void setToStringStyle(org.apache.commons.lang.builder.ToStringStyle toStringStyle)
Parameters:
toStringStyle - the toStringStyle to set

setToStringStyle

public void setToStringStyle(String toStringStyleName)
                      throws ClassNotFoundException,
                             SecurityException,
                             NoSuchFieldException,
                             IllegalArgumentException,
                             IllegalAccessException
Throws:
ClassNotFoundException
SecurityException
NoSuchFieldException
IllegalArgumentException
IllegalAccessException

isStringizeFieldAssignments

public boolean isStringizeFieldAssignments()
Returns:
the stringizeFieldAssignments

setStringizeFieldAssignments

public void setStringizeFieldAssignments(boolean stringizeFieldAssignments)
Parameters:
stringizeFieldAssignments - the stringizeFieldAssignments to set

isStringizeSetIfQualification

public boolean isStringizeSetIfQualification()
Returns:
the stringizeSetIfQualification

setStringizeSetIfQualification

public void setStringizeSetIfQualification(boolean stringizeSetIfQualification)
Parameters:
stringizeSetIfQualification - the stringizeSetIfQualification to set

refresh

public static void refresh()
Refresh the config singleton with the latest config file


setJrpcMode

public void setJrpcMode(boolean newMode)
Parameters:
newMode - JRpc mode to set: true or false

resetJrpcMode

public void resetJrpcMode()
Reset the JRpc mode from the configuration


setParserMode

public void setParserMode()
Set Parser mode from the configuration file.


setQualAssignFormatterMode

public void setQualAssignFormatterMode()
Set mode for Qualfication and Assignment from the configuration file.


setUseLegacyQualParser

public void setUseLegacyQualParser(boolean parserMode)
Set Qualification Parser mode. If true legacy parser(JNI) will be used else brand new Java parser.

Parameters:
parserMode - Set the parser mode.

getUseLegacyQualParser

public boolean getUseLegacyQualParser()
Get Qualification Parser mode. If true legacy parser(JNI) will be used else brand new Java parser.


setUseLegacyAssignParser

public void setUseLegacyAssignParser(boolean parserMode)
Set Assignment Parser mode. If true legacy parser(JNI) will be used else brand new Java parser.

Parameters:
parserMode - Set the parser mode.

getUseLegacyAssignParser

public boolean getUseLegacyAssignParser()
Get Assignment Parser mode. If true legacy parser(JNI) will be used else brand new Java parser.


setUseLegacyQualFormatter

public void setUseLegacyQualFormatter(boolean formatterMode)
Set Qualification Formatter mode. If true legacy formatter(JNI) will be use else brand new Java Qualification formatter

Parameters:
formatterMode - Boolean value to set the qualification formatter mode

getUseLegacyQualFormatter

public boolean getUseLegacyQualFormatter()
Get Qualification Formatter mode. If true legacy Formater(JNI) will be used else brand new Java Qualification Formatter

Returns:
Boolean

setUseLegacyAssignFormatter

public void setUseLegacyAssignFormatter(boolean formatterMode)
Set Assignment Formatter mode. If true legacy formatter(JNI) will be use else brand new Java formatter

Parameters:
formatterMode - Boolean value to set the Assignment Formatter mode

getUseLegacyAssignFormatter

public boolean getUseLegacyAssignFormatter()
Get Assignment Formatter mode. If true legacy Assign Formater(JNI) will be used else brand new Java Assignment Formatter


AR System Java API

© Copyright 2006, 2007 BMC Software, Inc.