Add ServiceManager class 62/81962/3
authorJim Hahn <jrh3@att.com>
Mon, 11 Mar 2019 15:37:53 +0000 (11:37 -0400)
committerJim Hahn <jrh3@att.com>
Mon, 11 Mar 2019 17:32:10 +0000 (13:32 -0400)
commit1162f4b61e6893c0f44d1f9d5d8abc81a94bed48
tree60d76a5661c2c6e908b30dfae1439df3306b2b04
parent887f698db8511138c7aa3815809f1a96225116fe
Add ServiceManager class

Added ServiceManager class to start a list of services, in order,
and stop them in reverse order.
Also addressed minor checkstyle issue in TopicSinkClient.

Enabled logging from tests.
Updated some comments.

Updated license date.
Added state checks and support for multi-threading.

Change-Id: Ie7f053d9884766fe199895691a57eb5a51b1d155
Issue-ID: POLICY-1542
Signed-off-by: Jim Hahn <jrh3@att.com>
policy-endpoints/src/main/java/org/onap/policy/common/endpoints/event/comm/client/TopicSinkClient.java
utils/pom.xml
utils/src/main/java/org/onap/policy/common/utils/services/ServiceManager.java [new file with mode: 0644]
utils/src/main/java/org/onap/policy/common/utils/services/ServiceManagerException.java [new file with mode: 0644]
utils/src/test/java/org/onap/policy/common/utils/resources/ResourceUtilsTest.java
utils/src/test/java/org/onap/policy/common/utils/services/ServiceManagerExceptionTest.java [new file with mode: 0644]
utils/src/test/java/org/onap/policy/common/utils/services/ServiceManagerTest.java [new file with mode: 0644]
utils/src/test/resources/logback-test.xml [new file with mode: 0644]