ABLE 2.0.0 07/02/2003 10:25:01

com.ibm.able.autotune
Class BaseAutotuneController

java.lang.Object
  |
  +--com.ibm.able.AbleObject
        |
        +--com.ibm.able.AbleDefaultAgent
              |
              +--com.ibm.able.autotune.BaseAutotuneController
All Implemented Interfaces:
AbleAgent, AbleBean, AbleBeanContainer, AbleDataBufferManager, AbleEventListener, AbleEventListenerManager, AbleEventQueueManager, AbleEventQueueProcessor, AblePropertyChangeManager, AbleSerializable, AbleUserDefinedFunctionManager, AutotuneController, java.util.EventListener, java.beans.PropertyChangeListener, java.io.Serializable
Direct Known Subclasses:
BasicNeuralAutotuneController, Fuzzy2WayLoadBalanceController, Neural2WayLoadBalanceController

public class BaseAutotuneController
extends AbleDefaultAgent
implements AutotuneController, java.io.Serializable

See Also:
Serialized Form

Field Summary
protected  AutotuneAdaptor adaptor
           
protected  AutotuneMetricCollection selectedMetrics
           
 
Fields inherited from class com.ibm.able.AbleDefaultAgent
activeDataSource, defaultName, eventConnections, myBeans, numEpochs, processList, processListOK, userDefinedFunctions
 
Fields inherited from class com.ibm.able.AbleObject
changed, chgSupport, comment, dataFlowEnabled, destBufferConnections, eventQueue, fileName, inputBuffer, listeners, logger, name, outputBuffer, parent, propertyConnectionMgr, sourceBufferConnections, state, stateChgSupport, trace
 
Constructor Summary
BaseAutotuneController()
           
BaseAutotuneController(java.lang.String name)
           
 
Method Summary
 void computeControlActions()
          compute the control actions for the target system or application
 void computeErrors()
          compute the differences between actual and desired service levels for one or more service level metrics
static java.lang.String Copyright()
          Determine the copyright of this class.
 boolean getLogData()
          see if logging is turned on or off
 java.lang.String getLogDataFileName()
          get the name of the file we are writing log data to
 AutotuneMetricCollection getSelectedMetrics()
          get the subset of the Agent metrics that are being used by this controller
 boolean isLogData()
          see if logging is turned on or off
 void setAdaptor(AutotuneAdaptor adaptor)
          set the active Adaptor
 void setControlActions()
          set the control actions of the target system or application
 void setLogData(boolean state)
          turn logging on or off
 void setLogDataFileName(java.lang.String fileName)
          set the name of the file to write log data to
 void setSelectedMetrics(AutotuneMetricCollection metrics)
          set the subset of the Agent metrics that are being used by this controller
 
Methods inherited from class com.ibm.able.AbleDefaultAgent
addBean, addBeans, addEventConnection, addUserDefinedFunction, buildProcessList, clsNm, containsBean, containsBean, containsUserDefinedFunction, debugTrace, generateUniqueName, getBean, getBeans, getDataSource, getNumEpochs, getProcessList, getUserDefinedFunction, getUserDefinedFunctions, handleAbleEvent, invokeUserDefinedFunction, isActiveDataSource, process, propertyChange, quitAll, quitEnabledEventProcessing, removeAllBeans, removeAllConnections, removeAllEventConnections, removeBean, removeBean, removeBeans, removeEventConnection, removeUserDefinedFunction, reset, resumeAll, setActiveDataSource, setDataFlowEnabled, setProcessList, setUserDefinedFunctions, suspendAll
 
Methods inherited from class com.ibm.able.AbleObject
addAbleEventListener, addDestBufferConnection, addPropertyChangeListener, addPropertyConnection, addSourceBufferConnection, addStateChangeListener, dataChanged, firePropertyChange, flushAbleEventQueue, getAbleEventListeners, getAbleEventProcessingEnabled, getAbleEventQueueSize, getComment, getDestBufferConnections, getFileName, getInputBuffer, getInputBuffer, getInputBufferAsStringArray, getInputBufferContents, getLogger, getName, getOutputBuffer, getOutputBuffer, getOutputBufferAsStringArray, getOutputBufferContents, getParent, getPropertyConnectionManager, getSleepTime, getSourceBufferConnections, getState, getTraceLogger, hasInputBuffer, hasOutputBuffer, init, init, isAbleEventPostingEnabled, isAbleEventProcessingEnabled, isChanged, isConnectable, isDataFlowEnabled, isTimerEventProcessingEnabled, notifyAbleEventListeners, process, processAbleEvent, processBufferConnections, processNoEventProcessingEnabledSituation, processTimerEvent, removeAbleEventListener, removeAllAbleEventListeners, removeAllBufferConnections, removeAllPropertyConnections, removeDestBufferConnection, removePropertyChangeListener, removePropertyConnection, removeSourceBufferConnection, removeStateChangeListener, restartEnabledEventProcessing, restoreFromFile, restoreFromFile, restoreFromSerializedFile, restoreFromStream, resumeEnabledEventProcessing, saveToFile, saveToFile, setAbleEventProcessingEnabled, setChanged, setComment, setFileName, setInputBuffer, setInputBuffer, setLogger, setName, setOutputBuffer, setOutputBuffer, setParent, setSleepTime, setState, setTimerEventProcessingEnabled, setTraceLogger, sourceConnectionsOK, startEnabledEventProcessing, suspendEnabledEventProcessing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.able.AbleBean
getComment, getLogger, getName, getParent, getState, getTraceLogger, init, init, isChanged, process, setChanged, setComment, setLogger, setName, setParent, setState, setTraceLogger
 
