diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 6a0a802587..758c83bba3 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -6,6 +6,10 @@ on:
branches:
- "graylog-repackaging"
+concurrency:
+ group: "${{ github.workflow }}-${{ github.ref }}"
+ cancel-in-progress: true
+
jobs:
build:
name: "Build"
@@ -14,10 +18,10 @@ jobs:
strategy:
matrix:
java-version:
- - "8"
+ - "17"
steps:
- - uses: "actions/checkout@v3"
+ - uses: "actions/checkout@v4"
- name: "Set up JDK ${{ matrix.version }}"
uses: "actions/setup-java@v3"
@@ -28,5 +32,8 @@ jobs:
- name: "Build"
shell: "bash"
+ env:
+ MAVEN_ARGS: "--show-version --batch-mode --fail-fast --no-transfer-progress"
+ MAVEN_OPTS: "-Dstyle.color=always -DtrimStackTrace=false"
run: |
- mvn --show-version --batch-mode --fail-fast clean package
+ mvn clean package
diff --git a/modules/siddhi-core/pom.xml b/modules/siddhi-core/pom.xml
index 9bb88bf427..525b865e6d 100644
--- a/modules/siddhi-core/pom.xml
+++ b/modules/siddhi-core/pom.xml
@@ -47,10 +47,6 @@
org.apache.log4j.wso2log4j
-
- org.slf4j
- slf4j-simple
- org.wso2.orbit.com.lmaxdisruptor
@@ -60,6 +56,11 @@
testngtest
+
+ junit
+ junit
+ test
+ com.google.guavaguava
@@ -69,12 +70,12 @@
metrics-core
- com.google.code.gson
- gson
+ io.dropwizard.metrics
+ metrics-jmx
- com.jayway.jsonpath
- json-path
+ com.google.code.gson
+ gsonorg.eclipse.osgi
@@ -84,6 +85,10 @@
org.osgiorg.osgi.core
+
+ org.atteo.classindex
+ classindex
+
@@ -132,4 +137,4 @@
../../findbugs-exclude.xml
-
\ No newline at end of file
+
diff --git a/modules/siddhi-core/src/main/java/org/wso2/siddhi/core/util/statistics/memory/ObjectSizeCalculator.java b/modules/siddhi-core/src/main/java/org/wso2/siddhi/core/util/statistics/memory/ObjectSizeCalculator.java
deleted file mode 100644
index 8b909fca9f..0000000000
--- a/modules/siddhi-core/src/main/java/org/wso2/siddhi/core/util/statistics/memory/ObjectSizeCalculator.java
+++ /dev/null
@@ -1,447 +0,0 @@
-/*
- * Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
- *
- * WSO2 Inc. 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.
- */
-
-package org.wso2.siddhi.core.util.statistics.memory;
-
-import com.google.common.annotations.VisibleForTesting;
-import com.google.common.base.Preconditions;
-import com.google.common.cache.CacheBuilder;
-import com.google.common.cache.CacheLoader;
-import com.google.common.cache.LoadingCache;
-import com.google.common.collect.Sets;
-import org.apache.log4j.Logger;
-import org.wso2.siddhi.core.config.SiddhiAppContext;
-import org.wso2.siddhi.core.query.output.callback.OutputCallback;
-import org.wso2.siddhi.core.stream.StreamJunction;
-import org.wso2.siddhi.core.stream.output.StreamCallback;
-import org.wso2.siddhi.core.table.record.AbstractRecordTable;
-import org.wso2.siddhi.core.util.statistics.BufferedEventsTracker;
-import org.wso2.siddhi.core.util.statistics.LatencyTracker;
-import org.wso2.siddhi.core.util.statistics.MemoryCalculable;
-import org.wso2.siddhi.core.util.statistics.MemoryUsageTracker;
-import org.wso2.siddhi.core.util.statistics.StatisticsManager;
-import org.wso2.siddhi.core.util.statistics.ThroughputTracker;
-
-import java.lang.management.ManagementFactory;
-import java.lang.management.MemoryPoolMXBean;
-import java.lang.reflect.Array;
-import java.lang.reflect.Field;
-import java.lang.reflect.Modifier;
-import java.util.ArrayDeque;
-import java.util.Arrays;
-import java.util.Deque;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Set;
-
-/**
- * Contains utility methods for calculating the memory usage of objects. It
- * only works on the HotSpot JVM, and infers the actual memory layout (32 bit
- * vs. 64 bit word size, compressed object pointers vs. uncompressed) from
- * best available indicators. It can reliably detect a 32 bit vs. 64 bit JVM.
- * It can only make an educated guess at whether compressed OOPs are used,
- * though; specifically, it knows what the JVM's default choice of OOP
- * compression would be based on HotSpot version and maximum heap sizes, but if
- * the choice is explicitly overridden with the -XX:{+|-}UseCompressedOops
- * command line switch, it can not detect this fact and will report incorrect sizes,
- * as it will presume the default JVM behavior.
- *
- * @author Attila Szegedi
- */
-public class ObjectSizeCalculator {
- private static final Logger log = Logger.getLogger(ObjectSizeCalculator.class);
-
- // Fixed object header size for arrays.
- private final int arrayHeaderSize;
- // Fixed object header size for non-array objects.
- private final int objectHeaderSize;
- // Padding for the object size - if the object size is not an exact multiple of this,
- // it's padded to the next multiple.
- private final int objectPadding;
- // Size of reference (pointer) fields.
- private final int referenceSize;
- // Padding for the fields of superclass before fields of subclasses are added.
- private final int superclassFieldPadding;
- private final LoadingCache, ClassSizeInfo> classSizeInfos =
- CacheBuilder.newBuilder().build(new CacheLoader, ClassSizeInfo>() {
- public ClassSizeInfo load(Class> clazz) {
- return new ClassSizeInfo(clazz);
- }
- });
- private final Set ignoreCalculation = Sets.newIdentityHashSet();
- private final Set
- 6.8
+ UTF-8
+ UTF-8
+
+ 7.8.0
+ 4.13.21.2.17.wso2v1[1.2.17, 1.3.0)
- 1.7.12
- 2.2.1.Final
- 4.5.1
- 3.3.2.wso2v2
- 19.0
- 2.8.0
- 3.4
+ 4.13.1
+ 3.4.2.wso2v1
+ 32.1.3-jre
+ 2.10.1
+ 3.136.0.0
- 3.3.100.v20120522-1822
+ 3.3.100.v20130513-1956[1.2.0, 1.3.0)
[3.5, 3.6.0)
- 3.1.0
- 2.2.0
- 2.1.1
- 2.4.1
+ 4.2.22
+ 2.8.11
+ 3.4.12.5
- 2.9.6
- 3.3.9
- 3.0
- 3.4
- 2.3.25-incubating
+ 2.15.3
+ 3.9.5
+ 3.9.5
+ 3.10.2
+ 2.3.321.3.2
- 1.21
- 0.7.9
+ 0.8.113.0.4findbugs-exclude.xmlcheckstyle-suppressions.xml