ONOS-841 Renaming ONOS threads to simplify profiling.
Change-Id: I83a96bd875a0af9f3b78c06a9f9107c093b8e64e
Showing
24 changed files
with
46 additions
and
46 deletions
... | @@ -15,17 +15,6 @@ | ... | @@ -15,17 +15,6 @@ |
15 | */ | 15 | */ |
16 | package org.onosproject.sdnip.bgp; | 16 | package org.onosproject.sdnip.bgp; |
17 | 17 | ||
18 | -import static com.google.common.base.Preconditions.checkNotNull; | ||
19 | -import static org.onlab.util.Tools.namedThreads; | ||
20 | - | ||
21 | -import java.net.InetAddress; | ||
22 | -import java.net.InetSocketAddress; | ||
23 | -import java.net.SocketAddress; | ||
24 | -import java.util.Collection; | ||
25 | -import java.util.concurrent.ConcurrentHashMap; | ||
26 | -import java.util.concurrent.ConcurrentMap; | ||
27 | -import java.util.concurrent.Executors; | ||
28 | - | ||
29 | import org.jboss.netty.bootstrap.ServerBootstrap; | 18 | import org.jboss.netty.bootstrap.ServerBootstrap; |
30 | import org.jboss.netty.channel.Channel; | 19 | import org.jboss.netty.channel.Channel; |
31 | import org.jboss.netty.channel.ChannelException; | 20 | import org.jboss.netty.channel.ChannelException; |
... | @@ -37,13 +26,24 @@ import org.jboss.netty.channel.group.ChannelGroup; | ... | @@ -37,13 +26,24 @@ import org.jboss.netty.channel.group.ChannelGroup; |
37 | import org.jboss.netty.channel.group.DefaultChannelGroup; | 26 | import org.jboss.netty.channel.group.DefaultChannelGroup; |
38 | import org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory; | 27 | import org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory; |
39 | import org.onlab.packet.Ip4Address; | 28 | import org.onlab.packet.Ip4Address; |
40 | -import org.onlab.packet.IpPrefix; | ||
41 | import org.onlab.packet.Ip4Prefix; | 29 | import org.onlab.packet.Ip4Prefix; |
42 | import org.onlab.packet.Ip6Prefix; | 30 | import org.onlab.packet.Ip6Prefix; |
31 | +import org.onlab.packet.IpPrefix; | ||
43 | import org.onosproject.sdnip.RouteListener; | 32 | import org.onosproject.sdnip.RouteListener; |
44 | import org.slf4j.Logger; | 33 | import org.slf4j.Logger; |
45 | import org.slf4j.LoggerFactory; | 34 | import org.slf4j.LoggerFactory; |
46 | 35 | ||
36 | +import java.net.InetAddress; | ||
37 | +import java.net.InetSocketAddress; | ||
38 | +import java.net.SocketAddress; | ||
39 | +import java.util.Collection; | ||
40 | +import java.util.concurrent.ConcurrentHashMap; | ||
41 | +import java.util.concurrent.ConcurrentMap; | ||
42 | + | ||
43 | +import static com.google.common.base.Preconditions.checkNotNull; | ||
44 | +import static java.util.concurrent.Executors.newCachedThreadPool; | ||
45 | +import static org.onlab.util.Tools.namedThreads; | ||
46 | + | ||
47 | /** | 47 | /** |
48 | * BGP Session Manager class. | 48 | * BGP Session Manager class. |
49 | */ | 49 | */ |
... | @@ -259,8 +259,8 @@ public class BgpSessionManager { | ... | @@ -259,8 +259,8 @@ public class BgpSessionManager { |
259 | isShutdown = false; | 259 | isShutdown = false; |
260 | 260 | ||
261 | ChannelFactory channelFactory = new NioServerSocketChannelFactory( | 261 | ChannelFactory channelFactory = new NioServerSocketChannelFactory( |
262 | - Executors.newCachedThreadPool(namedThreads("BGP-SM-boss-%d")), | 262 | + newCachedThreadPool(namedThreads("onos-bgp-sm-boss-%d")), |
263 | - Executors.newCachedThreadPool(namedThreads("BGP-SM-worker-%d"))); | 263 | + newCachedThreadPool(namedThreads("onos-bgp-sm-worker-%d"))); |
264 | ChannelPipelineFactory pipelineFactory = new ChannelPipelineFactory() { | 264 | ChannelPipelineFactory pipelineFactory = new ChannelPipelineFactory() { |
265 | @Override | 265 | @Override |
266 | public ChannelPipeline getPipeline() throws Exception { | 266 | public ChannelPipeline getPipeline() throws Exception { | ... | ... |
... | @@ -45,7 +45,7 @@ public class CoreEventDispatcher extends DefaultEventSinkRegistry | ... | @@ -45,7 +45,7 @@ public class CoreEventDispatcher extends DefaultEventSinkRegistry |
45 | private final Logger log = getLogger(getClass()); | 45 | private final Logger log = getLogger(getClass()); |
46 | 46 | ||
47 | private final ExecutorService executor = | 47 | private final ExecutorService executor = |
48 | - newSingleThreadExecutor(namedThreads("event-dispatch-%d")); | 48 | + newSingleThreadExecutor(namedThreads("onos-event-dispatch-%d")); |
49 | 49 | ||
50 | @SuppressWarnings("unchecked") | 50 | @SuppressWarnings("unchecked") |
51 | private static final Event KILL_PILL = new AbstractEvent(null, 0) { | 51 | private static final Event KILL_PILL = new AbstractEvent(null, 0) { | ... | ... |
... | @@ -111,7 +111,7 @@ public class DeviceManager | ... | @@ -111,7 +111,7 @@ public class DeviceManager |
111 | 111 | ||
112 | @Activate | 112 | @Activate |
113 | public void activate() { | 113 | public void activate() { |
114 | - backgroundService = Executors.newSingleThreadScheduledExecutor(namedThreads("device-manager-background")); | 114 | + backgroundService = Executors.newSingleThreadScheduledExecutor(namedThreads("onos-device-manager-background")); |
115 | 115 | ||
116 | store.setDelegate(delegate); | 116 | store.setDelegate(delegate); |
117 | eventDispatcher.addSink(DeviceEvent.class, listenerRegistry); | 117 | eventDispatcher.addSink(DeviceEvent.class, listenerRegistry); | ... | ... |
... | @@ -104,7 +104,7 @@ public class FlowRuleManager | ... | @@ -104,7 +104,7 @@ public class FlowRuleManager |
104 | @Activate | 104 | @Activate |
105 | public void activate() { | 105 | public void activate() { |
106 | futureService = | 106 | futureService = |
107 | - Executors.newFixedThreadPool(32, namedThreads("provider-future-listeners-%d")); | 107 | + Executors.newFixedThreadPool(32, namedThreads("onos-provider-future-listeners-%d")); |
108 | store.setDelegate(delegate); | 108 | store.setDelegate(delegate); |
109 | eventDispatcher.addSink(FlowRuleEvent.class, listenerRegistry); | 109 | eventDispatcher.addSink(FlowRuleEvent.class, listenerRegistry); |
110 | log.info("Started"); | 110 | log.info("Started"); | ... | ... |
... | @@ -116,7 +116,7 @@ public class DefaultTopologyProvider extends AbstractProvider | ... | @@ -116,7 +116,7 @@ public class DefaultTopologyProvider extends AbstractProvider |
116 | 116 | ||
117 | @Activate | 117 | @Activate |
118 | public synchronized void activate(ComponentContext context) { | 118 | public synchronized void activate(ComponentContext context) { |
119 | - executor = newFixedThreadPool(MAX_THREADS, namedThreads("topo-build-%d")); | 119 | + executor = newFixedThreadPool(MAX_THREADS, namedThreads("onos-topo-build-%d")); |
120 | accumulator = new TopologyChangeAccumulator(); | 120 | accumulator = new TopologyChangeAccumulator(); |
121 | logConfig("Configured"); | 121 | logConfig("Configured"); |
122 | 122 | ... | ... |
... | @@ -266,7 +266,7 @@ public class HazelcastLeadershipService implements LeadershipService, | ... | @@ -266,7 +266,7 @@ public class HazelcastLeadershipService implements LeadershipService, |
266 | */ | 266 | */ |
267 | private void start() { | 267 | private void start() { |
268 | isShutdown = false; | 268 | isShutdown = false; |
269 | - String threadPoolName = "leader-election-" + topicName + "-%d"; | 269 | + String threadPoolName = "onos-leader-election-" + topicName + "-%d"; |
270 | leaderElectionExecutor = Executors.newScheduledThreadPool(2, | 270 | leaderElectionExecutor = Executors.newScheduledThreadPool(2, |
271 | namedThreads(threadPoolName)); | 271 | namedThreads(threadPoolName)); |
272 | 272 | ... | ... |
... | @@ -74,7 +74,7 @@ public class LeadershipManager implements LeadershipService { | ... | @@ -74,7 +74,7 @@ public class LeadershipManager implements LeadershipService { |
74 | 74 | ||
75 | // TODO: Make Thread pool size configurable. | 75 | // TODO: Make Thread pool size configurable. |
76 | private final ScheduledExecutorService threadPool = | 76 | private final ScheduledExecutorService threadPool = |
77 | - Executors.newScheduledThreadPool(25, namedThreads("leadership-manager-%d")); | 77 | + Executors.newScheduledThreadPool(25, namedThreads("onos-leadership-manager-%d")); |
78 | 78 | ||
79 | private static final MessageSubject LEADERSHIP_UPDATES = | 79 | private static final MessageSubject LEADERSHIP_UPDATES = |
80 | new MessageSubject("leadership-contest-updates"); | 80 | new MessageSubject("leadership-contest-updates"); | ... | ... |
... | @@ -187,10 +187,10 @@ public class GossipDeviceStore | ... | @@ -187,10 +187,10 @@ public class GossipDeviceStore |
187 | clusterCommunicator.addSubscriber( | 187 | clusterCommunicator.addSubscriber( |
188 | GossipDeviceStoreMessageSubjects.DEVICE_ADVERTISE, new InternalDeviceAdvertisementListener()); | 188 | GossipDeviceStoreMessageSubjects.DEVICE_ADVERTISE, new InternalDeviceAdvertisementListener()); |
189 | 189 | ||
190 | - executor = Executors.newCachedThreadPool(namedThreads("device-fg-%d")); | 190 | + executor = Executors.newCachedThreadPool(namedThreads("onos-device-fg-%d")); |
191 | 191 | ||
192 | backgroundExecutor = | 192 | backgroundExecutor = |
193 | - newSingleThreadScheduledExecutor(minPriority(namedThreads("device-bg-%d"))); | 193 | + newSingleThreadScheduledExecutor(minPriority(namedThreads("onos-device-bg-%d"))); |
194 | 194 | ||
195 | // start anti-entropy thread | 195 | // start anti-entropy thread |
196 | backgroundExecutor.scheduleAtFixedRate(new SendAdvertisementTask(), | 196 | backgroundExecutor.scheduleAtFixedRate(new SendAdvertisementTask(), | ... | ... |
... | @@ -146,10 +146,10 @@ public class DistributedFlowRuleStore | ... | @@ -146,10 +146,10 @@ public class DistributedFlowRuleStore |
146 | 146 | ||
147 | 147 | ||
148 | private final ExecutorService futureListeners = | 148 | private final ExecutorService futureListeners = |
149 | - Executors.newCachedThreadPool(namedThreads("flowstore-peer-responders")); | 149 | + Executors.newCachedThreadPool(namedThreads("onos-flowstore-peer-responders")); |
150 | 150 | ||
151 | private final ExecutorService backupExecutors = | 151 | private final ExecutorService backupExecutors = |
152 | - Executors.newSingleThreadExecutor(namedThreads("async-backups")); | 152 | + Executors.newSingleThreadExecutor(namedThreads("onos-async-backups")); |
153 | 153 | ||
154 | private boolean syncBackup = false; | 154 | private boolean syncBackup = false; |
155 | 155 | ... | ... |
... | @@ -165,10 +165,10 @@ public class GossipHostStore | ... | @@ -165,10 +165,10 @@ public class GossipHostStore |
165 | HOST_ANTI_ENTROPY_ADVERTISEMENT, | 165 | HOST_ANTI_ENTROPY_ADVERTISEMENT, |
166 | new InternalHostAntiEntropyAdvertisementListener()); | 166 | new InternalHostAntiEntropyAdvertisementListener()); |
167 | 167 | ||
168 | - executor = Executors.newCachedThreadPool(namedThreads("host-fg-%d")); | 168 | + executor = Executors.newCachedThreadPool(namedThreads("onos-host-fg-%d")); |
169 | 169 | ||
170 | backgroundExecutor = | 170 | backgroundExecutor = |
171 | - newSingleThreadScheduledExecutor(minPriority(namedThreads("host-bg-%d"))); | 171 | + newSingleThreadScheduledExecutor(minPriority(namedThreads("onos-host-bg-%d"))); |
172 | 172 | ||
173 | // start anti-entropy thread | 173 | // start anti-entropy thread |
174 | backgroundExecutor.scheduleAtFixedRate(new SendAdvertisementTask(), | 174 | backgroundExecutor.scheduleAtFixedRate(new SendAdvertisementTask(), | ... | ... |
... | @@ -132,10 +132,10 @@ public class GossipIntentStore | ... | @@ -132,10 +132,10 @@ public class GossipIntentStore |
132 | INTENT_ANTI_ENTROPY_ADVERTISEMENT, | 132 | INTENT_ANTI_ENTROPY_ADVERTISEMENT, |
133 | new InternalIntentAntiEntropyAdvertisementListener()); | 133 | new InternalIntentAntiEntropyAdvertisementListener()); |
134 | 134 | ||
135 | - executor = Executors.newCachedThreadPool(namedThreads("intent-fg-%d")); | 135 | + executor = Executors.newCachedThreadPool(namedThreads("onos-intent-fg-%d")); |
136 | 136 | ||
137 | backgroundExecutor = | 137 | backgroundExecutor = |
138 | - newSingleThreadScheduledExecutor(minPriority(namedThreads("intent-bg-%d"))); | 138 | + newSingleThreadScheduledExecutor(minPriority(namedThreads("onos-intent-bg-%d"))); |
139 | 139 | ||
140 | // start anti-entropy thread | 140 | // start anti-entropy thread |
141 | //backgroundExecutor.scheduleAtFixedRate(new SendAdvertisementTask(), | 141 | //backgroundExecutor.scheduleAtFixedRate(new SendAdvertisementTask(), | ... | ... |
... | @@ -163,10 +163,10 @@ public class GossipLinkStore | ... | @@ -163,10 +163,10 @@ public class GossipLinkStore |
163 | GossipLinkStoreMessageSubjects.LINK_ANTI_ENTROPY_ADVERTISEMENT, | 163 | GossipLinkStoreMessageSubjects.LINK_ANTI_ENTROPY_ADVERTISEMENT, |
164 | new InternalLinkAntiEntropyAdvertisementListener()); | 164 | new InternalLinkAntiEntropyAdvertisementListener()); |
165 | 165 | ||
166 | - executor = Executors.newCachedThreadPool(namedThreads("link-fg-%d")); | 166 | + executor = Executors.newCachedThreadPool(namedThreads("onos-link-fg-%d")); |
167 | 167 | ||
168 | backgroundExecutors = | 168 | backgroundExecutors = |
169 | - newSingleThreadScheduledExecutor(minPriority(namedThreads("link-bg-%d"))); | 169 | + newSingleThreadScheduledExecutor(minPriority(namedThreads("onos-link-bg-%d"))); |
170 | 170 | ||
171 | long initialDelaySec = 5; | 171 | long initialDelaySec = 5; |
172 | long periodSec = 5; | 172 | long periodSec = 5; | ... | ... |
core/store/dist/src/main/java/org/onosproject/store/service/impl/ClusterMessagingProtocolClient.java
... | @@ -103,7 +103,7 @@ public class ClusterMessagingProtocolClient implements ProtocolClient { | ... | @@ -103,7 +103,7 @@ public class ClusterMessagingProtocolClient implements ProtocolClient { |
103 | public synchronized CompletableFuture<Void> connect() { | 103 | public synchronized CompletableFuture<Void> connect() { |
104 | if (pool == null || pool.isShutdown()) { | 104 | if (pool == null || pool.isShutdown()) { |
105 | // TODO include remote name? | 105 | // TODO include remote name? |
106 | - pool = newCachedThreadPool(namedThreads("copycat-netty-messaging-client-%d")); | 106 | + pool = newCachedThreadPool(namedThreads("onos-copycat-netty-messaging-client-%d")); |
107 | } | 107 | } |
108 | return CompletableFuture.completedFuture(null); | 108 | return CompletableFuture.completedFuture(null); |
109 | } | 109 | } | ... | ... |
core/store/dist/src/main/java/org/onosproject/store/service/impl/ClusterMessagingProtocolServer.java
... | @@ -62,7 +62,7 @@ public class ClusterMessagingProtocolServer implements ProtocolServer { | ... | @@ -62,7 +62,7 @@ public class ClusterMessagingProtocolServer implements ProtocolServer { |
62 | @Override | 62 | @Override |
63 | public CompletableFuture<Void> listen() { | 63 | public CompletableFuture<Void> listen() { |
64 | if (pool == null || pool.isShutdown()) { | 64 | if (pool == null || pool.isShutdown()) { |
65 | - pool = newCachedThreadPool(namedThreads("copycat-netty-messaging-server-%d")); | 65 | + pool = newCachedThreadPool(namedThreads("onos-copycat-netty-messaging-server-%d")); |
66 | } | 66 | } |
67 | 67 | ||
68 | clusterCommunicator.addSubscriber(COPYCAT_PING, new PingHandler()); | 68 | clusterCommunicator.addSubscriber(COPYCAT_PING, new PingHandler()); | ... | ... |
core/store/dist/src/main/java/org/onosproject/store/service/impl/DatabaseEntryExpirationTracker.java
... | @@ -55,7 +55,7 @@ public class DatabaseEntryExpirationTracker implements | ... | @@ -55,7 +55,7 @@ public class DatabaseEntryExpirationTracker implements |
55 | DatabaseUpdateEventListener, EventHandler<LeaderElectEvent> { | 55 | DatabaseUpdateEventListener, EventHandler<LeaderElectEvent> { |
56 | 56 | ||
57 | private static final ExecutorService THREAD_POOL = | 57 | private static final ExecutorService THREAD_POOL = |
58 | - Executors.newCachedThreadPool(namedThreads("database-stale-entry-expirer-%d")); | 58 | + Executors.newCachedThreadPool(namedThreads("onos-db-stale-entry-expirer-%d")); |
59 | 59 | ||
60 | private final Logger log = LoggerFactory.getLogger(getClass()); | 60 | private final Logger log = LoggerFactory.getLogger(getClass()); |
61 | 61 | ... | ... |
... | @@ -218,7 +218,7 @@ public class DatabaseManager implements DatabaseService, DatabaseAdminService { | ... | @@ -218,7 +218,7 @@ public class DatabaseManager implements DatabaseService, DatabaseAdminService { |
218 | copycat.start().get(); | 218 | copycat.start().get(); |
219 | 219 | ||
220 | executor = | 220 | executor = |
221 | - newSingleThreadScheduledExecutor(namedThreads("db-heartbeat-%d")); | 221 | + newSingleThreadScheduledExecutor(namedThreads("onos-db-heartbeat-%d")); |
222 | executor.scheduleWithFixedDelay(new LeaderAdvertiser(), 5, 2, TimeUnit.SECONDS); | 222 | executor.scheduleWithFixedDelay(new LeaderAdvertiser(), 5, 2, TimeUnit.SECONDS); |
223 | 223 | ||
224 | } | 224 | } | ... | ... |
... | @@ -66,7 +66,7 @@ public class DatabaseStateMachine implements StateMachine { | ... | @@ -66,7 +66,7 @@ public class DatabaseStateMachine implements StateMachine { |
66 | private final Logger log = getLogger(getClass()); | 66 | private final Logger log = getLogger(getClass()); |
67 | 67 | ||
68 | private final ExecutorService updatesExecutor = | 68 | private final ExecutorService updatesExecutor = |
69 | - Executors.newSingleThreadExecutor(namedThreads("database-statemachine-updates")); | 69 | + Executors.newSingleThreadExecutor(namedThreads("onos-db-statemachine-updates")); |
70 | 70 | ||
71 | // message subject for database update notifications. | 71 | // message subject for database update notifications. |
72 | public static final MessageSubject DATABASE_UPDATE_EVENTS = | 72 | public static final MessageSubject DATABASE_UPDATE_EVENTS = | ... | ... |
... | @@ -53,7 +53,7 @@ import com.google.common.collect.Multimaps; | ... | @@ -53,7 +53,7 @@ import com.google.common.collect.Multimaps; |
53 | public class DistributedLockManager implements LockService { | 53 | public class DistributedLockManager implements LockService { |
54 | 54 | ||
55 | private static final ExecutorService THREAD_POOL = | 55 | private static final ExecutorService THREAD_POOL = |
56 | - Executors.newCachedThreadPool(namedThreads("lock-manager-%d")); | 56 | + Executors.newCachedThreadPool(namedThreads("onos-lock-manager-%d")); |
57 | 57 | ||
58 | private final Logger log = getLogger(getClass()); | 58 | private final Logger log = getLogger(getClass()); |
59 | 59 | ... | ... |
... | @@ -137,13 +137,13 @@ public class Controller { | ... | @@ -137,13 +137,13 @@ public class Controller { |
137 | 137 | ||
138 | if (workerThreads == 0) { | 138 | if (workerThreads == 0) { |
139 | execFactory = new NioServerSocketChannelFactory( | 139 | execFactory = new NioServerSocketChannelFactory( |
140 | - Executors.newCachedThreadPool(namedThreads("Controller-boss-%d")), | 140 | + Executors.newCachedThreadPool(namedThreads("onos-of-boss-%d")), |
141 | - Executors.newCachedThreadPool(namedThreads("Controller-worker-%d"))); | 141 | + Executors.newCachedThreadPool(namedThreads("onos-of-worker-%d"))); |
142 | return new ServerBootstrap(execFactory); | 142 | return new ServerBootstrap(execFactory); |
143 | } else { | 143 | } else { |
144 | execFactory = new NioServerSocketChannelFactory( | 144 | execFactory = new NioServerSocketChannelFactory( |
145 | - Executors.newCachedThreadPool(namedThreads("Controller-boss-%d")), | 145 | + Executors.newCachedThreadPool(namedThreads("onos-of-boss-%d")), |
146 | - Executors.newCachedThreadPool(namedThreads("Controller-worker-%d")), workerThreads); | 146 | + Executors.newCachedThreadPool(namedThreads("onos-of-worker-%d")), workerThreads); |
147 | return new ServerBootstrap(execFactory); | 147 | return new ServerBootstrap(execFactory); |
148 | } | 148 | } |
149 | } | 149 | } | ... | ... |
... | @@ -69,11 +69,11 @@ public class OpenFlowControllerImpl implements OpenFlowController { | ... | @@ -69,11 +69,11 @@ public class OpenFlowControllerImpl implements OpenFlowController { |
69 | 69 | ||
70 | private final ExecutorService executorMsgs = | 70 | private final ExecutorService executorMsgs = |
71 | Executors.newFixedThreadPool(32, | 71 | Executors.newFixedThreadPool(32, |
72 | - namedThreads("of-event-stats-%d")); | 72 | + namedThreads("onos-of-event-stats-%d")); |
73 | 73 | ||
74 | private final ExecutorService executorBarrier = | 74 | private final ExecutorService executorBarrier = |
75 | Executors.newFixedThreadPool(4, | 75 | Executors.newFixedThreadPool(4, |
76 | - namedThreads("of-event-barrier-%d")); | 76 | + namedThreads("onos-of-event-barrier-%d")); |
77 | 77 | ||
78 | protected ConcurrentHashMap<Dpid, OpenFlowSwitch> connectedSwitches = | 78 | protected ConcurrentHashMap<Dpid, OpenFlowSwitch> connectedSwitches = |
79 | new ConcurrentHashMap<Dpid, OpenFlowSwitch>(); | 79 | new ConcurrentHashMap<Dpid, OpenFlowSwitch>(); | ... | ... |
... | @@ -161,7 +161,7 @@ public class LLDPLinkProvider extends AbstractProvider implements LinkProvider { | ... | @@ -161,7 +161,7 @@ public class LLDPLinkProvider extends AbstractProvider implements LinkProvider { |
161 | } | 161 | } |
162 | } | 162 | } |
163 | 163 | ||
164 | - executor = newSingleThreadScheduledExecutor(namedThreads("device-sync-%d")); | 164 | + executor = newSingleThreadScheduledExecutor(namedThreads("onos-device-sync-%d")); |
165 | executor.scheduleAtFixedRate(new SyncDeviceInfoTask(), INIT_DELAY, | 165 | executor.scheduleAtFixedRate(new SyncDeviceInfoTask(), INIT_DELAY, |
166 | DELAY, TimeUnit.SECONDS); | 166 | DELAY, TimeUnit.SECONDS); |
167 | 167 | ... | ... |
providers/null/device/src/main/java/org/onosproject/provider/nil/device/impl/NullDeviceProvider.java
... | @@ -73,7 +73,7 @@ public class NullDeviceProvider extends AbstractProvider implements DeviceProvid | ... | @@ -73,7 +73,7 @@ public class NullDeviceProvider extends AbstractProvider implements DeviceProvid |
73 | private DeviceProviderService providerService; | 73 | private DeviceProviderService providerService; |
74 | 74 | ||
75 | private ExecutorService deviceBuilder = Executors.newFixedThreadPool(1, | 75 | private ExecutorService deviceBuilder = Executors.newFixedThreadPool(1, |
76 | - namedThreads("null-device-creator")); | 76 | + namedThreads("onos-null-device-creator")); |
77 | 77 | ||
78 | 78 | ||
79 | //currently hardcoded. will be made configurable via rest/cli. | 79 | //currently hardcoded. will be made configurable via rest/cli. | ... | ... |
... | @@ -93,7 +93,7 @@ public class NullLinkProvider extends AbstractProvider implements LinkProvider { | ... | @@ -93,7 +93,7 @@ public class NullLinkProvider extends AbstractProvider implements LinkProvider { |
93 | private final List<DeviceId> devices = Lists.newArrayList(); | 93 | private final List<DeviceId> devices = Lists.newArrayList(); |
94 | 94 | ||
95 | private ExecutorService linkDriver = Executors.newFixedThreadPool(1, | 95 | private ExecutorService linkDriver = Executors.newFixedThreadPool(1, |
96 | - namedThreads("null-link-driver")); | 96 | + namedThreads("onos-null-link-driver")); |
97 | 97 | ||
98 | // If true, 'flickers' links by alternating link up/down events at eventRate | 98 | // If true, 'flickers' links by alternating link up/down events at eventRate |
99 | @Property(name = "flicker", boolValue = FLICKER, | 99 | @Property(name = "flicker", boolValue = FLICKER, | ... | ... |
providers/null/packet/src/main/java/org/onosproject/provider/nil/packet/impl/NullPacketProvider.java
... | @@ -83,7 +83,7 @@ public class NullPacketProvider extends AbstractProvider implements | ... | @@ -83,7 +83,7 @@ public class NullPacketProvider extends AbstractProvider implements |
83 | private int pktRate = DEFAULT_RATE; | 83 | private int pktRate = DEFAULT_RATE; |
84 | 84 | ||
85 | private ExecutorService packetDriver = Executors.newFixedThreadPool(1, | 85 | private ExecutorService packetDriver = Executors.newFixedThreadPool(1, |
86 | - namedThreads("null-packet-driver")); | 86 | + namedThreads("onos-null-packet-driver")); |
87 | 87 | ||
88 | public NullPacketProvider() { | 88 | public NullPacketProvider() { |
89 | super(new ProviderId("null", "org.onosproject.provider.nil")); | 89 | super(new ProviderId("null", "org.onosproject.provider.nil")); | ... | ... |
-
Please register or login to post a comment