Methods inherited from interface com.ibm.able.AbleDataBufferManager
addDestBufferConnection, addSourceBufferConnection, getDestBufferConnections, getInputBuffer, getInputBuffer, getInputBufferAsStringArray, getInputBufferContents, getOutputBuffer, getOutputBuffer, getOutputBufferAsStringArray, getOutputBufferContents, getSourceBufferConnections, hasInputBuffer, hasOutputBuffer, isConnectable, isDataFlowEnabled, processBufferConnections, removeAllBufferConnections, removeDestBufferConnection, removeSourceBufferConnection, setInputBuffer, setInputBuffer, setOutputBuffer, setOutputBuffer
 
Methods inherited from interface com.ibm.able.AbleEventListenerManager
addAbleEventListener, dataChanged, getAbleEventListeners, notifyAbleEventListeners, removeAbleEventListener
 
Methods inherited from interface com.ibm.able.AbleEventQueueManager
flushAbleEventQueue, getAbleEventProcessingEnabled, getAbleEventQueueSize, getSleepTime, isAbleEventPostingEnabled, isAbleEventProcessingEnabled, isTimerEventProcessingEnabled, restartEnabledEventProcessing, resumeEnabledEventProcessing, setAbleEventProcessingEnabled, setSleepTime, setTimerEventProcessingEnabled, startEnabledEventProcessing, suspendEnabledEventProcessing
 
Methods inherited from interface com.ibm.able.AbleEventQueueProcessor
processAbleEvent, processNoEventProcessingEnabledSituation, processTimerEvent
 
Methods inherited from interface com.ibm.able.AblePropertyChangeManager
addPropertyChangeListener, addPropertyConnection, getPropertyConnectionManager, removeAllPropertyConnections, removePropertyChangeListener, removePropertyConnection
 
Methods inherited from interface com.ibm.able.AbleSerializable
getFileName, restoreFromFile, restoreFromFile, saveToFile, saveToFile, setFileName
 
Methods inherited from interface com.ibm.able.AbleBeanContainer
getName
 

Field Detail

selectedMetrics

protected AutotuneMetricCollection selectedMetrics

adaptor

protected AutotuneAdaptor adaptor
Constructor Detail

BaseAutotuneController

public BaseAutotuneController()
                       throws AbleException

BaseAutotuneController

public BaseAutotuneController(java.lang.String name)
                       throws AbleException
Method Detail

setLogData

public void setLogData(boolean state)
turn logging on or off

getLogData

public boolean getLogData()
see if logging is turned on or off

isLogData

public boolean isLogData()
see if logging is turned on or off

setLogDataFileName

public void setLogDataFileName(java.lang.String fileName)
set the name of the file to write log data to

getLogDataFileName

public java.lang.String getLogDataFileName()
get the name of the file we are writing log data to

computeErrors

public void computeErrors()
                   throws AbleException
compute the differences between actual and desired service levels for one or more service level metrics
Specified by:
computeErrors in interface AutotuneController

computeControlActions

public void computeControlActions()
                           throws AbleException
compute the control actions for the target system or application
Specified by:
computeControlActions in interface AutotuneController

setControlActions

public void setControlActions()
                       throws AbleException
set the control actions of the target system or application
Specified by:
setControlActions in interface AutotuneController

setAdaptor

public void setAdaptor(AutotuneAdaptor adaptor)
set the active Adaptor
Specified by:
setAdaptor in interface AutotuneController

getSelectedMetrics

public AutotuneMetricCollection getSelectedMetrics()
get the subset of the Agent metrics that are being used by this controller

setSelectedMetrics

public void setSelectedMetrics(AutotuneMetricCollection metrics)
set the subset of the Agent metrics that are being used by this controller

Copyright

public static java.lang.String Copyright()
Determine the copyright of this class.
Returns:
A String containing this class's copyright statement.


ABLE 2.0.0 07/02/2003 10:25:01

(C) Copyright IBM Corporation 1999, 2003