diff options
author | VENKATESH KUMAR <vv770d@att.com> | 2017-12-07 15:30:01 +0000 |
---|---|---|
committer | VENKATESH KUMAR <vv770d@att.com> | 2017-12-07 10:53:26 -0500 |
commit | 9346cb2915128831b4f58854362775f33cbd7415 (patch) | |
tree | 56c1d1e56a19fa549cdcc54d16d343c75aa13811 /src/main/java/org/onap/dcae/commonFunction/CommonStartup.java | |
parent | c4098a3af4794da9a1516760baa2318fb91ae258 (diff) |
code sync-up updates
Issue-ID: DCAEGEN2-212
Change-Id: Id72d2b1851ff4457295088609c355e19d19e3d73
Signed-off-by: VENKATESH KUMAR <vv770d@att.com>
Diffstat (limited to 'src/main/java/org/onap/dcae/commonFunction/CommonStartup.java')
-rw-r--r-- | src/main/java/org/onap/dcae/commonFunction/CommonStartup.java | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/main/java/org/onap/dcae/commonFunction/CommonStartup.java b/src/main/java/org/onap/dcae/commonFunction/CommonStartup.java index fe3ba325..55a83f7d 100644 --- a/src/main/java/org/onap/dcae/commonFunction/CommonStartup.java +++ b/src/main/java/org/onap/dcae/commonFunction/CommonStartup.java @@ -63,7 +63,6 @@ import java.util.concurrent.Executors; import java.util.concurrent.LinkedBlockingQueue; import javax.servlet.ServletException; - public class CommonStartup extends NsaBaseEndpoint implements Runnable { public static final String KCONFIG = "c"; @@ -194,14 +193,15 @@ public class CommonStartup extends NsaBaseEndpoint implements Runnable { executor = Executors.newFixedThreadPool(20); executor.execute(ep); - } catch (loadException | missingReqdSetting | IOException | invalidSettingValue | ServletException | InterruptedException e) { + } catch (loadException | missingReqdSetting | IOException | invalidSettingValue | ServletException + | InterruptedException e) { CommonStartup.eplog.error("FATAL_STARTUP_ERROR" + e.getMessage()); throw new RuntimeException(e); } catch (Throwable e) { - System.err.println("Uncaught exception - " + e.getMessage()); - CommonStartup.eplog.error("FATAL_ERROR" + e.getMessage() ); - e.printStackTrace(System.err); - } finally { + System.err.println("Uncaught exception - " + e.getMessage()); + CommonStartup.eplog.error("FATAL_ERROR" + e.getMessage()); + e.printStackTrace(System.err); + } finally { // This will make the executor accept no new threads // and finish all existing threads in the queue if (executor != null) { @@ -310,4 +310,3 @@ public class CommonStartup extends NsaBaseEndpoint implements Runnable { private static final Logger log = LoggerFactory.getLogger(CommonStartup.class); } - |