|
Oracle Fusion Middleware Java API Reference for Oracle Real-Time Decisions 11g Release 1 (11.1.1) E17787-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.sigmadynamics.sdo.support.SDOBase
com.sigmadynamics.sdo.support.SDApplicationBase
public abstract class SDApplicationBase
Abstract base class for the Application class in generated code, the most important class of an Inline Service. An Inline Service's lifecycle is managed through this class. The Application
(bottommost subclass of SDApplicationBase
) serves as the main gateway between the RTD Decision Server and an Inline Service.
Field Summary | |
---|---|
protected AppFactoryInterface |
appFactory |
Fields inherited from class com.sigmadynamics.sdo.support.SDOBase |
---|
description, internalName, sdExternalName |
Method Summary | |
---|---|
protected boolean |
calculateControlGroupStatus(double val, double percent) |
protected boolean |
calculateControlGroupStatus(int val, double percent) |
protected boolean |
calculateControlGroupStatus(long val, double percent) |
protected boolean |
calculateControlGroupStatus(java.lang.String val, double percent) |
protected boolean |
checkControlGroupStatus(boolean val) |
protected boolean |
checkControlGroupStatus(int val) |
protected boolean |
checkControlGroupStatus(java.lang.String val) |
static long |
currentTimeMillis() Overrideable method used to aid in simulation of time |
boolean |
deleteStudy() Deletes the study of the Inline Service containing the calling BatchJob, together with all its contained learning models and associated prediction models. |
boolean |
determineCG() |
int |
dumpStudy(boolean rewriteCompletedTimeWindows) Creates a snapshot of the study that is owned by the Inline Service containing the calling BatchJob. |
int |
dumpStudy(boolean rewriteCompletedTimeWindows, float minAbsCorrelation, int numberOfBins) Creates a snapshot of the study that is owned by the Inline Service containing the calling BatchJob. |
void |
forceLearning() Updates the in-memory learning models of all studies to include the latest available learnings, and persists the updated learning models to the database. |
com.sigmadynamics.batch.BatchAgent |
getBatchAgent() |
protected static BatchAgentKernel |
getBatchAgentKernel() overrideable |
ChoiceGroupInterface |
getChoiceGroup(java.lang.String groupId) |
int |
getDataVersion() |
int |
getDeploymentState() |
int |
getDeploymentVersion() |
protected static LearningRecordWriterFactory |
getLearningRecordWriterFactory() overrideable |
Metadata |
getMetadata() |
java.lang.String |
getName() Gets the application name. |
int |
getSessionCount() |
java.lang.String |
getStudyName() Get the application's study name. |
long |
getTimeLastLoaded() |
boolean |
isStoppedOrShuttingDown() |
protected PredictorInterface |
newPredictor(SDModelArray models, Path[] attributePaths, java.lang.String[] attributes) Overrideable |
protected RuleCache |
newRuleCache(java.lang.ClassLoader parent) Overrideable RuleCache factory |
protected RuleEvaluator |
newRuleEvaluator(ApplicationInterface app) Overrideable RuleEvaluator factory |
void |
rebuildPredictionModels() Rebuilds prediction models for all studies, so they include all recent learnings. |
void |
setTimeLastLoaded(long time) |
Methods inherited from class com.sigmadynamics.sdo.support.SDOBase |
---|
getDescription, getSDOId, getSDOLabel, getSDOLabelOrId, setDescription, setSDOId, setSDOLabel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.sigmadynamics.sdo.interfaces.ApplicationInterface |
---|
cleanUp, deleteChoiceHistory, deleteStatistics, flushStatistics, getDefaultChoices, init |
Methods inherited from interface com.sigmadynamics.sdo.interfaces.client.SDOInterface |
---|
getDescription, getSDOId, getSDOLabel, getSDOLabelOrId |
Field Detail |
---|
protected final AppFactoryInterface appFactory
Method Detail |
---|
protected static LearningRecordWriterFactory getLearningRecordWriterFactory()
protected static BatchAgentKernel getBatchAgentKernel()
public java.lang.String getStudyName()
ApplicationInterface
getStudyName
in interface ApplicationInterface
public boolean determineCG()
determineCG
in interface ApplicationInterface
protected boolean calculateControlGroupStatus(java.lang.String val, double percent)
protected boolean calculateControlGroupStatus(int val, double percent)
protected boolean calculateControlGroupStatus(long val, double percent)
protected boolean calculateControlGroupStatus(double val, double percent)
protected boolean checkControlGroupStatus(boolean val)
protected boolean checkControlGroupStatus(int val)
protected boolean checkControlGroupStatus(java.lang.String val)
public int getSessionCount()
getSessionCount
in interface ApplicationInterface
public boolean isStoppedOrShuttingDown()
isStoppedOrShuttingDown
in interface ApplicationInterface
public java.lang.String getName()
ApplicationInterface
getName
in interface ApplicationInterface
public int getDeploymentVersion()
getDeploymentVersion
in interface ApplicationInterface
public int getDeploymentState()
getDeploymentState
in interface ApplicationInterface
public Metadata getMetadata()
getMetadata
in interface ApplicationInterface
public static long currentTimeMillis()
Must be threadsafe.
public int getDataVersion()
getDataVersion
in interface ApplicationInterface
public ChoiceGroupInterface getChoiceGroup(java.lang.String groupId)
getChoiceGroup
in interface ApplicationInterface
SDChoiceGroup.findChoiceGroup(String)
public com.sigmadynamics.batch.BatchAgent getBatchAgent()
getBatchAgent
in interface ApplicationInterface
protected PredictorInterface newPredictor(SDModelArray models, Path[] attributePaths, java.lang.String[] attributes)
protected RuleCache newRuleCache(java.lang.ClassLoader parent)
protected RuleEvaluator newRuleEvaluator(ApplicationInterface app)
public long getTimeLastLoaded()
public void setTimeLastLoaded(long time)
public boolean deleteStudy()
ApplicationInterface
deleteStudy
in interface ApplicationInterface
public int dumpStudy(boolean rewriteCompletedTimeWindows)
ApplicationInterface
Because this operation could take a long time to execute, the recommended practice is to call it directly from a batch job, or from an Integration Point that was invoked by a batch job. Calling it from an Integration Point that was invoked by a Decision Service web service client would likely cause the web service call to timeout.
This call uses the default tuning attributes, meaning it behaves the same as calling
int dumpStudy(boolean rewriteCompletedTimeWindows, double minAbsCorrelation, int numberOfBins);
with the minAbsCorrelation and numberOfBins parameters set to the values seen in the JMX MBean attributes, ModelSnapshotMinAbsCorrelation (default=.000001) and ModelSnapshotNumberOfBins (default=5), respectively. Refer to the RTD installation guide for information about accessing these MBean attributes.
dumpStudy
in interface ApplicationInterface
rewriteCompletedTimeWindows
- If true, the snapshot data for completed time windows will be deleted and recreated, even though their contents should not have changed.public int dumpStudy(boolean rewriteCompletedTimeWindows, float minAbsCorrelation, int numberOfBins)
ApplicationInterface
Because this operation could take a long time to execute, the recommended practice is to call it directly from a batch job, or from an Integration Point that was invoked by a batch job. Calling it from an Integration Point that was invoked by a Decision Service web service client would likely cause the web service call to timeout.
dumpStudy
in interface ApplicationInterface
rewriteCompletedTimeWindows
- If true, the snapshot data for completed time windows will be deleted and recreated, even though their contents would not have changed.minAbsCorrelation
- Minimum allowed absolute correlation value permitted in model snapshots. Use 0 for all, but be prepared for a lot of data.numberOfBins
- A hint to the Learning Service for the preferred number of bins to use when writing numeric attribute values to a model snapshot.public void forceLearning()
ApplicationInterface
forceLearning
in interface ApplicationInterface
public void rebuildPredictionModels()
ApplicationInterface
This method asks the Learning Service to do the following sequence of activities, and returns after the sequence has finished.
rebuildPredictionModels
in interface ApplicationInterface
|
Oracle Fusion Middleware Java API Reference for Oracle Real-Time Decisions 11g Release 1 (11.1.1) E17787-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |