diff --git a/block-api/framework/analyticsbuilder-framework.cdp b/block-api/framework/analyticsbuilder-framework.cdp
index 246b0ab..70b7778 100644
Binary files a/block-api/framework/analyticsbuilder-framework.cdp and b/block-api/framework/analyticsbuilder-framework.cdp differ
diff --git a/doc/apamadoc/alltypes-frame.html b/doc/apamadoc/alltypes-frame.html
index 0c7f8a2..015c63e 100644
--- a/doc/apamadoc/alltypes-frame.html
+++ b/doc/apamadoc/alltypes-frame.html
@@ -20,6 +20,16 @@
InventoryLookupResult
L10N
LngLat
+ModelCreateRequest
+ModelCreateResponse
+ModelDeleteRequest
+ModelDeleteResponse
+ModelFailed
+ModelFailedInternal
+ModelLifecycleManager
+ModelStatus
+ModelStatusRequest
+ModelStatusResponse
NameValue
OutputHandler
OutputParams
@@ -31,7 +41,11 @@
PromiseJoiner
PromiseReturner
RequestForwarding
+RunModelInternalRequest
+RunModelInternalResponse
SlowSystemWarning
+StopModelInternalRequest
+StopModelInternalResponse
TemplateParameterDefinition
TemplateReference
TimerHandle
diff --git a/doc/apamadoc/alltypes-noframe.html b/doc/apamadoc/alltypes-noframe.html
index dbde4ac..30045c8 100644
--- a/doc/apamadoc/alltypes-noframe.html
+++ b/doc/apamadoc/alltypes-noframe.html
@@ -20,6 +20,16 @@
InventoryLookupResult
L10N
LngLat
+ModelCreateRequest
+ModelCreateResponse
+ModelDeleteRequest
+ModelDeleteResponse
+ModelFailed
+ModelFailedInternal
+ModelLifecycleManager
+ModelStatus
+ModelStatusRequest
+ModelStatusResponse
NameValue
OutputHandler
OutputParams
@@ -31,7 +41,11 @@
PromiseJoiner
PromiseReturner
RequestForwarding
+RunModelInternalRequest
+RunModelInternalResponse
SlowSystemWarning
+StopModelInternalRequest
+StopModelInternalResponse
TemplateParameterDefinition
TemplateReference
TimerHandle
diff --git a/doc/apamadoc/apama/analyticsbuilder/framework/ModelCreateRequest.html b/doc/apamadoc/apama/analyticsbuilder/framework/ModelCreateRequest.html
new file mode 100644
index 0000000..eaca66e
--- /dev/null
+++ b/doc/apamadoc/apama/analyticsbuilder/framework/ModelCreateRequest.html
@@ -0,0 +1,32 @@
+
+
+
FRAMES + + NO FRAMES + | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | FIELD | ACTION | DETAIL: IMPORT | CONSTANT | FIELD | ACTION |
Constant summary | |
---|---|
constant string | SEND_CHANNEL := "AnalyticsBuilder.ModelLifecycleManager" + The channel to which this event must be sent. |
Field summary | |
---|---|
integer | reqId + The request ID. |
string | mId + The ID of the model or the template instance being deployed. |
dictionary<string, string> | params + Other parameters for the models. Following parameters are supported: - name - name of the model. In case of template model instance, it is the name of the parent template model. - builderModel - the details of the model (blocks and its connection) - mode - mode of model deployment - modeProperties - mode specific properties - templateParameters - definition of the template parameters in case of template model instance. Missing in case of static model. - templateParameterValues - value of template parameters in case of template model instance. Missing in case of static model. - parentModelId - the ID of the parent model if it is a template instance. Currently unused. |
Constant detail |
---|
constant string SEND_CHANNEL := "AnalyticsBuilder.ModelLifecycleManager"+The channel to which this event must be sent.
Field detail |
---|
string mId+The ID of the model or the template instance being deployed.
dictionary<string, string> params+Other parameters for the models. Following parameters are supported: - name - name of the model. In case of template model instance, it is the name of the parent template model. - builderModel - the details of the model (blocks and its connection) - mode - mode of model deployment - modeProperties - mode specific properties - templateParameters - definition of the template parameters in case of template model instance. Missing in case of static model. - templateParameterValues - value of template parameters in case of template model instance. Missing in case of static model. - parentModelId - the ID of the parent model if it is a template instance. Currently unused.
integer reqId+The request ID.
FRAMES + + NO FRAMES + | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | FIELD | ACTION | DETAIL: IMPORT | CONSTANT | FIELD | ACTION |
FRAMES + + NO FRAMES + | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | FIELD | ACTION | DETAIL: IMPORT | CONSTANT | FIELD | ACTION |
Constant summary | |
---|---|
constant string | SUBSCRIBE_CHANNEL := "AnalyticsBuilder.ModelLifecycleManager" + The channel to which this event is sent. |
Field summary | |
---|---|
integer | reqId + The request ID. |
string | mId + The ID of the model or the template instance. |
string | modelName + Name of the model. |
string | status + State of the model. RUNNING if creation is successful, else FAILED. |
string | runtimeError + The model creation error in English. Empty if the creation is successful. |
sequence<any> | runtimeErrorLocalized + The localized error details. Empty if the creation is successful. |
dictionary<string, dictionary<string, sequence<dictionary<string, any>>>> | modelInputDetails + Details of model inputs. |
dictionary<string, dictionary<string, sequence<dictionary<string, any>>>> | modelOutputDetails + Details of model outputs. |
Constant detail |
---|
constant string SUBSCRIBE_CHANNEL := "AnalyticsBuilder.ModelLifecycleManager"+The channel to which this event is sent.
Field detail |
---|
string mId+The ID of the model or the template instance.
dictionary<string, dictionary<string, sequence<dictionary<string, any>>>> modelInputDetails+Details of model inputs.
string modelName+Name of the model.
dictionary<string, dictionary<string, sequence<dictionary<string, any>>>> modelOutputDetails+Details of model outputs.
integer reqId+The request ID.
string runtimeError+The model creation error in English. Empty if the creation is successful.
sequence<any> runtimeErrorLocalized+The localized error details. Empty if the creation is successful.
string status+State of the model. RUNNING if creation is successful, else FAILED.
FRAMES + + NO FRAMES + | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | FIELD | ACTION | DETAIL: IMPORT | CONSTANT | FIELD | ACTION |
FRAMES + + NO FRAMES + | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | FIELD | ACTION | DETAIL: IMPORT | CONSTANT | FIELD | ACTION |
Constant summary | |
---|---|
constant string | SEND_CHANNEL := "AnalyticsBuilder.ModelLifecycleManager" + The channel to which this event must be sent. |
Field summary | |
---|---|
integer | reqId + The request ID. |
string | mId + The ID of the model or the template instance. |
Constant detail |
---|
constant string SEND_CHANNEL := "AnalyticsBuilder.ModelLifecycleManager"+The channel to which this event must be sent.
Field detail |
---|
string mId+The ID of the model or the template instance.
integer reqId+The request ID.
FRAMES + + NO FRAMES + | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | FIELD | ACTION | DETAIL: IMPORT | CONSTANT | FIELD | ACTION |
FRAMES + + NO FRAMES + | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | FIELD | ACTION | DETAIL: IMPORT | CONSTANT | FIELD | ACTION |
Constant summary | |
---|---|
constant string | SUBSCRIBE_CHANNEL := "AnalyticsBuilder.ModelLifecycleManager" + The channel to which this event is sent. |
Field summary | |
---|---|
integer | reqId + The request ID. |
string | mId + The ID of the model or the template instance. |
boolean | modelExisted + True if the model was actually deployed previously, otherwise false. |
Constant detail |
---|
constant string SUBSCRIBE_CHANNEL := "AnalyticsBuilder.ModelLifecycleManager"+The channel to which this event is sent.
Field detail |
---|
string mId+The ID of the model or the template instance.
boolean modelExisted+True if the model was actually deployed previously, otherwise false.
integer reqId+The request ID.
FRAMES + + NO FRAMES + | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | FIELD | ACTION | DETAIL: IMPORT | CONSTANT | FIELD | ACTION |
FRAMES + + NO FRAMES + | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | FIELD | ACTION | DETAIL: IMPORT | CONSTANT | FIELD | ACTION |
Constant summary | |
---|---|
constant string | SUBSCRIBE_CHANNEL := "AnalyticsBuilder.ModelLifecycleManager" + The channel to which this event is sent. |
Field summary | |
---|---|
string | mId + The ID of the model or the template instance. |
string | modelName + Name of the model. If it is a template instance, then it is the name of the parent template model. |
string | runtimeError + The model creation error in English. Empty if the creation is successful. |
sequence<any> | runtimeErrorLocalized + The localized error details. Empty if the creation is successful. |
Constant detail |
---|
constant string SUBSCRIBE_CHANNEL := "AnalyticsBuilder.ModelLifecycleManager"+The channel to which this event is sent.
Field detail |
---|
string mId+The ID of the model or the template instance.
string modelName+Name of the model. If it is a template instance, then it is the name of the parent template model.
string runtimeError+The model creation error in English. Empty if the creation is successful.
sequence<any> runtimeErrorLocalized+The localized error details. Empty if the creation is successful.
FRAMES + + NO FRAMES + | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | FIELD | ACTION | DETAIL: IMPORT | CONSTANT | FIELD | ACTION |
FRAMES + + NO FRAMES + | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | FIELD | ACTION | DETAIL: IMPORT | CONSTANT | FIELD | ACTION |
Field summary | |
---|---|
string | mId + The ID of the model or the template instance. |
com.apama.exceptions.Exception | ex + The failure exception. |
Field detail |
---|
com.apama.exceptions.Exception ex+The failure exception.
string mId+The ID of the model or the template instance.
FRAMES + + NO FRAMES + | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | FIELD | ACTION | DETAIL: IMPORT | CONSTANT | FIELD | ACTION |
FRAMES + + NO FRAMES + | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | FIELD | ACTION | DETAIL: IMPORT | CONSTANT | FIELD | ACTION |
Constant summary | |
---|---|
constant string | CHANNEL := "AnalyticsBuilder.ModelLifecycleManager" + The channel on which it listens for the requests. |
Field summary | |
---|---|
com.apama.cumulocity.TenantDetails | tenant + The current tenant. |
dictionary<string, apama.analyticsbuilder.framework.ModelStatus> | _models + Status of currently deployed models. |
sequence<any> | _pendingRequests + Currently pending request. It includes the request currently being processed. |
float | _currentRequestStartTime + The start time of current request. |
listener | _currentRequestWaitListener + A wait listener for logging warning for current request. |
sequence<listener> | _requestListeners + The listeners created for all supported request types. Used for cleanup for testing. |
Action summary | |
---|---|
apama.analyticsbuilder.framework.ModelLifecycleManager | static init(com.apama.cumulocity.TenantDetails tenant) + Create a new instance. |
void |
queueRequest(any req) + Queue a request. |
Constant detail |
---|
constant string CHANNEL := "AnalyticsBuilder.ModelLifecycleManager"+The channel on which it listens for the requests.
Field detail |
---|
float _currentRequestStartTime+The start time of current request.
listener _currentRequestWaitListener+A wait listener for logging warning for current request.
dictionary<string, apama.analyticsbuilder.framework.ModelStatus> _models+Status of currently deployed models.
sequence<any> _pendingRequests+Currently pending request. It includes the request currently being processed.
sequence<listener> _requestListeners+The listeners created for all supported request types. Used for cleanup for testing.
com.apama.cumulocity.TenantDetails tenant+The current tenant.
Action detail |
---|
apama.analyticsbuilder.framework.ModelLifecycleManager static init(com.apama.cumulocity.TenantDetails tenant)+Create a new instance.
void queueRequest(any req)+Queue a request.
FRAMES + + NO FRAMES + | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | FIELD | ACTION | DETAIL: IMPORT | CONSTANT | FIELD | ACTION |
FRAMES + + NO FRAMES + | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | FIELD | ACTION | DETAIL: IMPORT | CONSTANT | FIELD | ACTION |
Field summary | |
---|---|
string | mId + The ID of the model or the template instance. |
string | modelName + The name of the static model or the parent template model. |
string | status + Current status of the model - RUNNING / FAILED. |
string | runtimeError + The model failure error in English. Empty if model is running. |
sequence<any> | runtimeErrorLocalized + The localized error details. Empty if the model is running. |
Action summary | |
---|---|
apama.analyticsbuilder.framework.ModelStatus | static create(string mId, string modelName) + Create an instance. |
apama.analyticsbuilder.framework.ModelStatus |
failed(com.apama.exceptions.Exception e) + Update failure status. |
Field detail |
---|
string mId+The ID of the model or the template instance.
string modelName+The name of the static model or the parent template model.
string runtimeError+The model failure error in English. Empty if model is running.
sequence<any> runtimeErrorLocalized+The localized error details. Empty if the model is running.
string status+Current status of the model - RUNNING / FAILED.
Action detail |
---|
apama.analyticsbuilder.framework.ModelStatus static create(string mId, string modelName)+Create an instance.
apama.analyticsbuilder.framework.ModelStatus failed(com.apama.exceptions.Exception e)+Update failure status.
FRAMES + + NO FRAMES + | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | FIELD | ACTION | DETAIL: IMPORT | CONSTANT | FIELD | ACTION |
FRAMES + + NO FRAMES + | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | FIELD | ACTION | DETAIL: IMPORT | CONSTANT | FIELD | ACTION |
Constant summary | |
---|---|
constant string | SEND_CHANNEL := "AnalyticsBuilder.ModelLifecycleManager" + The channel to which this event must be sent. |
Field summary | |
---|---|
integer | reqId + The request ID. |
string | mId + The ID of the model or the template instance. |
Constant detail |
---|
constant string SEND_CHANNEL := "AnalyticsBuilder.ModelLifecycleManager"+The channel to which this event must be sent.
Field detail |
---|
string mId+The ID of the model or the template instance.
integer reqId+The request ID.
FRAMES + + NO FRAMES + | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | FIELD | ACTION | DETAIL: IMPORT | CONSTANT | FIELD | ACTION |
FRAMES + + NO FRAMES + | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | FIELD | ACTION | DETAIL: IMPORT | CONSTANT | FIELD | ACTION |
Constant summary | |
---|---|
constant string | SUBSCRIBE_CHANNEL := "AnalyticsBuilder.ModelLifecycleManager" + The channel to which this event is sent. |
Field summary | |
---|---|
integer | reqId + The request ID. |
string | mId + The ID of the model or the template instance. |
string | status + Current state of the model - RUNNING / FAILED / INACTIVE. |
string | runtimeError + The model failure error in English. Empty if model is running or missing. |
sequence<any> | runtimeErrorLocalized + The localized error details. Empty if the model is running of missing. |
Action summary | |
---|---|
boolean |
isMissing() + |
Constant detail |
---|
constant string SUBSCRIBE_CHANNEL := "AnalyticsBuilder.ModelLifecycleManager"+The channel to which this event is sent.
Field detail |
---|
string mId+The ID of the model or the template instance.
integer reqId+The request ID.
string runtimeError+The model failure error in English. Empty if model is running or missing.
sequence<any> runtimeErrorLocalized+The localized error details. Empty if the model is running of missing.
string status+Current state of the model - RUNNING / FAILED / INACTIVE.
Action detail |
---|
boolean isMissing()+
FRAMES + + NO FRAMES + | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | FIELD | ACTION | DETAIL: IMPORT | CONSTANT | FIELD | ACTION |
FRAMES + + NO FRAMES + | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | FIELD | ACTION | DETAIL: IMPORT | CONSTANT | FIELD | ACTION |
Field summary | |
---|---|
apama.analyticsbuilder.framework.ModelCreateRequest | request + The actual ModelCreateRequest request. |
Field detail |
---|
apama.analyticsbuilder.framework.ModelCreateRequest request+The actual ModelCreateRequest request.
FRAMES + + NO FRAMES + | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | FIELD | ACTION | DETAIL: IMPORT | CONSTANT | FIELD | ACTION |
FRAMES + + NO FRAMES + | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | FIELD | ACTION | DETAIL: IMPORT | CONSTANT | FIELD | ACTION |
Field summary | |
---|---|
integer | reqId + The request ID. |
apama.analyticsbuilder.framework.ModelCreateResponse | resp + The actual ModelCreateResponse. |
Action summary | |
---|---|
apama.analyticsbuilder.framework.RunModelInternalResponse | static create(integer reqId, string mId, string modelName) + Create a new instance. |
apama.analyticsbuilder.framework.RunModelInternalResponse |
done(dictionary<string, dictionary<string, sequence<dictionary<string, any>>>> inputDetails, dictionary<string, dictionary<string, sequence<dictionary<string, any>>>> outputDetails) + Request to run model completed successfully. |
apama.analyticsbuilder.framework.RunModelInternalResponse |
failed(com.apama.exceptions.Exception ex) + Request to run model failed. |
Field detail |
---|
integer reqId+The request ID.
apama.analyticsbuilder.framework.ModelCreateResponse resp+The actual ModelCreateResponse.
Action detail |
---|
apama.analyticsbuilder.framework.RunModelInternalResponse static create(integer reqId, string mId, string modelName)+Create a new instance.
apama.analyticsbuilder.framework.RunModelInternalResponse done(dictionary<string, dictionary<string, sequence<dictionary<string, any>>>> inputDetails, dictionary<string, dictionary<string, sequence<dictionary<string, any>>>> outputDetails)+Request to run model completed successfully.
apama.analyticsbuilder.framework.RunModelInternalResponse failed(com.apama.exceptions.Exception ex)+Request to run model failed.
FRAMES + + NO FRAMES + | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | FIELD | ACTION | DETAIL: IMPORT | CONSTANT | FIELD | ACTION |
FRAMES + + NO FRAMES + | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | FIELD | ACTION | DETAIL: IMPORT | CONSTANT | FIELD | ACTION |
Field summary | |
---|---|
integer | reqId + The request ID. |
string | mId + The ID of the model or the template instance. |
boolean | modelFailed + True iff we are stopping the model (cleanup) if the model failed and not due to user deletion request. |
Field detail |
---|
string mId+The ID of the model or the template instance.
boolean modelFailed+True iff we are stopping the model (cleanup) if the model failed and not due to user deletion request.
integer reqId+The request ID.
FRAMES + + NO FRAMES + | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | FIELD | ACTION | DETAIL: IMPORT | CONSTANT | FIELD | ACTION |
FRAMES + + NO FRAMES + | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | FIELD | ACTION | DETAIL: IMPORT | CONSTANT | FIELD | ACTION |
Field summary | |
---|---|
integer | reqId + The request ID. |
Field detail |
---|
integer reqId+The request ID.
FRAMES + + NO FRAMES + | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | FIELD | ACTION | DETAIL: IMPORT | CONSTANT | FIELD | ACTION |
| |||||||
FRAMES + + NO FRAMES + |
Event summary | |
---|---|
ModelCreateRequest | Request for creating (deploying) a model. |
ModelCreateResponse | Response to the ModelCreateRequest. |
ModelDeleteRequest | Request for deleting a model. |
ModelDeleteResponse | Response to the ModelDeleteRequest. |
ModelFailed | Event sent if a running model fails. |
ModelFailedInternal | Routed by the Framework.mon when a running model has failed. |
ModelLifecycleManager | The event to manage requests for model lifecycle. |
ModelStatus | Current model status. |
ModelStatusRequest | Request for getting the current status of a model or a template instance. A ModelStatusResponse event is sent back with the same reqId with the result. |
ModelStatusResponse | Response to the ModelStatusRequest. |
RunModelInternalRequest | Internal events used for requesting starting a model. Handled by Framework.mon * |
RunModelInternalResponse | Response for RunModelInternalRequest. Routed from Framework.mon |
StopModelInternalRequest | Internal events used for stopping all monitor instances of a model. Handled by Framework.mon * |
StopModelInternalResponse | Response for StopModelInternalRequest. Routed from Framework.mon when all monitor instances related to the model are stopped. |
| |||||||
FRAMES + + NO FRAMES + |
All Types Packages |
All Types Packages |