Upgrading CEP artifacts to 3.1.0
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/8ad1f6e7 Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/8ad1f6e7 Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/8ad1f6e7 Branch: refs/heads/stratos-4.1.x Commit: 8ad1f6e79c1542a43d5377ad3228fad94e906bed Parents: 3043dc3 Author: anuruddhal <[email protected]> Authored: Wed Sep 16 14:52:03 2015 +0530 Committer: anuruddhal <[email protected]> Committed: Fri Sep 18 09:53:18 2015 +0530 ---------------------------------------------------------------------- .../HealthStatisticsEventBuilder.xml | 31 -- .../LoadBalancerStatisticsEventBuilder.xml | 31 -- .../AverageInFlightRequestsEventFormatter.xml | 32 -- .../AverageLoadAverageEventFormatter.xml | 32 -- .../AverageMemoryConsumptionEventFormatter.xml | 32 -- .../FaultMessageEventFormatter.xml | 32 -- .../GradientInFlightRequestsEventFormatter.xml | 32 -- .../GradientLoadAverageEventFormatter.xml | 32 -- .../GradientMemoryConsumptionEventFormatter.xml | 32 -- .../MemberAverageLoadAverageEventFormatter.xml | 32 -- ...erAverageMemoryConsumptionEventFormatter.xml | 32 -- .../MemberGradientLoadAverageEventFormatter.xml | 32 -- ...rGradientMemoryConsumptionEventFormatter.xml | 32 -- ...econdDerivativeLoadAverageEventFormatter.xml | 32 -- ...erivativeMemoryConsumptionEventFormatter.xml | 32 -- ...DerivativeInFlightRequestsEventFormatter.xml | 32 -- ...econdDerivativeLoadAverageEventFormatter.xml | 32 -- ...erivativeMemoryConsumptionEventFormatter.xml | 32 -- .../executionplans/AverageHeathRequest.xml | 71 ---- .../AverageInFlightRequestsFinder.xml | 48 --- .../executionplans/GradientOfHealthRequest.xml | 71 ---- .../GradientOfRequestsInFlightFinder.xml | 48 --- .../SecondDerivativeOfHealthRequest.xml | 68 ---- ...SecondDerivativeOfRequestsInFlightFinder.xml | 48 --- .../DefaultWSO2EventInputAdaptor.xml | 24 -- .../DefaultWSO2EventOutputAdaptor.xml | 29 -- .../outputeventadaptors/JMSOutputAdaptor.xml | 30 -- .../streamdefinitions/stream-manager-config.xml | 309 ---------------- .../HealthStatisticsEventBuilder.xml | 31 ++ .../LoadBalancerStatisticsEventBuilder.xml | 31 ++ .../AverageInFlightRequestsEventFormatter.xml | 32 ++ .../AverageLoadAverageEventFormatter.xml | 32 ++ .../AverageMemoryConsumptionEventFormatter.xml | 32 ++ .../FaultMessageEventFormatter.xml | 32 ++ .../GradientInFlightRequestsEventFormatter.xml | 32 ++ .../GradientLoadAverageEventFormatter.xml | 32 ++ .../GradientMemoryConsumptionEventFormatter.xml | 32 ++ .../MemberAverageLoadAverageEventFormatter.xml | 32 ++ ...erAverageMemoryConsumptionEventFormatter.xml | 32 ++ .../MemberGradientLoadAverageEventFormatter.xml | 32 ++ ...rGradientMemoryConsumptionEventFormatter.xml | 32 ++ ...econdDerivativeLoadAverageEventFormatter.xml | 32 ++ ...erivativeMemoryConsumptionEventFormatter.xml | 32 ++ ...DerivativeInFlightRequestsEventFormatter.xml | 32 ++ ...econdDerivativeLoadAverageEventFormatter.xml | 32 ++ ...erivativeMemoryConsumptionEventFormatter.xml | 32 ++ .../executionplans/AverageHeathRequest.xml | 71 ++++ .../AverageInFlightRequestsFinder.xml | 48 +++ .../executionplans/GradientOfHealthRequest.xml | 71 ++++ .../GradientOfRequestsInFlightFinder.xml | 48 +++ .../SecondDerivativeOfHealthRequest.xml | 68 ++++ ...SecondDerivativeOfRequestsInFlightFinder.xml | 48 +++ .../DefaultWSO2EventInputAdaptor.xml | 24 ++ .../DefaultWSO2EventOutputAdaptor.xml | 29 ++ .../outputeventadaptors/JMSOutputAdaptor.xml | 30 ++ .../streamdefinitions/stream-manager-config.xml | 309 ++++++++++++++++ .../HealthStatisticsEventBuilder.xml | 31 ++ .../LoadBalancerStatisticsEventBuilder.xml | 31 ++ .../AverageInFlightRequestsEventFormatter.xml | 32 ++ .../AverageLoadAverageEventFormatter.xml | 32 ++ .../AverageMemoryConsumptionEventFormatter.xml | 32 ++ .../FaultMessageEventFormatter.xml | 32 ++ .../GradientInFlightRequestsEventFormatter.xml | 32 ++ .../GradientLoadAverageEventFormatter.xml | 32 ++ .../GradientMemoryConsumptionEventFormatter.xml | 32 ++ .../MemberAverageLoadAverageEventFormatter.xml | 32 ++ ...erAverageMemoryConsumptionEventFormatter.xml | 32 ++ .../MemberGradientLoadAverageEventFormatter.xml | 32 ++ ...rGradientMemoryConsumptionEventFormatter.xml | 32 ++ ...econdDerivativeLoadAverageEventFormatter.xml | 32 ++ ...erivativeMemoryConsumptionEventFormatter.xml | 32 ++ ...DerivativeInFlightRequestsEventFormatter.xml | 32 ++ ...econdDerivativeLoadAverageEventFormatter.xml | 32 ++ ...erivativeMemoryConsumptionEventFormatter.xml | 32 ++ .../executionplans/AverageHeathRequest.xml | 63 ++++ .../AverageInFlightRequestsFinder.xml | 40 +++ .../executionplans/GradientOfHealthRequest.xml | 63 ++++ .../GradientOfRequestsInFlightFinder.xml | 40 +++ .../SecondDerivativeOfHealthRequest.xml | 60 ++++ ...SecondDerivativeOfRequestsInFlightFinder.xml | 40 +++ .../DefaultWSO2EventInputAdaptor.xml | 24 ++ .../DefaultWSO2EventOutputAdaptor.xml | 29 ++ .../outputeventadaptors/JMSOutputAdaptor.xml | 30 ++ .../streamdefinitions/stream-manager-config.xml | 309 ++++++++++++++++ .../cep/modules/stratos-cep-extension/pom.xml | 63 ---- .../cep/extension/CEPTopologyEventReceiver.java | 99 ------ .../cep/extension/ConcatWindowProcessor.java | 54 --- .../extension/FaultHandlingWindowProcessor.java | 349 ------------------- .../GradientFinderWindowProcessor.java | 283 --------------- ...equestHandlingCapabilityWindowProcessor.java | 68 ---- .../SecondDerivativeFinderWindowProcessor.java | 301 ---------------- .../stratos-cep-extension/wso2cep-3.0.0/pom.xml | 63 ++++ .../cep/extension/CEPTopologyEventReceiver.java | 99 ++++++ .../cep/extension/ConcatWindowProcessor.java | 54 +++ .../extension/FaultHandlingWindowProcessor.java | 349 +++++++++++++++++++ .../GradientFinderWindowProcessor.java | 277 +++++++++++++++ ...equestHandlingCapabilityWindowProcessor.java | 68 ++++ .../SecondDerivativeFinderWindowProcessor.java | 295 ++++++++++++++++ .../stratos-cep-extension/wso2cep-3.1.0/pom.xml | 57 +++ .../cep/extension/CEPTopologyEventReceiver.java | 99 ++++++ .../cep/extension/ConcatWindowProcessor.java | 54 +++ .../extension/FaultHandlingWindowProcessor.java | 343 ++++++++++++++++++ .../GradientFinderWindowProcessor.java | 277 +++++++++++++++ ...equestHandlingCapabilityWindowProcessor.java | 68 ++++ .../SecondDerivativeFinderWindowProcessor.java | 295 ++++++++++++++++ extensions/cep/pom.xml | 3 +- products/stratos/modules/distribution/pom.xml | 2 +- .../modules/distribution/src/assembly/bin.xml | 12 +- 108 files changed, 4999 insertions(+), 2545 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/eventbuilders/HealthStatisticsEventBuilder.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/eventbuilders/HealthStatisticsEventBuilder.xml b/extensions/cep/modules/artifacts/eventbuilders/HealthStatisticsEventBuilder.xml deleted file mode 100644 index 92f8d8a..0000000 --- a/extensions/cep/modules/artifacts/eventbuilders/HealthStatisticsEventBuilder.xml +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - ---> - -<eventBuilder name="HealthStatisticsEventBuilder" statistics="disable" - trace="enable" xmlns="http://wso2.org/carbon/eventbuilder"> - <from eventAdaptorName="DefaultWSO2EventInputAdaptor" eventAdaptorType="wso2event"> - <property name="stream">cartridge_agent_health_stats</property> - <property name="version">1.0.0</property> - </from> - <mapping customMapping="disable" type="wso2event"/> - <to streamName="cartridge_agent_health_stats" version="1.0.0"/> -</eventBuilder> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/eventbuilders/LoadBalancerStatisticsEventBuilder.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/eventbuilders/LoadBalancerStatisticsEventBuilder.xml b/extensions/cep/modules/artifacts/eventbuilders/LoadBalancerStatisticsEventBuilder.xml deleted file mode 100644 index 8090e63..0000000 --- a/extensions/cep/modules/artifacts/eventbuilders/LoadBalancerStatisticsEventBuilder.xml +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - ---> - -<eventBuilder name="LoadBalancerStatisticsEventBuilder" - statistics="disable" trace="enable" xmlns="http://wso2.org/carbon/eventbuilder"> - <from eventAdaptorName="DefaultWSO2EventInputAdaptor" eventAdaptorType="wso2event"> - <property name="stream">in_flight_requests</property> - <property name="version">1.0.0</property> - </from> - <mapping customMapping="disable" type="wso2event"/> - <to streamName="in_flight_requests" version="1.0.0"/> -</eventBuilder> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/eventformatters/AverageInFlightRequestsEventFormatter.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/eventformatters/AverageInFlightRequestsEventFormatter.xml b/extensions/cep/modules/artifacts/eventformatters/AverageInFlightRequestsEventFormatter.xml deleted file mode 100644 index 5955866..0000000 --- a/extensions/cep/modules/artifacts/eventformatters/AverageInFlightRequestsEventFormatter.xml +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - ---> - -<eventFormatter name="AverageRequestsInflightEventFormatter" - statistics="disable" trace="enable" xmlns="http://wso2.org/carbon/eventformatter"> - <from streamName="average_in_flight_requests" version="1.0.0"/> - <mapping customMapping="enable" type="json"> - <inline>{"org.apache.stratos.messaging.event.health.stat.AverageRequestsInFlightEvent":{"message":{"clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{count}}"}}}</inline> - </mapping> - <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms"> - <property name="transport.jms.Destination">summarized-health-stats</property> - </to> -</eventFormatter> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/eventformatters/AverageLoadAverageEventFormatter.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/eventformatters/AverageLoadAverageEventFormatter.xml b/extensions/cep/modules/artifacts/eventformatters/AverageLoadAverageEventFormatter.xml deleted file mode 100644 index a0e2052..0000000 --- a/extensions/cep/modules/artifacts/eventformatters/AverageLoadAverageEventFormatter.xml +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - ---> - -<eventFormatter name="AverageLoadAverageEventFormatter" - statistics="disable" trace="enable" xmlns="http://wso2.org/carbon/eventformatter"> - <from streamName="average_load_average_stats" version="1.0.0"/> - <mapping customMapping="enable" type="json"> - <inline>{"org.apache.stratos.messaging.event.health.stat.AverageLoadAverageEvent":{"message":{"clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{average_load_average}}"}}}</inline> - </mapping> - <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms"> - <property name="transport.jms.Destination">summarized-health-stats</property> - </to> -</eventFormatter> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/eventformatters/AverageMemoryConsumptionEventFormatter.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/eventformatters/AverageMemoryConsumptionEventFormatter.xml b/extensions/cep/modules/artifacts/eventformatters/AverageMemoryConsumptionEventFormatter.xml deleted file mode 100644 index cbcab0a..0000000 --- a/extensions/cep/modules/artifacts/eventformatters/AverageMemoryConsumptionEventFormatter.xml +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - ---> - -<eventFormatter name="AverageMemoryConsumptionEventFormatter" - statistics="disable" trace="enable" xmlns="http://wso2.org/carbon/eventformatter"> - <from streamName="average_memory_consumption_stats" version="1.0.0"/> - <mapping customMapping="enable" type="json"> - <inline>{"org.apache.stratos.messaging.event.health.stat.AverageMemoryConsumptionEvent":{"message":{"clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{average_memory_consumption}}"}}}</inline> - </mapping> - <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms"> - <property name="transport.jms.Destination">summarized-health-stats</property> - </to> -</eventFormatter> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/eventformatters/FaultMessageEventFormatter.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/eventformatters/FaultMessageEventFormatter.xml b/extensions/cep/modules/artifacts/eventformatters/FaultMessageEventFormatter.xml deleted file mode 100644 index 96264ca..0000000 --- a/extensions/cep/modules/artifacts/eventformatters/FaultMessageEventFormatter.xml +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - ---> - -<eventFormatter name="FaultMessageEventFormatter" - statistics="disable" trace="enable" xmlns="http://wso2.org/carbon/eventformatter"> - <from streamName="fault_message" version="1.0.0"/> - <mapping customMapping="enable" type="json"> - <inline>{"org.apache.stratos.messaging.event.health.stat.MemberFaultEvent":{"message":{"clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","memberId":"{{member_id}}","partitionId":"{{partition_id}}"}}}</inline> - </mapping> - <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms"> - <property name="transport.jms.Destination">summarized-health-stats</property> - </to> -</eventFormatter> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/eventformatters/GradientInFlightRequestsEventFormatter.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/eventformatters/GradientInFlightRequestsEventFormatter.xml b/extensions/cep/modules/artifacts/eventformatters/GradientInFlightRequestsEventFormatter.xml deleted file mode 100644 index 2b5045b..0000000 --- a/extensions/cep/modules/artifacts/eventformatters/GradientInFlightRequestsEventFormatter.xml +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - ---> - -<eventFormatter name="GradientInFlightRequestsEventFormatter" statistics="disable" - trace="disable" xmlns="http://wso2.org/carbon/eventformatter"> - <from streamName="gradient_in_flight_requests" version="1.0.0"/> - <mapping customMapping="enable" type="json"> - <inline>{"org.apache.stratos.messaging.event.health.stat.GradientOfRequestsInFlightEvent":{"message":{"clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{count}}"}}}</inline> - </mapping> - <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms"> - <property name="transport.jms.Destination">summarized-health-stats</property> - </to> -</eventFormatter> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/eventformatters/GradientLoadAverageEventFormatter.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/eventformatters/GradientLoadAverageEventFormatter.xml b/extensions/cep/modules/artifacts/eventformatters/GradientLoadAverageEventFormatter.xml deleted file mode 100644 index 7fa3d7a..0000000 --- a/extensions/cep/modules/artifacts/eventformatters/GradientLoadAverageEventFormatter.xml +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - ---> - -<eventFormatter name="GradientLoadAverageEventFormatter" - statistics="disable" trace="enable" xmlns="http://wso2.org/carbon/eventformatter"> - <from streamName="gradient_load_average_stats" version="1.0.0"/> - <mapping customMapping="enable" type="json"> - <inline>{"org.apache.stratos.messaging.event.health.stat.GradientOfLoadAverageEvent":{"message":{"clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{gradient_load_average}}"}}}</inline> - </mapping> - <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms"> - <property name="transport.jms.Destination">summarized-health-stats</property> - </to> -</eventFormatter> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/eventformatters/GradientMemoryConsumptionEventFormatter.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/eventformatters/GradientMemoryConsumptionEventFormatter.xml b/extensions/cep/modules/artifacts/eventformatters/GradientMemoryConsumptionEventFormatter.xml deleted file mode 100644 index 8c3b871..0000000 --- a/extensions/cep/modules/artifacts/eventformatters/GradientMemoryConsumptionEventFormatter.xml +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - ---> - -<eventFormatter name="GradientMemoryConsumptionEventFormatter" - statistics="disable" trace="enable" xmlns="http://wso2.org/carbon/eventformatter"> - <from streamName="gradient_memory_consumption_stats" version="1.0.0"/> - <mapping customMapping="enable" type="json"> - <inline>{"org.apache.stratos.messaging.event.health.stat.GradientOfMemoryConsumptionEvent":{"message":{"clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{gradient_memory_consumption}}"}}}</inline> - </mapping> - <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms"> - <property name="transport.jms.Destination">summarized-health-stats</property> - </to> -</eventFormatter> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/eventformatters/MemberAverageLoadAverageEventFormatter.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/eventformatters/MemberAverageLoadAverageEventFormatter.xml b/extensions/cep/modules/artifacts/eventformatters/MemberAverageLoadAverageEventFormatter.xml deleted file mode 100644 index cab6df6..0000000 --- a/extensions/cep/modules/artifacts/eventformatters/MemberAverageLoadAverageEventFormatter.xml +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - ---> - -<eventFormatter name="MemberAverageLoadAverageEventFormatter" - statistics="disable" trace="enable" xmlns="http://wso2.org/carbon/eventformatter"> - <from streamName="member_average_load_average_stats" version="1.0.0"/> - <mapping customMapping="enable" type="json"> - <inline>{"org.apache.stratos.messaging.event.health.stat.MemberAverageLoadAverageEvent":{"message":{"memberId":"{{member_id}}","clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{member_average_load_average}}"}}}</inline> - </mapping> - <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms"> - <property name="transport.jms.Destination">summarized-health-stats</property> - </to> -</eventFormatter> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/eventformatters/MemberAverageMemoryConsumptionEventFormatter.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/eventformatters/MemberAverageMemoryConsumptionEventFormatter.xml b/extensions/cep/modules/artifacts/eventformatters/MemberAverageMemoryConsumptionEventFormatter.xml deleted file mode 100644 index 7f6e1f8..0000000 --- a/extensions/cep/modules/artifacts/eventformatters/MemberAverageMemoryConsumptionEventFormatter.xml +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - ---> - -<eventFormatter name="MemberAverageMemoryConsumptionEventFormatter" - statistics="disable" trace="enable" xmlns="http://wso2.org/carbon/eventformatter"> - <from streamName="member_average_memory_consumption_stats" version="1.0.0"/> - <mapping customMapping="enable" type="json"> - <inline>{"org.apache.stratos.messaging.event.health.stat.MemberAverageMemoryConsumptionEvent":{"message":{"memberId":"{{member_id}}","clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{member_average_memory_consumption}}"}}}</inline> - </mapping> - <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms"> - <property name="transport.jms.Destination">summarized-health-stats</property> - </to> -</eventFormatter> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/eventformatters/MemberGradientLoadAverageEventFormatter.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/eventformatters/MemberGradientLoadAverageEventFormatter.xml b/extensions/cep/modules/artifacts/eventformatters/MemberGradientLoadAverageEventFormatter.xml deleted file mode 100644 index af73b46..0000000 --- a/extensions/cep/modules/artifacts/eventformatters/MemberGradientLoadAverageEventFormatter.xml +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - ---> - -<eventFormatter name="MemberGradientLoadAverageEventFormatter" - statistics="disable" trace="enable" xmlns="http://wso2.org/carbon/eventformatter"> - <from streamName="member_gradient_load_average_stats" version="1.0.0"/> - <mapping customMapping="enable" type="json"> - <inline>{"org.apache.stratos.messaging.event.health.stat.MemberGradientOfLoadAverageEvent":{"message":{"memberId":"{{member_id}}","clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{member_gradient_load_average}}"}}}</inline> - </mapping> - <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms"> - <property name="transport.jms.Destination">summarized-health-stats</property> - </to> -</eventFormatter> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/eventformatters/MemberGradientMemoryConsumptionEventFormatter.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/eventformatters/MemberGradientMemoryConsumptionEventFormatter.xml b/extensions/cep/modules/artifacts/eventformatters/MemberGradientMemoryConsumptionEventFormatter.xml deleted file mode 100644 index 702f149..0000000 --- a/extensions/cep/modules/artifacts/eventformatters/MemberGradientMemoryConsumptionEventFormatter.xml +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - ---> - -<eventFormatter name="MemberGradientMemoryConsumptionEventFormatter" - statistics="disable" trace="enable" xmlns="http://wso2.org/carbon/eventformatter"> - <from streamName="member_gradient_memory_consumption_stats" version="1.0.0"/> - <mapping customMapping="enable" type="json"> - <inline>{"org.apache.stratos.messaging.event.health.stat.MemberGradientOfMemoryConsumptionEvent":{"message":{"memberId":"{{member_id}}","clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{member_gradient_memory_consumption}}"}}}</inline> - </mapping> - <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms"> - <property name="transport.jms.Destination">summarized-health-stats</property> - </to> -</eventFormatter> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/eventformatters/MemberSecondDerivativeLoadAverageEventFormatter.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/eventformatters/MemberSecondDerivativeLoadAverageEventFormatter.xml b/extensions/cep/modules/artifacts/eventformatters/MemberSecondDerivativeLoadAverageEventFormatter.xml deleted file mode 100644 index 5281652..0000000 --- a/extensions/cep/modules/artifacts/eventformatters/MemberSecondDerivativeLoadAverageEventFormatter.xml +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - ---> - -<eventFormatter name="MemberSecondDerivativeLoadAverageEventFormatter" - statistics="disable" trace="disable" xmlns="http://wso2.org/carbon/eventformatter"> - <from streamName="member_second_derivative_load_average_stats" version="1.0.0"/> - <mapping customMapping="enable" type="json"> - <inline>{"org.apache.stratos.messaging.event.health.stat.MemberSecondDerivativeOfLoadAverageEvent":{"message":{"memberId":"{{member_id}}","clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{member_second_derivative_load_average}}"}}}</inline> - </mapping> - <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms"> - <property name="transport.jms.Destination">summarized-health-stats</property> - </to> -</eventFormatter> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/eventformatters/MemberSecondDerivativeMemoryConsumptionEventFormatter.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/eventformatters/MemberSecondDerivativeMemoryConsumptionEventFormatter.xml b/extensions/cep/modules/artifacts/eventformatters/MemberSecondDerivativeMemoryConsumptionEventFormatter.xml deleted file mode 100644 index 2e32be3..0000000 --- a/extensions/cep/modules/artifacts/eventformatters/MemberSecondDerivativeMemoryConsumptionEventFormatter.xml +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - ---> - -<eventFormatter name="MemberSecondDerivativeMemoryConsumptionEventFormatter" - statistics="disable" trace="disable" xmlns="http://wso2.org/carbon/eventformatter"> - <from streamName="member_second_derivative_memory_consumption_stats" version="1.0.0"/> - <mapping customMapping="enable" type="json"> - <inline>{"org.apache.stratos.messaging.event.health.stat.MemberSecondDerivativeOfMemoryConsumptionEvent":{"message":{"memberId":"{{member_id}}","clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{member_second_derivative_memory_consumption}}"}}}</inline> - </mapping> - <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms"> - <property name="transport.jms.Destination">summarized-health-stats</property> - </to> -</eventFormatter> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/eventformatters/SecondDerivativeInFlightRequestsEventFormatter.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/eventformatters/SecondDerivativeInFlightRequestsEventFormatter.xml b/extensions/cep/modules/artifacts/eventformatters/SecondDerivativeInFlightRequestsEventFormatter.xml deleted file mode 100644 index 61862d1..0000000 --- a/extensions/cep/modules/artifacts/eventformatters/SecondDerivativeInFlightRequestsEventFormatter.xml +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - ---> - -<eventFormatter name="SecondDerivativeEventFormatter" - statistics="disable" trace="disable" xmlns="http://wso2.org/carbon/eventformatter"> - <from streamName="second_derivative_in_flight_requests" version="1.0.0"/> - <mapping customMapping="enable" type="json"> - <inline>{"org.apache.stratos.messaging.event.health.stat.SecondDerivativeOfRequestsInFlightEvent":{"message":{"clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{count}}"}}}</inline> - </mapping> - <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms"> - <property name="transport.jms.Destination">summarized-health-stats</property> - </to> -</eventFormatter> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/eventformatters/SecondDerivativeLoadAverageEventFormatter.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/eventformatters/SecondDerivativeLoadAverageEventFormatter.xml b/extensions/cep/modules/artifacts/eventformatters/SecondDerivativeLoadAverageEventFormatter.xml deleted file mode 100644 index 3dc4a74..0000000 --- a/extensions/cep/modules/artifacts/eventformatters/SecondDerivativeLoadAverageEventFormatter.xml +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - ---> - -<eventFormatter name="SecondDerivativeLoadAverageEventFormatter" - statistics="disable" trace="disable" xmlns="http://wso2.org/carbon/eventformatter"> - <from streamName="second_derivative_load_average_stats" version="1.0.0"/> - <mapping customMapping="enable" type="json"> - <inline>{"org.apache.stratos.messaging.event.health.stat.SecondDerivativeOfLoadAverageEvent":{"message":{"clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{second_derivative_load_average}}"}}}</inline> - </mapping> - <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms"> - <property name="transport.jms.Destination">summarized-health-stats</property> - </to> -</eventFormatter> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/eventformatters/SecondDerivativeMemoryConsumptionEventFormatter.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/eventformatters/SecondDerivativeMemoryConsumptionEventFormatter.xml b/extensions/cep/modules/artifacts/eventformatters/SecondDerivativeMemoryConsumptionEventFormatter.xml deleted file mode 100644 index bb0f70c..0000000 --- a/extensions/cep/modules/artifacts/eventformatters/SecondDerivativeMemoryConsumptionEventFormatter.xml +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - ---> - -<eventFormatter name="SecondDerivativeMemoryConsumptionEventFormatter" - statistics="disable" trace="disable" xmlns="http://wso2.org/carbon/eventformatter"> - <from streamName="second_derivative_memory_consumption_stats" version="1.0.0"/> - <mapping customMapping="enable" type="json"> - <inline>{"org.apache.stratos.messaging.event.health.stat.SecondDerivativeOfMemoryConsumptionEvent":{"message":{"clusterId":"{{cluster_id}}","clusterInstanceId":"{{cluster_instance_id}}","networkPartitionId":"{{network_partition_id}}","value":"{{second_derivative_memory_consumption}}"}}}</inline> - </mapping> - <to eventAdaptorName="JMSOutputAdaptor" eventAdaptorType="jms"> - <property name="transport.jms.Destination">summarized-health-stats</property> - </to> -</eventFormatter> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/executionplans/AverageHeathRequest.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/executionplans/AverageHeathRequest.xml b/extensions/cep/modules/artifacts/executionplans/AverageHeathRequest.xml deleted file mode 100644 index b60a0bf..0000000 --- a/extensions/cep/modules/artifacts/executionplans/AverageHeathRequest.xml +++ /dev/null @@ -1,71 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - ---> - -<executionPlan name="AverageHeathRequest" statistics="disable" - trace="enable" xmlns="http://wso2.org/carbon/eventprocessor"> - <description>This will average health stats of an instance over a minute.</description> - <siddhiConfiguration> - <property name="siddhi.enable.distributed.processing">false</property> - <property name="siddhi.persistence.snapshot.time.interval.minutes">0</property> - </siddhiConfiguration> - <importedStreams> - <stream as="health_avg_processsor" name="cartridge_agent_health_stats" version="1.0.0"/> - </importedStreams> - <queryExpressions><![CDATA[ - from health_avg_processsor [health_description == 'ports_not_open'] - select cluster_id, cluster_instance_id, network_partition_id, member_id, partition_id insert into fault_message; - from health_avg_processsor - select cluster_id, cluster_instance_id, network_partition_id, member_id, partition_id, health_description, value, - stratos:concat(cluster_id, '-' , cluster_instance_id) as health_grad_cluster_network - insert into health_avg_concatinator; - define partition health_avg_cluster_partition by health_avg_concatinator.health_grad_cluster_network; - define partition member_health_avg_cluster_partition by health_avg_processsor.member_id; - from health_avg_concatinator [health_description == 'load_average'] - #window.timeBatch(1 min) select cluster_id, cluster_instance_id, network_partition_id, avg(value) as average_load_average - insert into average_load_average_stats - partition by health_avg_cluster_partition; - from health_avg_processsor [health_description == 'load_average'] - #window.timeBatch(1 min) select member_id, cluster_id, cluster_instance_id, network_partition_id, avg(value) as member_average_load_average - insert into member_average_load_average_stats - partition by member_health_avg_cluster_partition; - from health_avg_processsor [health_description == 'memory_consumption'] - #window.timeBatch(1 min) select member_id, cluster_id, cluster_instance_id, network_partition_id, avg(value) as member_average_memory_consumption - insert into member_average_memory_consumption_stats - partition by member_health_avg_cluster_partition; - from health_avg_concatinator [health_description == 'memory_consumption'] - #window.timeBatch(1 min) select cluster_id, cluster_instance_id, network_partition_id, avg(value) as average_memory_consumption - insert into average_memory_consumption_stats - partition by health_avg_cluster_partition; - ]]></queryExpressions> - <exportedStreams> - <stream name="average_load_average_stats" passthroughFlow="disable" - valueOf="average_load_average_stats" version="1.0.0"/> - <stream name="member_average_load_average_stats" passthroughFlow="disable" - valueOf="member_average_load_average_stats" version="1.0.0"/> - <stream name="member_average_memory_consumption_stats" passthroughFlow="disable" - valueOf="member_average_memory_consumption_stats" version="1.0.0"/> - <stream name="average_memory_consumption_stats" passthroughFlow="disable" - valueOf="average_memory_consumption_stats" version="1.0.0"/> - <stream name="fault_message" passthroughFlow="disable" - valueOf="fault_message" version="1.0.0"/> - </exportedStreams> -</executionPlan> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/executionplans/AverageInFlightRequestsFinder.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/executionplans/AverageInFlightRequestsFinder.xml b/extensions/cep/modules/artifacts/executionplans/AverageInFlightRequestsFinder.xml deleted file mode 100644 index 20b94da..0000000 --- a/extensions/cep/modules/artifacts/executionplans/AverageInFlightRequestsFinder.xml +++ /dev/null @@ -1,48 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - ---> - -<executionPlan name="AverageInFlightRequestsFinder" statistics="disable" - trace="enable" xmlns="http://wso2.org/carbon/eventprocessor"> - <description>This will average the number of requests in flight over a minute.</description> - <siddhiConfiguration> - <property name="siddhi.enable.distributed.processing">false</property> - <property name="siddhi.persistence.snapshot.time.interval.minutes">0</property> - </siddhiConfiguration> - <importedStreams> - <stream as="avg_rif_stat" name="in_flight_requests" version="1.0.0"/> - </importedStreams> - <queryExpressions><![CDATA[ - from avg_rif_stat - select cluster_id, cluster_instance_id, network_partition_id, in_flight_request_count, - stratos:concat(cluster_id, '-' ,cluster_instance_id) as avg_rif_cluster_network - insert into avg_rif_concat; - define partition avg_rif_cluster_partition by avg_rif_concat.avg_rif_cluster_network; - from avg_rif_concat#window.timeBatch(1 min) - select cluster_id, cluster_instance_id, network_partition_id, avg(in_flight_request_count) as count - insert into average_in_flight_requests - partition by avg_rif_cluster_partition; - ]]></queryExpressions> - <exportedStreams> - <stream name="average_in_flight_requests" - valueOf="average_in_flight_requests" version="1.0.0"/> - </exportedStreams> -</executionPlan> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/executionplans/GradientOfHealthRequest.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/executionplans/GradientOfHealthRequest.xml b/extensions/cep/modules/artifacts/executionplans/GradientOfHealthRequest.xml deleted file mode 100644 index fcbc24e..0000000 --- a/extensions/cep/modules/artifacts/executionplans/GradientOfHealthRequest.xml +++ /dev/null @@ -1,71 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - ---> - -<executionPlan name="GradientOfHealthRequest" statistics="disable" - trace="disable" xmlns="http://wso2.org/carbon/eventprocessor"> - <description>This will find the gradient of the heath request over a minute.</description> - <siddhiConfiguration> - <property name="siddhi.enable.distributed.processing">false</property> - <property name="siddhi.persistence.snapshot.time.interval.minutes">0</property> - </siddhiConfiguration> - <importedStreams> - <stream as="health_grad_processsor" name="cartridge_agent_health_stats" version="1.0.0"/> - </importedStreams> - <queryExpressions><![CDATA[ - from health_grad_processsor - #window.stratos:faultHandling(1min, member_id) select cluster_id, cluster_instance_id, network_partition_id, member_id, partition_id - group by cluster_id, network_partition_id - insert into fault_message; - from health_grad_processsor - select cluster_id, cluster_instance_id, network_partition_id, member_id, partition_id, health_description, value, - stratos:concat(cluster_id, '-' , cluster_instance_id) as health_grad_cluster_network - insert into health_grad_concatinator; - define partition health_grad_cluster_partition by health_grad_concatinator.health_grad_cluster_network; - define partition member_health_grad_cluster_partition by health_grad_processsor.member_id; - from health_grad_concatinator [health_description == 'load_average'] - #window.stratos:gradient(1 min, value) select cluster_id, cluster_instance_id, network_partition_id, value as gradient_load_average - insert into gradient_load_average_stats - partition by health_grad_cluster_partition; - from health_grad_processsor [health_description == 'load_average'] - #window.stratos:gradient(1 min, value) select member_id, cluster_id, cluster_instance_id, network_partition_id, value as member_gradient_load_average - insert into member_gradient_load_average_stats - partition by member_health_grad_cluster_partition; - from health_grad_processsor [health_description == 'memory_consumption'] - #window.stratos:gradient(1 min, value) select member_id, cluster_id, cluster_instance_id, network_partition_id, value as member_gradient_memory_consumption - insert into member_gradient_memory_consumption_stats partition by member_health_grad_cluster_partition; - from health_grad_concatinator [health_description == 'memory_consumption'] - #window.stratos:gradient(1 min, value) select cluster_id, cluster_instance_id, network_partition_id, value as gradient_memory_consumption - insert into gradient_memory_consumption_stats - partition by health_grad_cluster_partition;]]></queryExpressions> - <exportedStreams> - <stream name="gradient_load_average_stats" - valueOf="gradient_load_average_stats" version="1.0.0"/> - <stream name="gradient_memory_consumption_stats" - valueOf="gradient_memory_consumption_stats" version="1.0.0"/> - <stream name="member_gradient_load_average_stats" - valueOf="member_gradient_load_average_stats" version="1.0.0"/> - <stream name="member_gradient_memory_consumption_stats" - valueOf="member_gradient_memory_consumption_stats" version="1.0.0"/> - <stream name="fault_message" passthroughFlow="disable" - valueOf="fault_message" version="1.0.0"/> - </exportedStreams> -</executionPlan> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/executionplans/GradientOfRequestsInFlightFinder.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/executionplans/GradientOfRequestsInFlightFinder.xml b/extensions/cep/modules/artifacts/executionplans/GradientOfRequestsInFlightFinder.xml deleted file mode 100644 index fff4a8a..0000000 --- a/extensions/cep/modules/artifacts/executionplans/GradientOfRequestsInFlightFinder.xml +++ /dev/null @@ -1,48 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - ---> - -<executionPlan name="GradientOfRequestsInFlightFinder" - statistics="disable" trace="enable" xmlns="http://wso2.org/carbon/eventprocessor"> - <description>This will find the gradient of the number of requests in flight over a minute.</description> - <siddhiConfiguration> - <property name="siddhi.enable.distributed.processing">false</property> - <property name="siddhi.persistence.snapshot.time.interval.minutes">0</property> - </siddhiConfiguration> - <importedStreams> - <stream as="gradient_rif_processor" name="in_flight_requests" version="1.0.0"/> - </importedStreams> - <queryExpressions><![CDATA[ - from gradient_rif_processor - select cluster_id, cluster_instance_id, network_partition_id, in_flight_request_count, - stratos:concat(cluster_id, '-' , network_partition_id) as request_grad_cluster_network - insert into gradient_rif_concatinator; - define partition request_grad_cluster_partition by gradient_rif_concatinator.request_grad_cluster_network; - from gradient_rif_concatinator - #window.stratos:gradient(1 min, in_flight_request_count) - select cluster_id, cluster_instance_id, network_partition_id,in_flight_request_count as count - insert into gradient_in_flight_requests - partition by request_grad_cluster_partition; -]]></queryExpressions> - <exportedStreams> - <stream name="gradient_in_flight_requests" valueOf="gradient_in_flight_requests" version="1.0.0"/> - </exportedStreams> -</executionPlan> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/executionplans/SecondDerivativeOfHealthRequest.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/executionplans/SecondDerivativeOfHealthRequest.xml b/extensions/cep/modules/artifacts/executionplans/SecondDerivativeOfHealthRequest.xml deleted file mode 100644 index 0fa4a0a..0000000 --- a/extensions/cep/modules/artifacts/executionplans/SecondDerivativeOfHealthRequest.xml +++ /dev/null @@ -1,68 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - ---> - -<executionPlan name="SecondDerivativeOfHealthRequest" - statistics="disable" trace="disable" xmlns="http://wso2.org/carbon/eventprocessor"> - <description>This will find the second derivative of health stats over a minute.</description> - <siddhiConfiguration> - <property name="siddhi.enable.distributed.processing">false</property> - <property name="siddhi.persistence.snapshot.time.interval.minutes">0</property> - </siddhiConfiguration> - <importedStreams> - <stream as="health_second_der_request" name="cartridge_agent_health_stats" version="1.0.0"/> - </importedStreams> - <queryExpressions><![CDATA[ - from health_second_der_request - select member_id, cluster_id, cluster_instance_id, network_partition_id, health_description, value, - stratos:concat(cluster_id, '-' ,cluster_instance_id) as health_second_der_cluster_network - insert into health_second_der_concat; - define partition health_second_der_cluster_partition by health_second_der_concat.health_second_der_cluster_network; - from health_second_der_concat [health_description == 'memory_consumption'] - #window.stratos:secondDerivative(1 min, value) select cluster_id, cluster_instance_id, network_partition_id, value as second_derivative_memory_consumption - insert into second_derivative_memory_consumption_stats - partition by health_second_der_cluster_partition; - from health_second_der_concat [health_description == 'load_average'] - #window.stratos:secondDerivative(1 min, value) select cluster_id, cluster_instance_id, network_partition_id, value as second_derivative_load_average - insert into second_derivative_load_average_stats - partition by health_second_der_cluster_partition; - define partition health_second_der_member_partition by health_second_der_request.member_id; - from health_second_der_request [health_description == 'memory_consumption'] - #window.stratos:secondDerivative(1 min, value) - select member_id, cluster_id, cluster_instance_id, network_partition_id, value as member_second_derivative_memory_consumption - insert into member_second_derivative_memory_consumption_stats - partition by health_second_der_member_partition; - from health_second_der_request [health_description == 'load_average'] - #window.stratos:secondDerivative(1 min, value) - select member_id, cluster_id, cluster_instance_id, network_partition_id, value as member_second_derivative_load_average - insert into member_second_derivative_load_average_stats - partition by health_second_der_member_partition;]]></queryExpressions> - <exportedStreams> - <stream name="second_derivative_memory_consumption_stats" - valueOf="second_derivative_memory_consumption_stats" version="1.0.0"/> - <stream name="second_derivative_load_average_stats" - valueOf="second_derivative_load_average_stats" version="1.0.0"/> - <stream name="member_second_derivative_memory_consumption_stats" - valueOf="member_second_derivative_memory_consumption_stats" version="1.0.0"/> - <stream name="member_second_derivative_load_average_stats" - valueOf="member_second_derivative_load_average_stats" version="1.0.0"/> - </exportedStreams> -</executionPlan> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/executionplans/SecondDerivativeOfRequestsInFlightFinder.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/executionplans/SecondDerivativeOfRequestsInFlightFinder.xml b/extensions/cep/modules/artifacts/executionplans/SecondDerivativeOfRequestsInFlightFinder.xml deleted file mode 100644 index c8e4ed5..0000000 --- a/extensions/cep/modules/artifacts/executionplans/SecondDerivativeOfRequestsInFlightFinder.xml +++ /dev/null @@ -1,48 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - ---> - -<executionPlan name="SecondDerivativeOfRequestsInFlightFinder" - statistics="disable" trace="enable" xmlns="http://wso2.org/carbon/eventprocessor"> - <description>This will find the second derivative of the number of requests in flight over a minute.</description> - <siddhiConfiguration> - <property name="siddhi.enable.distributed.processing">false</property> - <property name="siddhi.persistence.snapshot.time.interval.minutes">0</property> - </siddhiConfiguration> - <importedStreams> - <stream as="second_der_rif" name="in_flight_requests" version="1.0.0"/> - </importedStreams> - <queryExpressions><![CDATA[ - from second_der_rif - select cluster_id, cluster_instance_id, network_partition_id, in_flight_request_count, - stratos:concat(cluster_id, '-' ,network_partition_id) as rif_second_der_cluster_network - insert into rif_second_der_concat; - define partition rif_second_der_cluster_partition by rif_second_der_concat.rif_second_der_cluster_network; - from rif_second_der_concat#window.stratos:secondDerivative(1 min, in_flight_request_count) - select cluster_id, cluster_instance_id, network_partition_id,in_flight_request_count as count - insert into second_derivative_in_flight_requests - partition by rif_second_der_cluster_partition; - ]]></queryExpressions> - <exportedStreams> - <stream name="second_derivative_in_flight_requests" - valueOf="second_derivative_in_flight_requests" version="1.0.0"/> - </exportedStreams> -</executionPlan> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/inputeventadaptors/DefaultWSO2EventInputAdaptor.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/inputeventadaptors/DefaultWSO2EventInputAdaptor.xml b/extensions/cep/modules/artifacts/inputeventadaptors/DefaultWSO2EventInputAdaptor.xml deleted file mode 100644 index 77af463..0000000 --- a/extensions/cep/modules/artifacts/inputeventadaptors/DefaultWSO2EventInputAdaptor.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - ---> - -<inputEventAdaptor name="DefaultWSO2EventInputAdaptor" - statistics="disable" trace="enable" type="wso2event" xmlns="http://wso2.org/carbon/eventadaptormanager"/> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/outputeventadaptors/DefaultWSO2EventOutputAdaptor.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/outputeventadaptors/DefaultWSO2EventOutputAdaptor.xml b/extensions/cep/modules/artifacts/outputeventadaptors/DefaultWSO2EventOutputAdaptor.xml deleted file mode 100644 index 4438d2c..0000000 --- a/extensions/cep/modules/artifacts/outputeventadaptors/DefaultWSO2EventOutputAdaptor.xml +++ /dev/null @@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - ---> - -<outputEventAdaptor name="DefaultWSO2EventOutputAdaptor" - statistics="disable" trace="disable" type="wso2event" xmlns="http://wso2.org/carbon/eventadaptormanager"> - <property name="username">admin</property> - <property name="receiverURL">tcp://localhost:7661</property> - <property name="password">admin</property> - <property name="authenticatorURL">ssl://localhost:7761</property> -</outputEventAdaptor> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/outputeventadaptors/JMSOutputAdaptor.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/outputeventadaptors/JMSOutputAdaptor.xml b/extensions/cep/modules/artifacts/outputeventadaptors/JMSOutputAdaptor.xml deleted file mode 100644 index 59c3653..0000000 --- a/extensions/cep/modules/artifacts/outputeventadaptors/JMSOutputAdaptor.xml +++ /dev/null @@ -1,30 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - ---> - -<outputEventAdaptor name="JMSOutputAdaptor" statistics="disable" - trace="enable" type="jms" xmlns="http://wso2.org/carbon/eventadaptormanager"> - <!--property name="java.naming.provider.url">CEP_HOME/repository/conf/jndi.properties</property--> - <property name="java.naming.provider.url">tcp://localhost:61616</property> - <property name="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory</property> - <property name="transport.jms.ConnectionFactoryJNDIName">TopicConnectionFactory</property> - <property name="transport.jms.DestinationType">topic</property> -</outputEventAdaptor> http://git-wip-us.apache.org/repos/asf/stratos/blob/8ad1f6e7/extensions/cep/modules/artifacts/streamdefinitions/stream-manager-config.xml ---------------------------------------------------------------------- diff --git a/extensions/cep/modules/artifacts/streamdefinitions/stream-manager-config.xml b/extensions/cep/modules/artifacts/streamdefinitions/stream-manager-config.xml deleted file mode 100644 index 4c4c7e0..0000000 --- a/extensions/cep/modules/artifacts/streamdefinitions/stream-manager-config.xml +++ /dev/null @@ -1,309 +0,0 @@ -<?xml version='1.0'?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - ---> - -<streamManagerConfiguration xmlns="http://wso2.org/carbon/streammanager"> - <!-- in-flight requests stream definitions start --> - <streamDefinition name="in_flight_requests" version="1.0.0"> - <description>in-flight request count</description> - <nickName>in-flight requests</nickName> - <metaData> - </metaData> - <correlationData> - </correlationData> - <payloadData> - <property name="cluster_id" type="String"/> - <property name="cluster_instance_id" type="String"/> - <property name="network_partition_id" type="String"/> - <property name="in_flight_request_count" type="double"/> - </payloadData> - </streamDefinition> - - <streamDefinition name="gradient_in_flight_requests" version="1.0.0"> - <description>gradient of in flight request count</description> - <nickName>gradient in flight requests</nickName> - <metaData> - </metaData> - <correlationData> - </correlationData> - <payloadData> - <property name="cluster_id" type="String"/> - <property name="cluster_instance_id" type="String"/> - <property name="network_partition_id" type="String"/> - <property name="count" type="double"/> - </payloadData> - </streamDefinition> - - <streamDefinition name="average_in_flight_requests" version="1.0.0"> - <description>average of in-flight request count</description> - <nickName>average in-flight requests</nickName> - <metaData> - </metaData> - <correlationData> - </correlationData> - <payloadData> - <property name="cluster_id" type="String"/> - <property name="cluster_instance_id" type="String"/> - <property name="network_partition_id" type="String"/> - <property name="count" type="double"/> - </payloadData> - </streamDefinition> - - <streamDefinition name="second_derivative_in_flight_requests" version="1.0.0"> - <description>second derivative of in-flight request count</description> - <nickName>second derivative in-flight requests</nickName> - <metaData> - </metaData> - <correlationData> - </correlationData> - <payloadData> - <property name="cluster_id" type="String"/> - <property name="cluster_instance_id" type="String"/> - <property name="network_partition_id" type="String"/> - <property name="count" type="double"/> - </payloadData> - </streamDefinition> - <!-- in-flight requests stream definitions end --> - - <!-- cartridge agent health stats stream definitions start --> - <streamDefinition name="cartridge_agent_health_stats" version="1.0.0"> - <description>agent health stats</description> - <nickName>agent health stats</nickName> - <metaData> - </metaData> - <correlationData> - </correlationData> - <payloadData> - <property name="cluster_id" type="String" /> - <property name="cluster_instance_id" type="String"/> - <property name="network_partition_id" type="String"/> - <property name="member_id" type="String" /> - <property name="partition_id" type="String" /> - <property name="health_description" type="String"/> - <property name="value" type="double"/> - </payloadData> - </streamDefinition> - - <streamDefinition name="average_load_average_stats" version="1.0.0"> - <description>average load average stats</description> - <nickName>average load average stats</nickName> - <metaData> - </metaData> - <correlationData> - </correlationData> - <payloadData> - <property name="cluster_id" type="String" /> - <property name="cluster_instance_id" type="String"/> - <property name="network_partition_id" type="String"/> - <property name="average_load_average" type="double"/> - </payloadData> - </streamDefinition> - - <streamDefinition name="average_memory_consumption_stats" version="1.0.0"> - <description>average memory consumption stats</description> - <nickName>average memory consumption stats</nickName> - <metaData> - </metaData> - <correlationData> - </correlationData> - <payloadData> - <property name="cluster_id" type="String"/> - <property name="cluster_instance_id" type="String"/> - <property name="network_partition_id" type="String"/> - <property name="average_memory_consumption" type="double"/> - </payloadData> - </streamDefinition> - - <streamDefinition name="gradient_load_average_stats" version="1.0.0"> - <description>gradient load average stats</description> - <nickName>gradient load average stats</nickName> - <metaData> - </metaData> - <correlationData> - </correlationData> - <payloadData> - <property name="cluster_id" type="String" /> - <property name="cluster_instance_id" type="String"/> - <property name="network_partition_id" type="String"/> - <property name="gradient_load_average" type="double"/> - </payloadData> - </streamDefinition> - - <streamDefinition name="gradient_memory_consumption_stats" version="1.0.0"> - <description>gradient memoryconsumption stats</description> - <nickName>gradient memoryconsumption stats</nickName> - <metaData> - </metaData> - <correlationData> - </correlationData> - <payloadData> - <property name="cluster_id" type="String" /> - <property name="cluster_instance_id" type="String"/> - <property name="network_partition_id" type="String"/> - <property name="gradient_memory_consumption" type="double"/> - </payloadData> - </streamDefinition> - - <streamDefinition name="second_derivative_memory_consumption_stats" version="1.0.0"> - <description>second derivative memory consumption stats</description> - <nickName>second derivative memory consumption stats</nickName> - <metaData> - </metaData> - <correlationData> - </correlationData> - <payloadData> - <property name="cluster_id" type="String" /> - <property name="cluster_instance_id" type="String"/> - <property name="network_partition_id" type="String"/> - <property name="second_derivative_memory_consumption" type="double"/> - </payloadData> - </streamDefinition> - - <streamDefinition name="second_derivative_load_average_stats" version="1.0.0"> - <description>second derivative load average stats</description> - <nickName>second derivative load average stats</nickName> - <metaData> - </metaData> - <correlationData> - </correlationData> - <payloadData> - <property name="cluster_id" type="String" /> - <property name="cluster_instance_id" type="String"/> - <property name="network_partition_id" type="String"/> - <property name="second_derivative_load_average" type="double"/> - </payloadData> - </streamDefinition> - - <streamDefinition name="fault_message" version="1.0.0"> - <description>fault message</description> - <nickName>fault message</nickName> - <metaData> - </metaData> - <correlationData> - </correlationData> - <payloadData> - <property name="cluster_id" type="String"/> - <property name="cluster_instance_id" type="String"/> - <property name="network_partition_id" type="String"/> - <property name="member_id" type="String"/> - <property name="partition_id" type="String"/> - </payloadData> - </streamDefinition> - <!-- cartridge agent health stats stream definitions end --> - - <!-- This is for member_id wise grouping--> - <streamDefinition name="member_average_load_average_stats" version="1.0.0"> - <description>average load average stats</description> - <nickName>average load average stats</nickName> - <metaData> - </metaData> - <correlationData> - </correlationData> - <payloadData> - <property name="member_id" type="String" /> - <property name="cluster_id" type="String" /> - <property name="cluster_instance_id" type="String"/> - <property name="network_partition_id" type="String"/> - <property name="member_average_load_average" type="double"/> - </payloadData> - </streamDefinition> - - <streamDefinition name="member_average_memory_consumption_stats" version="1.0.0"> - <description>average memory consumption stats</description> - <nickName>average memory consumption stats</nickName> - <metaData> - </metaData> - <correlationData> - </correlationData> - <payloadData> - <property name="member_id" type="String"/> - <property name="cluster_id" type="String"/> - <property name="cluster_instance_id" type="String"/> - <property name="network_partition_id" type="String"/> - <property name="member_average_memory_consumption" type="double"/> - </payloadData> - </streamDefinition> - - <streamDefinition name="member_gradient_load_average_stats" version="1.0.0"> - <description>gradient load average stats</description> - <nickName>gradient load average stats</nickName> - <metaData> - </metaData> - <correlationData> - </correlationData> - <payloadData> - <property name="member_id" type="String" /> - <property name="cluster_id" type="String" /> - <property name="cluster_instance_id" type="String"/> - <property name="network_partition_id" type="String"/> - <property name="member_gradient_load_average" type="double"/> - </payloadData> - </streamDefinition> - - <streamDefinition name="member_gradient_memory_consumption_stats" version="1.0.0"> - <description>gradient memoryconsumption stats</description> - <nickName>gradient memoryconsumption stats</nickName> - <metaData> - </metaData> - <correlationData> - </correlationData> - <payloadData> - <property name="member_id" type="String" /> - <property name="cluster_id" type="String" /> - <property name="cluster_instance_id" type="String"/> - <property name="network_partition_id" type="String"/> - <property name="member_gradient_memory_consumption" type="double"/> - </payloadData> - </streamDefinition> - - <streamDefinition name="member_second_derivative_memory_consumption_stats" version="1.0.0"> - <description>second derivative memory consumption stats</description> - <nickName>second derivative memory consumption stats</nickName> - <metaData> - </metaData> - <correlationData> - </correlationData> - <payloadData> - <property name="member_id" type="String" /> - <property name="cluster_id" type="String" /> - <property name="cluster_instance_id" type="String"/> - <property name="network_partition_id" type="String"/> - <property name="member_second_derivative_memory_consumption" type="double"/> - </payloadData> - </streamDefinition> - - <streamDefinition name="member_second_derivative_load_average_stats" version="1.0.0"> - <description>second derivative load average stats</description> - <nickName>second derivative load average stats</nickName> - <metaData> - </metaData> - <correlationData> - </correlationData> - <payloadData> - <property name="member_id" type="String" /> - <property name="cluster_id" type="String" /> - <property name="cluster_instance_id" type="String"/> - <property name="network_partition_id" type="String"/> - <property name="member_second_derivative_load_average" type="double"/> - </payloadData> - </streamDefinition> - -</streamManagerConfiguration>
