com.apama.pa.pmml
Event ModelManager


Model Manager Interface

Used to add/update/remove a PMML model at runtime
Member summary
 action<string>addModel

Add a new PMML model to the Predictive Analytics Plugin Asset Store
 action<string, action<com.apama.pa.pmml.ServiceError>>addModelCb

Add a new PMML model to the Predictive Analytics Plugin Asset Store
 action<string, sequence<integer>>addModelFromStream

Add new PMML model from a stream to the Predictive Analytics Plugin Asset Store
 action<string, sequence<integer>, action<com.apama.pa.pmml.ServiceError>>addModelFromStreamCb

Add a new PMML model from a stream to the Predictive Analytics Plugin Asset Store
 action<string, string>updateModel

Update an existing PMML model in the Predictive Analytics Plugin Asset Store
 action<string, string, action<com.apama.pa.pmml.ServiceError>>updateModelCb

Update an existing PMML model in the Predictive Analytics Plugin Asset Store
 action<string, sequence<integer>>updateModelFromStream

Update an existing PMML model in the Predictive Analytics Plugin Asset Store
 action<string, sequence<integer>, action<com.apama.pa.pmml.ServiceError>>updateModelFromStreamCb

Update an existing PMML model in the Predictive Analytics Plugin Asset Store
 action<string>removeModel

Remove a model from the Predictive Analytics Plugin Asset Store
 action<string, action<com.apama.pa.pmml.ServiceError>>removeModelCb

Remove a model from the Predictive Analytics Plugin Asset Store
 
Member detail

addModel

action<string> addModel
Add a new PMML model to the Predictive Analytics Plugin Asset Store

Provide the path to the PMML file to be loaded

The name of model defined in the PMML file has to be unique and shouldn't already exist in the asset store

Any errors encountered while loading the PMML file will be returned using the default Service Error callback registered during service initialisation

addModelCb

action<string, action<com.apama.pa.pmml.ServiceError>> addModelCb
Add a new PMML model to the Predictive Analytics Plugin Asset Store

Provide the path to the PMML file to be loaded

The name of model defined in the PMML file has to be unique and shouldn't already exist in the asset store

Any errors encountered while loading the PMML file will be returned using the provided callback

addModelFromStream

action<string, sequence<integer>> addModelFromStream
Add new PMML model from a stream to the Predictive Analytics Plugin Asset Store

PMML model stream retrieved as sequence of integers

the name of the source; it is used a the (base) name for models if the PMML file itself does not contain model names.

Any errors encountered while loading the PMML file will be returned using the default Service Error callback registered during service initialisation

addModelFromStreamCb

action<string, sequence<integer>, action<com.apama.pa.pmml.ServiceError>> addModelFromStreamCb
Add a new PMML model from a stream to the Predictive Analytics Plugin Asset Store

PMML model stream retrieved as sequence of integers

Model name needs to be provided if the provided pmml data has no model name

Any errors encountered while loading the PMML file will be returned using the provided callback

removeModel

action<string> removeModel
Remove a model from the Predictive Analytics Plugin Asset Store

Provide the name of the PMML model to be removed

The modelName provided should exist in the asset store

Any errors encountered while removing the model will be returned using the default Service Error callback registered during service initialisation

removeModelCb

action<string, action<com.apama.pa.pmml.ServiceError>> removeModelCb
Remove a model from the Predictive Analytics Plugin Asset Store

Provide the name of the PMML model to be removed

The modelName provided should exist in the asset store

Any errors encountered while removing the model will be returned using the provided callback

updateModel

action<string, string> updateModel
Update an existing PMML model in the Predictive Analytics Plugin Asset Store

Provide the name of the model to be overwritten along with the path of the PMML file where the updated model is present

If any errors are encountered while loading the updated model, the plugin will attempt to revert to using the old model

If the plugin is unable to recover from errors while updating the model, the default Service Error callback registered during service initialisation will be used to report the errors

updateModelCb

action<string, string, action<com.apama.pa.pmml.ServiceError>> updateModelCb
Update an existing PMML model in the Predictive Analytics Plugin Asset Store

Provide the name of the model to be overwritten along with the path of the PMML file where the updated model is present

If any errors are encountered while loading the updated model, the plugin will attempt to revert to using the old model

If the plugin is unable to recover from errors while updating the model, the provided callback will be used to report the errors

updateModelFromStream

action<string, sequence<integer>> updateModelFromStream
Update an existing PMML model in the Predictive Analytics Plugin Asset Store

Provide the name of the model to be overwritten along with the PMML source stream retrieved as sequence of integers where the updated model is present

If any errors are encountered while loading the updated model, the plugin will attempt to revert to using the old model

If the plugin is unable to recover from errors while updating the model, the default Service Error callback registered during service initialisation will be used to report the errors

updateModelFromStreamCb

action<string, sequence<integer>, action<com.apama.pa.pmml.ServiceError>> updateModelFromStreamCb
Update an existing PMML model in the Predictive Analytics Plugin Asset Store

Provide the name of the model to be overwritten along with the PMML source stream retrieved as sequence of integers where the updated model is present

If any errors are encountered while loading the updated model, the plugin will attempt to revert to using the old model

If the plugin is unable to recover from errors while updating the model, the provided callback will be used to report the errors