From 9ebb5ddcb60345dea668049c73f5f2d9c3cdf731 Mon Sep 17 00:00:00 2001 From: Anand Date: Thu, 4 Jan 2018 12:44:05 -0500 Subject: Code changes for platform hardening appc-oam Issue-ID: APPC-371 Change-Id: I124ad01cd945beb7a9b63a90760b33ca25246bc7 Signed-off-by: Anand --- appc-oam/appc-oam-bundle/pom.xml | 24 ++++++++++++++++++++++ .../java/org/onap/appc/oam/util/BundleFilter.java | 8 ++++---- 2 files changed, 28 insertions(+), 4 deletions(-) (limited to 'appc-oam/appc-oam-bundle') diff --git a/appc-oam/appc-oam-bundle/pom.xml b/appc-oam/appc-oam-bundle/pom.xml index 51deba758..c24aa4341 100644 --- a/appc-oam/appc-oam-bundle/pom.xml +++ b/appc-oam/appc-oam-bundle/pom.xml @@ -1,4 +1,27 @@ + 1.3.0-SNAPSHOT appc-oam-bundle + APPC OAM - Bundle bundle diff --git a/appc-oam/appc-oam-bundle/src/main/java/org/onap/appc/oam/util/BundleFilter.java b/appc-oam/appc-oam-bundle/src/main/java/org/onap/appc/oam/util/BundleFilter.java index 6dd98f165..c4dcb4fa7 100644 --- a/appc-oam/appc-oam-bundle/src/main/java/org/onap/appc/oam/util/BundleFilter.java +++ b/appc-oam/appc-oam-bundle/src/main/java/org/onap/appc/oam/util/BundleFilter.java @@ -45,7 +45,7 @@ import java.util.regex.Pattern; * the bundleToStopSet * */ -class BundleFilter { +public class BundleFilter { private final Map bundleToStopSet; private final Map bundleToNotStopSet; @@ -57,7 +57,7 @@ class BundleFilter { * @param exceptRegexes - An array of regular expression used to override which bundles are candidates for stopping * @param bundles - An array of the bundle to be split into {@link #getBundlesToStop()} {@link #getBundlesToNotStop()} */ - BundleFilter(String[] stopRegexes, String[] exceptRegexes, Bundle[] bundles) { + public BundleFilter(String[] stopRegexes, String[] exceptRegexes, Bundle[] bundles) { Pattern[] stopPatterns = toPattern(stopRegexes); Pattern[] exceptPatterns = toPattern(exceptRegexes); @@ -114,7 +114,7 @@ class BundleFilter { /**@return Map of bundles that are to be stopped */ - Map getBundlesToStop(){ + public Map getBundlesToStop(){ return bundleToStopSet; } @@ -122,7 +122,7 @@ class BundleFilter { * * @return Map of bundles that are not to be stopped */ - Map getBundlesToNotStop() { + public Map getBundlesToNotStop() { return bundleToNotStopSet; } } -- cgit 1.2.3-korg