Change in asterixdb[stabilization-f69489]: [NO ISSUE][OTH] Make ClusterControllerService Extensible
Murtadha Hubail has submitted this change and it was merged. ( https://asterix-gerrit.ics.uci.edu/3416 ) Change subject: [NO ISSUE][OTH] Make ClusterControllerService Extensible .. [NO ISSUE][OTH] Make ClusterControllerService Extensible - user model changes: no - storage format changes: no - interface changes: no Details: - Allow configuring the web servers started on hyracks ClusterControllerService. Change-Id: Icd2a048a6152105c831183db2440e9dc5b3a1eb5 Reviewed-on: https://asterix-gerrit.ics.uci.edu/3416 Tested-by: Jenkins Integration-Tests: Jenkins Reviewed-by: Michael Blow Contrib: Michael Blow --- M hyracks-fullstack/hyracks/hyracks-control/hyracks-control-cc/src/main/java/org/apache/hyracks/control/cc/ClusterControllerService.java 1 file changed, 11 insertions(+), 4 deletions(-) Approvals: Jenkins: Verified; Verified Michael Blow: Looks good to me, approved; Objections: Jenkins: Violations found diff --git a/hyracks-fullstack/hyracks/hyracks-control/hyracks-control-cc/src/main/java/org/apache/hyracks/control/cc/ClusterControllerService.java b/hyracks-fullstack/hyracks/hyracks-control/hyracks-control-cc/src/main/java/org/apache/hyracks/control/cc/ClusterControllerService.java index b5dacfb..91397a8 100644 --- a/hyracks-fullstack/hyracks/hyracks-control/hyracks-control-cc/src/main/java/org/apache/hyracks/control/cc/ClusterControllerService.java +++ b/hyracks-fullstack/hyracks/hyracks-control/hyracks-control-cc/src/main/java/org/apache/hyracks/control/cc/ClusterControllerService.java @@ -211,10 +211,9 @@ clientIPC = new IPCSystem(new InetSocketAddress(ccConfig.getClientListenAddress(), ccConfig.getClientListenPort()), ciIPCI, new JavaSerializationBasedPayloadSerializerDeserializer()); -webServer = new WebServer(this, ccConfig.getConsoleListenPort()); clusterIPC.start(); clientIPC.start(); -webServer.start(); +startWebServers(); info = new ClusterControllerInfo(ccId, ccConfig.getClientPublicAddress(), ccConfig.getClientPublicPort(), ccConfig.getConsolePublicPort()); timer.schedule(sweeper, 0, ccConfig.getDeadNodeSweepThreshold()); @@ -226,6 +225,11 @@ connectNCs(); LOGGER.log(Level.INFO, "Started ClusterControllerService"); notifyApplication(); +} + +protected void startWebServers() throws Exception { +webServer = new WebServer(this, ccConfig.getConsoleListenPort()); +webServer.start(); } private void startApplication() throws Exception { @@ -317,7 +321,7 @@ public void stop() throws Exception { LOGGER.log(Level.INFO, "Stopping ClusterControllerService"); stopApplication(); -webServer.stop(); +stopWebServers(); sweeper.cancel(); workQueue.stop(); executor.shutdownNow(); @@ -327,8 +331,11 @@ LOGGER.log(Level.INFO, "Stopped ClusterControllerService"); } -private void stopApplication() throws Exception { +protected void stopWebServers() throws Exception { +webServer.stop(); +} +private void stopApplication() throws Exception { application.stop(); } -- To view, visit https://asterix-gerrit.ics.uci.edu/3416 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-Project: asterixdb Gerrit-Branch: stabilization-f69489 Gerrit-MessageType: merged Gerrit-Change-Id: Icd2a048a6152105c831183db2440e9dc5b3a1eb5 Gerrit-Change-Number: 3416 Gerrit-PatchSet: 2 Gerrit-Owner: Murtadha Hubail Gerrit-Reviewer: Anon. E. Moose (1000171) Gerrit-Reviewer: Jenkins Gerrit-Reviewer: Michael Blow Gerrit-Reviewer: Murtadha Hubail
Change in asterixdb[stabilization-f69489]: [NO ISSUE][OTH] Make ClusterControllerService Extensible
Murtadha Hubail has restored this change. ( https://asterix-gerrit.ics.uci.edu/3416 ) Change subject: [NO ISSUE][OTH] Make ClusterControllerService Extensible .. Restored -- To view, visit https://asterix-gerrit.ics.uci.edu/3416 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-Project: asterixdb Gerrit-Branch: stabilization-f69489 Gerrit-MessageType: restore Gerrit-Change-Id: Icd2a048a6152105c831183db2440e9dc5b3a1eb5 Gerrit-Change-Number: 3416 Gerrit-PatchSet: 1 Gerrit-Owner: Murtadha Hubail Gerrit-Reviewer: Anon. E. Moose (1000171) Gerrit-Reviewer: Jenkins Gerrit-Reviewer: Michael Blow
Change in asterixdb[stabilization-f69489]: [NO ISSUE][OTH] Make ClusterControllerService Extensible
Murtadha Hubail has abandoned this change. ( https://asterix-gerrit.ics.uci.edu/3416 ) Change subject: [NO ISSUE][OTH] Make ClusterControllerService Extensible .. Abandoned proposed on master -- To view, visit https://asterix-gerrit.ics.uci.edu/3416 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-Project: asterixdb Gerrit-Branch: stabilization-f69489 Gerrit-MessageType: abandon Gerrit-Change-Id: Icd2a048a6152105c831183db2440e9dc5b3a1eb5 Gerrit-Change-Number: 3416 Gerrit-PatchSet: 1 Gerrit-Owner: Murtadha Hubail Gerrit-Reviewer: Anon. E. Moose (1000171) Gerrit-Reviewer: Jenkins Gerrit-Reviewer: Michael Blow
Change in asterixdb[stabilization-f69489]: [NO ISSUE][OTH] Make ClusterControllerService Extensible
Michael Blow has removed a vote on this change. Change subject: [NO ISSUE][OTH] Make ClusterControllerService Extensible .. Removed Contrib-2 by Anon. E. Moose (1000171) -- To view, visit https://asterix-gerrit.ics.uci.edu/3416 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-Project: asterixdb Gerrit-Branch: stabilization-f69489 Gerrit-MessageType: deleteVote Gerrit-Change-Id: Icd2a048a6152105c831183db2440e9dc5b3a1eb5 Gerrit-Change-Number: 3416 Gerrit-PatchSet: 1 Gerrit-Owner: Murtadha Hubail Gerrit-Reviewer: Anon. E. Moose (1000171) Gerrit-Reviewer: Jenkins Gerrit-Reviewer: Michael Blow
Change in asterixdb[stabilization-f69489]: [NO ISSUE][OTH] Make ClusterControllerService Extensible
Michael Blow has posted comments on this change. ( https://asterix-gerrit.ics.uci.edu/3416 ) Change subject: [NO ISSUE][OTH] Make ClusterControllerService Extensible .. Patch Set 1: Contrib+1 Code-Review+2 -- To view, visit https://asterix-gerrit.ics.uci.edu/3416 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-Project: asterixdb Gerrit-Branch: stabilization-f69489 Gerrit-MessageType: comment Gerrit-Change-Id: Icd2a048a6152105c831183db2440e9dc5b3a1eb5 Gerrit-Change-Number: 3416 Gerrit-PatchSet: 1 Gerrit-Owner: Murtadha Hubail Gerrit-Reviewer: Anon. E. Moose (1000171) Gerrit-Reviewer: Jenkins Gerrit-Reviewer: Michael Blow Gerrit-Comment-Date: Thu, 30 May 2019 11:59:55 + Gerrit-HasComments: No
Change in asterixdb[stabilization-f69489]: [NO ISSUE][OTH] Make ClusterControllerService Extensible
Anon. E. Moose (1000171) has posted comments on this change. ( https://asterix-gerrit.ics.uci.edu/3416 ) Change subject: [NO ISSUE][OTH] Make ClusterControllerService Extensible .. Patch Set 1: Contrib-2 Analytics Compatibility Tests Failed https://cbjenkins.page.link/jTafFGmBwFqp8h1T8 : UNSTABLE -- To view, visit https://asterix-gerrit.ics.uci.edu/3416 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-Project: asterixdb Gerrit-Branch: stabilization-f69489 Gerrit-MessageType: comment Gerrit-Change-Id: Icd2a048a6152105c831183db2440e9dc5b3a1eb5 Gerrit-Change-Number: 3416 Gerrit-PatchSet: 1 Gerrit-Owner: Murtadha Hubail Gerrit-Reviewer: Anon. E. Moose (1000171) Gerrit-Reviewer: Jenkins Gerrit-Comment-Date: Thu, 30 May 2019 06:13:36 + Gerrit-HasComments: No
Change in asterixdb[stabilization-f69489]: [NO ISSUE][OTH] Make ClusterControllerService Extensible
Anon. E. Moose (1000171) has posted comments on this change. ( https://asterix-gerrit.ics.uci.edu/3416 ) Change subject: [NO ISSUE][OTH] Make ClusterControllerService Extensible .. Patch Set 1: Analytics Compatibility Compilation Successful https://cbjenkins.page.link/N3k2rxwMA28CrF5Q7 : SUCCESS -- To view, visit https://asterix-gerrit.ics.uci.edu/3416 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-Project: asterixdb Gerrit-Branch: stabilization-f69489 Gerrit-MessageType: comment Gerrit-Change-Id: Icd2a048a6152105c831183db2440e9dc5b3a1eb5 Gerrit-Change-Number: 3416 Gerrit-PatchSet: 1 Gerrit-Owner: Murtadha Hubail Gerrit-Reviewer: Anon. E. Moose (1000171) Gerrit-Reviewer: Jenkins Gerrit-Comment-Date: Thu, 30 May 2019 03:01:39 + Gerrit-HasComments: No
Change in asterixdb[stabilization-f69489]: [NO ISSUE][OTH] Make ClusterControllerService Extensible
Jenkins has posted comments on this change. ( https://asterix-gerrit.ics.uci.edu/3416 ) Change subject: [NO ISSUE][OTH] Make ClusterControllerService Extensible .. Patch Set 1: Build Started https://asterix-jenkins.ics.uci.edu/job/asterix-verify-txnlog/1020/ (5/12) -- To view, visit https://asterix-gerrit.ics.uci.edu/3416 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-Project: asterixdb Gerrit-Branch: stabilization-f69489 Gerrit-MessageType: comment Gerrit-Change-Id: Icd2a048a6152105c831183db2440e9dc5b3a1eb5 Gerrit-Change-Number: 3416 Gerrit-PatchSet: 1 Gerrit-Owner: Murtadha Hubail Gerrit-Reviewer: Jenkins Gerrit-Comment-Date: Thu, 30 May 2019 02:57:47 + Gerrit-HasComments: No
Change in asterixdb[stabilization-f69489]: [NO ISSUE][OTH] Make ClusterControllerService Extensible
Jenkins has posted comments on this change. ( https://asterix-gerrit.ics.uci.edu/3416 ) Change subject: [NO ISSUE][OTH] Make ClusterControllerService Extensible .. Patch Set 1: Integration-Tests+1 Integration Tests Successful https://asterix-jenkins.ics.uci.edu/job/asterix-gerrit-integration-tests/8620/ : SUCCESS -- To view, visit https://asterix-gerrit.ics.uci.edu/3416 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-Project: asterixdb Gerrit-Branch: stabilization-f69489 Gerrit-MessageType: comment Gerrit-Change-Id: Icd2a048a6152105c831183db2440e9dc5b3a1eb5 Gerrit-Change-Number: 3416 Gerrit-PatchSet: 1 Gerrit-Owner: Murtadha Hubail Gerrit-Reviewer: Anon. E. Moose (1000171) Gerrit-Reviewer: Jenkins Gerrit-Comment-Date: Thu, 30 May 2019 04:20:40 + Gerrit-HasComments: No
Change in asterixdb[stabilization-f69489]: [NO ISSUE][OTH] Make ClusterControllerService Extensible
Jenkins has posted comments on this change. ( https://asterix-gerrit.ics.uci.edu/3416 ) Change subject: [NO ISSUE][OTH] Make ClusterControllerService Extensible .. Patch Set 1: Integration Tests Started https://asterix-jenkins.ics.uci.edu/job/asterix-gerrit-integration-tests/8620/ -- To view, visit https://asterix-gerrit.ics.uci.edu/3416 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-Project: asterixdb Gerrit-Branch: stabilization-f69489 Gerrit-MessageType: comment Gerrit-Change-Id: Icd2a048a6152105c831183db2440e9dc5b3a1eb5 Gerrit-Change-Number: 3416 Gerrit-PatchSet: 1 Gerrit-Owner: Murtadha Hubail Gerrit-Reviewer: Jenkins Gerrit-Comment-Date: Thu, 30 May 2019 03:00:04 + Gerrit-HasComments: No
Change in asterixdb[stabilization-f69489]: [NO ISSUE][OTH] Make ClusterControllerService Extensible
Jenkins has posted comments on this change. ( https://asterix-gerrit.ics.uci.edu/3416 ) Change subject: [NO ISSUE][OTH] Make ClusterControllerService Extensible .. Patch Set 1: Build Started https://asterix-jenkins.ics.uci.edu/job/asterix-gerrit-asterix-app-openjdk11/1209/ (2/12) -- To view, visit https://asterix-gerrit.ics.uci.edu/3416 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-Project: asterixdb Gerrit-Branch: stabilization-f69489 Gerrit-MessageType: comment Gerrit-Change-Id: Icd2a048a6152105c831183db2440e9dc5b3a1eb5 Gerrit-Change-Number: 3416 Gerrit-PatchSet: 1 Gerrit-Owner: Murtadha Hubail Gerrit-Reviewer: Jenkins Gerrit-Comment-Date: Thu, 30 May 2019 02:57:46 + Gerrit-HasComments: No
Change in asterixdb[stabilization-f69489]: [NO ISSUE][OTH] Make ClusterControllerService Extensible
Jenkins has posted comments on this change. ( https://asterix-gerrit.ics.uci.edu/3416 ) Change subject: [NO ISSUE][OTH] Make ClusterControllerService Extensible .. Patch Set 1: Build Started https://asterix-jenkins.ics.uci.edu/job/asterix-gerrit-source-format/5823/ (10/12) -- To view, visit https://asterix-gerrit.ics.uci.edu/3416 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-Project: asterixdb Gerrit-Branch: stabilization-f69489 Gerrit-MessageType: comment Gerrit-Change-Id: Icd2a048a6152105c831183db2440e9dc5b3a1eb5 Gerrit-Change-Number: 3416 Gerrit-PatchSet: 1 Gerrit-Owner: Murtadha Hubail Gerrit-Reviewer: Jenkins Gerrit-Comment-Date: Thu, 30 May 2019 02:57:55 + Gerrit-HasComments: No
Change in asterixdb[stabilization-f69489]: [NO ISSUE][OTH] Make ClusterControllerService Extensible
Jenkins has posted comments on this change. ( https://asterix-gerrit.ics.uci.edu/3416 ) Change subject: [NO ISSUE][OTH] Make ClusterControllerService Extensible .. Patch Set 1: Build Started https://asterix-jenkins.ics.uci.edu/job/asterix-gerrit-sonar/9800/ (3/12) -- To view, visit https://asterix-gerrit.ics.uci.edu/3416 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-Project: asterixdb Gerrit-Branch: stabilization-f69489 Gerrit-MessageType: comment Gerrit-Change-Id: Icd2a048a6152105c831183db2440e9dc5b3a1eb5 Gerrit-Change-Number: 3416 Gerrit-PatchSet: 1 Gerrit-Owner: Murtadha Hubail Gerrit-Reviewer: Jenkins Gerrit-Comment-Date: Thu, 30 May 2019 02:57:46 + Gerrit-HasComments: No
Change in asterixdb[stabilization-f69489]: [NO ISSUE][OTH] Make ClusterControllerService Extensible
Jenkins has posted comments on this change. ( https://asterix-gerrit.ics.uci.edu/3416 ) Change subject: [NO ISSUE][OTH] Make ClusterControllerService Extensible .. Patch Set 1: Build Started https://asterix-jenkins.ics.uci.edu/job/asterix-gerrit-verify-asterix-app/6214/ (9/12) -- To view, visit https://asterix-gerrit.ics.uci.edu/3416 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-Project: asterixdb Gerrit-Branch: stabilization-f69489 Gerrit-MessageType: comment Gerrit-Change-Id: Icd2a048a6152105c831183db2440e9dc5b3a1eb5 Gerrit-Change-Number: 3416 Gerrit-PatchSet: 1 Gerrit-Owner: Murtadha Hubail Gerrit-Reviewer: Jenkins Gerrit-Comment-Date: Thu, 30 May 2019 02:57:52 + Gerrit-HasComments: No
Change in asterixdb[stabilization-f69489]: [NO ISSUE][OTH] Make ClusterControllerService Extensible
Jenkins has posted comments on this change. ( https://asterix-gerrit.ics.uci.edu/3416 ) Change subject: [NO ISSUE][OTH] Make ClusterControllerService Extensible .. Patch Set 1: Build Started https://asterix-jenkins.ics.uci.edu/job/asterix-verify-storage/6424/ (4/12) -- To view, visit https://asterix-gerrit.ics.uci.edu/3416 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-Project: asterixdb Gerrit-Branch: stabilization-f69489 Gerrit-MessageType: comment Gerrit-Change-Id: Icd2a048a6152105c831183db2440e9dc5b3a1eb5 Gerrit-Change-Number: 3416 Gerrit-PatchSet: 1 Gerrit-Owner: Murtadha Hubail Gerrit-Reviewer: Jenkins Gerrit-Comment-Date: Thu, 30 May 2019 02:57:47 + Gerrit-HasComments: No
Change in asterixdb[stabilization-f69489]: [NO ISSUE][OTH] Make ClusterControllerService Extensible
Jenkins has posted comments on this change. ( https://asterix-gerrit.ics.uci.edu/3416 ) Change subject: [NO ISSUE][OTH] Make ClusterControllerService Extensible .. Patch Set 1: Build Started https://asterix-jenkins.ics.uci.edu/job/hyracks-gerrit/5758/ (1/12) -- To view, visit https://asterix-gerrit.ics.uci.edu/3416 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-Project: asterixdb Gerrit-Branch: stabilization-f69489 Gerrit-MessageType: comment Gerrit-Change-Id: Icd2a048a6152105c831183db2440e9dc5b3a1eb5 Gerrit-Change-Number: 3416 Gerrit-PatchSet: 1 Gerrit-Owner: Murtadha Hubail Gerrit-Reviewer: Jenkins Gerrit-Comment-Date: Thu, 30 May 2019 02:57:46 + Gerrit-HasComments: No
Change in asterixdb[stabilization-f69489]: [NO ISSUE][OTH] Make ClusterControllerService Extensible
Jenkins has posted comments on this change. ( https://asterix-gerrit.ics.uci.edu/3416 ) Change subject: [NO ISSUE][OTH] Make ClusterControllerService Extensible .. Patch Set 1: Build Started https://asterix-jenkins.ics.uci.edu/job/asterix-gerrit-cancellation-test/5859/ (11/12) -- To view, visit https://asterix-gerrit.ics.uci.edu/3416 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-Project: asterixdb Gerrit-Branch: stabilization-f69489 Gerrit-MessageType: comment Gerrit-Change-Id: Icd2a048a6152105c831183db2440e9dc5b3a1eb5 Gerrit-Change-Number: 3416 Gerrit-PatchSet: 1 Gerrit-Owner: Murtadha Hubail Gerrit-Reviewer: Jenkins Gerrit-Comment-Date: Thu, 30 May 2019 02:57:56 + Gerrit-HasComments: No
Change in asterixdb[stabilization-f69489]: [NO ISSUE][OTH] Make ClusterControllerService Extensible
Jenkins has posted comments on this change. ( https://asterix-gerrit.ics.uci.edu/3416 ) Change subject: [NO ISSUE][OTH] Make ClusterControllerService Extensible .. Patch Set 1: Build Started https://asterix-jenkins.ics.uci.edu/job/asterix-gerrit-source-assemblies/6064/ (7/12) -- To view, visit https://asterix-gerrit.ics.uci.edu/3416 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-Project: asterixdb Gerrit-Branch: stabilization-f69489 Gerrit-MessageType: comment Gerrit-Change-Id: Icd2a048a6152105c831183db2440e9dc5b3a1eb5 Gerrit-Change-Number: 3416 Gerrit-PatchSet: 1 Gerrit-Owner: Murtadha Hubail Gerrit-Reviewer: Jenkins Gerrit-Comment-Date: Thu, 30 May 2019 02:57:48 + Gerrit-HasComments: No
Change in asterixdb[stabilization-f69489]: [NO ISSUE][OTH] Make ClusterControllerService Extensible
Jenkins has posted comments on this change. ( https://asterix-gerrit.ics.uci.edu/3416 ) Change subject: [NO ISSUE][OTH] Make ClusterControllerService Extensible .. Patch Set 1: Build Started https://asterix-jenkins.ics.uci.edu/job/asterix-gerrit-notopic/11333/ (12/12) -- To view, visit https://asterix-gerrit.ics.uci.edu/3416 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-Project: asterixdb Gerrit-Branch: stabilization-f69489 Gerrit-MessageType: comment Gerrit-Change-Id: Icd2a048a6152105c831183db2440e9dc5b3a1eb5 Gerrit-Change-Number: 3416 Gerrit-PatchSet: 1 Gerrit-Owner: Murtadha Hubail Gerrit-Reviewer: Jenkins Gerrit-Comment-Date: Thu, 30 May 2019 02:57:58 + Gerrit-HasComments: No
Change in asterixdb[stabilization-f69489]: [NO ISSUE][OTH] Make ClusterControllerService Extensible
Murtadha Hubail has uploaded this change for review. ( https://asterix-gerrit.ics.uci.edu/3416 Change subject: [NO ISSUE][OTH] Make ClusterControllerService Extensible .. [NO ISSUE][OTH] Make ClusterControllerService Extensible - user model changes: no - storage format changes: no - interface changes: no Details: - Allow configuring the web servers started on hyracks ClusterControllerService. Change-Id: Icd2a048a6152105c831183db2440e9dc5b3a1eb5 --- M hyracks-fullstack/hyracks/hyracks-control/hyracks-control-cc/src/main/java/org/apache/hyracks/control/cc/ClusterControllerService.java 1 file changed, 11 insertions(+), 4 deletions(-) git pull ssh://asterix-gerrit.ics.uci.edu:29418/asterixdb refs/changes/16/3416/1 diff --git a/hyracks-fullstack/hyracks/hyracks-control/hyracks-control-cc/src/main/java/org/apache/hyracks/control/cc/ClusterControllerService.java b/hyracks-fullstack/hyracks/hyracks-control/hyracks-control-cc/src/main/java/org/apache/hyracks/control/cc/ClusterControllerService.java index b5dacfb..91397a8 100644 --- a/hyracks-fullstack/hyracks/hyracks-control/hyracks-control-cc/src/main/java/org/apache/hyracks/control/cc/ClusterControllerService.java +++ b/hyracks-fullstack/hyracks/hyracks-control/hyracks-control-cc/src/main/java/org/apache/hyracks/control/cc/ClusterControllerService.java @@ -211,10 +211,9 @@ clientIPC = new IPCSystem(new InetSocketAddress(ccConfig.getClientListenAddress(), ccConfig.getClientListenPort()), ciIPCI, new JavaSerializationBasedPayloadSerializerDeserializer()); -webServer = new WebServer(this, ccConfig.getConsoleListenPort()); clusterIPC.start(); clientIPC.start(); -webServer.start(); +startWebServers(); info = new ClusterControllerInfo(ccId, ccConfig.getClientPublicAddress(), ccConfig.getClientPublicPort(), ccConfig.getConsolePublicPort()); timer.schedule(sweeper, 0, ccConfig.getDeadNodeSweepThreshold()); @@ -226,6 +225,11 @@ connectNCs(); LOGGER.log(Level.INFO, "Started ClusterControllerService"); notifyApplication(); +} + +protected void startWebServers() throws Exception { +webServer = new WebServer(this, ccConfig.getConsoleListenPort()); +webServer.start(); } private void startApplication() throws Exception { @@ -317,7 +321,7 @@ public void stop() throws Exception { LOGGER.log(Level.INFO, "Stopping ClusterControllerService"); stopApplication(); -webServer.stop(); +stopWebServers(); sweeper.cancel(); workQueue.stop(); executor.shutdownNow(); @@ -327,8 +331,11 @@ LOGGER.log(Level.INFO, "Stopped ClusterControllerService"); } -private void stopApplication() throws Exception { +protected void stopWebServers() throws Exception { +webServer.stop(); +} +private void stopApplication() throws Exception { application.stop(); } -- To view, visit https://asterix-gerrit.ics.uci.edu/3416 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-Project: asterixdb Gerrit-Branch: stabilization-f69489 Gerrit-MessageType: newchange Gerrit-Change-Id: Icd2a048a6152105c831183db2440e9dc5b3a1eb5 Gerrit-Change-Number: 3416 Gerrit-PatchSet: 1 Gerrit-Owner: Murtadha Hubail
Change in asterixdb[stabilization-f69489]: [NO ISSUE][OTH] Make ClusterControllerService Extensible
Jenkins has posted comments on this change. ( https://asterix-gerrit.ics.uci.edu/3416 ) Change subject: [NO ISSUE][OTH] Make ClusterControllerService Extensible .. Patch Set 1: Build Started https://asterix-jenkins.ics.uci.edu/job/asterix-gerrit-asterix-app-sql-execution/5841/ (8/12) -- To view, visit https://asterix-gerrit.ics.uci.edu/3416 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-Project: asterixdb Gerrit-Branch: stabilization-f69489 Gerrit-MessageType: comment Gerrit-Change-Id: Icd2a048a6152105c831183db2440e9dc5b3a1eb5 Gerrit-Change-Number: 3416 Gerrit-PatchSet: 1 Gerrit-Owner: Murtadha Hubail Gerrit-Reviewer: Jenkins Gerrit-Comment-Date: Thu, 30 May 2019 02:57:50 + Gerrit-HasComments: No
Change in asterixdb[stabilization-f69489]: [NO ISSUE][OTH] Make ClusterControllerService Extensible
Jenkins has posted comments on this change. ( https://asterix-gerrit.ics.uci.edu/3416 ) Change subject: [NO ISSUE][OTH] Make ClusterControllerService Extensible .. Patch Set 1: Build Started https://asterix-jenkins.ics.uci.edu/job/asterix-gerrit-verify-no-installer-app-stabilization-f69489/102/ (6/12) -- To view, visit https://asterix-gerrit.ics.uci.edu/3416 To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings Gerrit-Project: asterixdb Gerrit-Branch: stabilization-f69489 Gerrit-MessageType: comment Gerrit-Change-Id: Icd2a048a6152105c831183db2440e9dc5b3a1eb5 Gerrit-Change-Number: 3416 Gerrit-PatchSet: 1 Gerrit-Owner: Murtadha Hubail Gerrit-Reviewer: Jenkins Gerrit-Comment-Date: Thu, 30 May 2019 02:57:48 + Gerrit-HasComments: No