Gave threadpools more appropriate names.

Change-Id: Ib7ce71a3028363b1465fbd5775f84e2befaf80c1
diff --git a/core/store/dist/src/main/java/org/onosproject/store/app/GossipApplicationStore.java b/core/store/dist/src/main/java/org/onosproject/store/app/GossipApplicationStore.java
index 1c3c098..805c9ca 100644
--- a/core/store/dist/src/main/java/org/onosproject/store/app/GossipApplicationStore.java
+++ b/core/store/dist/src/main/java/org/onosproject/store/app/GossipApplicationStore.java
@@ -89,9 +89,7 @@
         INSTALLED, ACTIVATED, DEACTIVATED
     }
 
-    private final ScheduledExecutorService executor =
-            Executors.newSingleThreadScheduledExecutor(groupedThreads("onos/app", "store"));
-
+    private ScheduledExecutorService executor;
     private ExecutorService messageHandlingExecutor;
 
     private EventuallyConsistentMap<ApplicationId, Application> apps;
@@ -113,6 +111,8 @@
                 .register(KryoNamespaces.API)
                 .register(InternalState.class);
 
+        executor = Executors.newSingleThreadScheduledExecutor(groupedThreads("onos/app", "store"));
+
         messageHandlingExecutor = Executors.newSingleThreadExecutor(
                 groupedThreads("onos/store/app", "message-handler"));
 
@@ -154,6 +154,7 @@
     public void deactivate() {
         clusterCommunicator.removeSubscriber(APP_BITS_REQUEST);
         messageHandlingExecutor.shutdown();
+        executor.shutdown();
         apps.destroy();
         states.destroy();
         permissions.destroy();
diff --git a/core/store/dist/src/main/java/org/onosproject/store/flow/impl/DistributedFlowRuleStore.java b/core/store/dist/src/main/java/org/onosproject/store/flow/impl/DistributedFlowRuleStore.java
index e28a753..80f2914 100644
--- a/core/store/dist/src/main/java/org/onosproject/store/flow/impl/DistributedFlowRuleStore.java
+++ b/core/store/dist/src/main/java/org/onosproject/store/flow/impl/DistributedFlowRuleStore.java
@@ -178,7 +178,7 @@
 
         messageHandlingExecutor = Executors.newFixedThreadPool(
                 MESSAGE_HANDLER_THREAD_POOL_SIZE,
-                groupedThreads("onos/flow", "message-handlers"));
+                groupedThreads("onos/store/flow", "message-handlers"));
 
         clusterCommunicator.addSubscriber(APPLY_BATCH_FLOWS, new OnStoreBatch(local), messageHandlingExecutor);
 
diff --git a/core/store/dist/src/main/java/org/onosproject/store/packet/impl/DistributedPacketStore.java b/core/store/dist/src/main/java/org/onosproject/store/packet/impl/DistributedPacketStore.java
index 35e28c7..eb0c38a 100644
--- a/core/store/dist/src/main/java/org/onosproject/store/packet/impl/DistributedPacketStore.java
+++ b/core/store/dist/src/main/java/org/onosproject/store/packet/impl/DistributedPacketStore.java
@@ -89,7 +89,7 @@
     public void activate() {
         messageHandlingExecutor =  Executors.newFixedThreadPool(
                 MESSAGE_HANDLER_THREAD_POOL_SIZE,
-                groupedThreads("onos/flow", "message-handlers"));
+                groupedThreads("onos/store/packet", "message-handlers"));
 
         communicationService.addSubscriber(
                 PACKET_OUT_SUBJECT, new InternalClusterMessageHandler(), messageHandlingExecutor);