Fix Checkstyle errors in odl-simple 85/91585/1
authorThanh Ha <thanh.ha@luminanetworks.com>
Thu, 7 Nov 2019 18:30:48 +0000 (13:30 -0500)
committerTejas Nevrekar <tejas.nevrekar@gmail.com>
Thu, 23 Jul 2020 10:39:50 +0000 (16:09 +0530)
* License headers to EPL 1.0 -> ODL Projects need to use EPL as the license
  so fix the license headers to reflect the proper license.

* Using tabs instead of spaces -> Checkstyle is recommending code be space
  indented rather than tabs.

* Fix import order should be alphabetical.
* Fix line length longer than max 120 characters.

JIRA: ODLMICRO-27
Issue: ODL-7526
Signed-off-by: Thanh Ha <thanh.ha@luminanetworks.com>
Signed-off-by: Tejas Nevrekar <tejas.nevrekar@gmail.com>
Change-Id: I595d441db7294645e4189ab6ffd17f8ea80ce22a

17 files changed:
simple-core/src/main/java/org/opendaylight/aaa/simple/AAAModule.java
simple-core/src/main/java/org/opendaylight/controller/simple/GlobalBossGroup.java
simple-core/src/main/java/org/opendaylight/controller/simple/GlobalEventExecutor.java
simple-core/src/main/java/org/opendaylight/controller/simple/GlobalTimer.java
simple-core/src/main/java/org/opendaylight/controller/simple/GlobalWorkerGroup.java
simple-core/src/main/java/org/opendaylight/controller/simple/InMemoryControllerModule.java
simple-netconf/src/main/java/org/opendaylight/netconf/simple/NetconfMain.java
simple-netconf/src/main/java/org/opendaylight/netconf/simple/NetconfModule.java
simple-netconf/src/main/java/org/opendaylight/netconf/simple/annotations/AggregatedNetconfOperationServiceFactory.java
simple-netconf/src/main/java/org/opendaylight/netconf/simple/annotations/AggregatedNetconfOperationServiceFactoryMappers.java
simple-netconf/src/main/java/org/opendaylight/netconf/simple/annotations/GlobalNetconfProcessingExecutor.java
simple-netconf/src/main/java/org/opendaylight/netconf/simple/annotations/GlobalNetconfSshScheduledExecutor.java
simple-netconf/src/main/java/org/opendaylight/netconf/simple/annotations/MapperAggregatorRegistry.java
simple-netconf/src/main/java/org/opendaylight/netconf/simple/annotations/MdsalNetconfConnector.java
simple-netconf/src/main/java/org/opendaylight/netconf/simple/annotations/NetconfAuthProvider.java
simple-netconf/src/main/java/org/opendaylight/netconf/simple/annotations/NetconfClientDispatcher.java
simple-openflowplugin/src/main/java/org/opendaylight/openflowplugin/simple/OpenflowPluginMain.java

index 3367d8b0026357f9b01c36d4187e5c175111b065..c4bcbd53c540343e263e8db5ff5e1e3b8db34b48 100644 (file)
@@ -7,6 +7,8 @@
  */
 package org.opendaylight.aaa.simple;
 
+import com.google.inject.AbstractModule;
+import com.google.inject.Provides;
 import javax.annotation.Nullable;
 import javax.inject.Singleton;
 
@@ -17,8 +19,6 @@ import org.opendaylight.aaa.api.PasswordCredentials;
 import org.opendaylight.aaa.shiro.tokenauthrealm.auth.ClaimBuilder;
 import org.opendaylight.aaa.shiro.tokenauthrealm.auth.PasswordCredentialBuilder;
 
-import com.google.inject.AbstractModule;
-import com.google.inject.Provides;
 
 public class AAAModule extends AbstractModule {
 
@@ -29,21 +29,25 @@ public class AAAModule extends AbstractModule {
     }
 
     @Provides
-       @Singleton
-       CredentialAuth<PasswordCredentials> getPasswordCredentialAuth() {
-       PasswordCredentials passwordCredentials = new PasswordCredentialBuilder().setUserName("admin").setPassword("admin").setDomain("").build();
-       return new CredentialAuth<PasswordCredentials>() {
+    @Singleton
+    CredentialAuth<PasswordCredentials> getPasswordCredentialAuth() {
+        PasswordCredentials passwordCredentials = new PasswordCredentialBuilder()
+            .setUserName("admin")
+            .setPassword("admin")
+            .setDomain("")
+            .build();
+        return new CredentialAuth<PasswordCredentials>() {
 
-                       @Nullable
-                       @Override
-                       public Claim authenticate(PasswordCredentials cred) throws AuthenticationException {
-                               if (cred.equals(passwordCredentials)) {
-                                       return new ClaimBuilder()
-                                                       .setUser("admin")
-                                                       .build();
-                               }
-                               return null;
-                       }
-               };
-       }
+            @Nullable
+            @Override
+            public Claim authenticate(PasswordCredentials cred) throws AuthenticationException {
+                if (cred.equals(passwordCredentials)) {
+                    return new ClaimBuilder()
+                            .setUser("admin")
+                            .build();
+                }
+                return null;
+            }
+        };
+    }
 }
index dc6f2fa29de7532b43d7ac04704ee35e10187a66..34a3c12b2654b5e1399b31813b8d16bd65ec9efb 100644 (file)
@@ -1,9 +1,9 @@
 /*
- * (C) 2019 Lumina Networks, Inc.
- * 2077 Gateway Place, Suite 500, San Jose, CA 95110.
- * All rights reserved.
+ * Copyright (c) 2019 Lumina Networks, Inc. and others. All rights reserved.
  *
- * Use of the software files and documentation is subject to license terms.
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
 package org.opendaylight.controller.simple;
 
index 7f2519e0583927c56667ac484477bcc0ea9f3287..6c4b8f35bfd4eaf320a057ca69a6bfe8b60fbec7 100644 (file)
@@ -1,9 +1,9 @@
 /*
- * (C) 2019 Lumina Networks, Inc.
- * 2077 Gateway Place, Suite 500, San Jose, CA 95110.
- * All rights reserved.
+ * Copyright (c) 2019 Lumina Networks, Inc. and others. All rights reserved.
  *
- * Use of the software files and documentation is subject to license terms.
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
 package org.opendaylight.controller.simple;
 
@@ -12,13 +12,12 @@ import static java.lang.annotation.ElementType.METHOD;
 import static java.lang.annotation.ElementType.PARAMETER;
 import static java.lang.annotation.RetentionPolicy.RUNTIME;
 
+import io.netty.util.concurrent.EventExecutor;
 import java.lang.annotation.Documented;
 import java.lang.annotation.Retention;
 import java.lang.annotation.Target;
-
 import javax.inject.Qualifier;
 
-import io.netty.util.concurrent.EventExecutor;
 
 /**
  * PingPong {@link EventExecutor} dependency injection annotation.
index 4ad2e532290ae19c280bde25bb7c2eb986bd425f..ee9c5170f14aa1e99253cc9ad437a4a8f8c15912 100644 (file)
@@ -1,9 +1,9 @@
 /*
- * (C) 2019 Lumina Networks, Inc.
- * 2077 Gateway Place, Suite 500, San Jose, CA 95110.
- * All rights reserved.
+ * Copyright (c) 2019 Lumina Networks, Inc. and others. All rights reserved.
  *
- * Use of the software files and documentation is subject to license terms.
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
 package org.opendaylight.controller.simple;
 
index c587558eb797956b2d17011bf993cd45a8ba2f61..1717be8f6bea8ed2b897c5281d405f2d930723fe 100644 (file)
@@ -1,9 +1,9 @@
 /*
- * (C) 2019 Lumina Networks, Inc.
- * 2077 Gateway Place, Suite 500, San Jose, CA 95110.
- * All rights reserved.
+ * Copyright (c) 2019 Lumina Networks, Inc. and others. All rights reserved.
  *
- * Use of the software files and documentation is subject to license terms.
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
 package org.opendaylight.controller.simple;
 
index e998616e09aba0cca29a221528047468aa1c7e58..d8086e829af35580c0f08630a6ebc62e9b9fed37 100644 (file)
@@ -7,6 +7,11 @@
  */
 package org.opendaylight.controller.simple;
 
+import com.google.inject.Provides;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
+import io.netty.channel.EventLoopGroup;
+import io.netty.util.Timer;
+import io.netty.util.concurrent.EventExecutor;
 import javax.inject.Singleton;
 
 import org.opendaylight.controller.config.yang.netty.eventexecutor.AutoCloseableEventExecutor;
@@ -39,12 +44,6 @@ import org.opendaylight.mdsal.dom.broker.DOMRpcRouter;
 import org.opendaylight.mdsal.simple.MdsalModule;
 import org.opendaylight.mdsal.simple.PingPong;
 
-import com.google.inject.Provides;
-
-import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
-import io.netty.channel.EventLoopGroup;
-import io.netty.util.Timer;
-import io.netty.util.concurrent.EventExecutor;
 
 @SuppressFBWarnings("UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR")
 public class InMemoryControllerModule extends AbstractCloseableModule {
@@ -116,39 +115,39 @@ public class InMemoryControllerModule extends AbstractCloseableModule {
     }
 
     // NETCONF
-       // FIXME Add configuration for thread-count
-       @Provides
-       @Singleton
-       @GlobalBossGroup
-       EventLoopGroup getGlobalBossGroup() {
-               return NioEventLoopGroupCloseable.newInstance(0);
-       }
+    // FIXME Add configuration for thread-count
+    @Provides
+    @Singleton
+    @GlobalBossGroup
+    EventLoopGroup getGlobalBossGroup() {
+        return NioEventLoopGroupCloseable.newInstance(0);
+    }
 
     // NETCONF
-       // FIXME Add configuration for thread-count
-       @Provides
-       @Singleton
-       @GlobalWorkerGroup
-       EventLoopGroup getGlobalWorkerGroup() {
-               return NioEventLoopGroupCloseable.newInstance(0);
-       }
+    // FIXME Add configuration for thread-count
+    @Provides
+    @Singleton
+    @GlobalWorkerGroup
+    EventLoopGroup getGlobalWorkerGroup() {
+        return NioEventLoopGroupCloseable.newInstance(0);
+    }
 
     // NETCONF
-       // FIXME Add configuration for thread-count
-       @Provides
-       @Singleton
-       @GlobalTimer
-       Timer getGlobalTimer() {
-               return HashedWheelTimerCloseable.newInstance(0L, 0);
-       }
+    // FIXME Add configuration for thread-count
+    @Provides
+    @Singleton
+    @GlobalTimer
+    Timer getGlobalTimer() {
+        return HashedWheelTimerCloseable.newInstance(0L, 0);
+    }
 
     // NETCONF
-       @Provides
-       @Singleton
-       @GlobalEventExecutor
-       EventExecutor getGlobalEventExecutor() {
-               return AutoCloseableEventExecutor.globalEventExecutor();
-       }
+    @Provides
+    @Singleton
+    @GlobalEventExecutor
+    EventExecutor getGlobalEventExecutor() {
+        return AutoCloseableEventExecutor.globalEventExecutor();
+    }
 
     @Override
     public void close() throws Exception {
index 8bd6c45fa9cddc572cd5f0a74f457f9f3485eeed..cf1e81c43da636701fc6ead6e5051ad25e03ca94 100644 (file)
@@ -1,9 +1,9 @@
 /*
- * (C) 2019 Lumina Networks, Inc.
- * 2077 Gateway Place, Suite 500, San Jose, CA 95110.
- * All rights reserved.
+ * Copyright (c) 2019 Lumina Networks, Inc. and others. All rights reserved.
  *
- * Use of the software files and documentation is subject to license terms.
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
 package org.opendaylight.netconf.simple;
 
index 9870b82fb315d406e015a8c6553997a1e3fccf5c..dc87e133c97bfae622e4daea3a7dc3ba7eeb4a74 100644 (file)
@@ -1,15 +1,18 @@
 /*
- * (C) 2019 Lumina Networks, Inc.
- * 2077 Gateway Place, Suite 500, San Jose, CA 95110.
- * All rights reserved.
+ * Copyright (c) 2019 Lumina Networks, Inc. and others. All rights reserved.
  *
- * Use of the software files and documentation is subject to license terms.
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
 package org.opendaylight.netconf.simple;
 
+import com.google.inject.Provides;
+import io.netty.channel.EventLoopGroup;
+import io.netty.util.Timer;
+import io.netty.util.concurrent.EventExecutor;
 import java.util.Arrays;
 import java.util.concurrent.TimeUnit;
-
 import javax.inject.Singleton;
 
 import org.opendaylight.aaa.api.CredentialAuth;
@@ -63,11 +66,6 @@ import org.opendaylight.serviceutils.simple.ServiceUtilsModule;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import com.google.inject.Provides;
-
-import io.netty.channel.EventLoopGroup;
-import io.netty.util.Timer;
-import io.netty.util.concurrent.EventExecutor;
 
 /**
  * Guice module for NetConf.
@@ -108,204 +106,211 @@ public class NetconfModule extends AutoWiringModule {
         install(new RestConfModule());
     }
 
-       // Converted here from netconf-config/src/main/resources/OSGI-INF/blueprint/netconf-config.xml
-       // START
-       @Provides
-       @Singleton
-       NamingThreadPoolFactory getNamingThreadPoolFactory() {
-               return new NamingThreadPoolFactory(NAME_PREFIX);
-       }
-       
-       @Provides
-       @Singleton
-       @GlobalNetconfProcessingExecutor
-       ThreadPool getFlexibleThreadPool(NamingThreadPoolFactory namingThreadPoolFactory) {
-               return new FlexibleThreadPoolWrapper(MIN_THREAD_COUNT_FLEXIBLE_THREAD_POOL,
-                               MAX_THREAD_COUNT_FLEXIBLE_THREAD_POOL,
-                               KEEP_ALIVE_MILLIS_FLEXIBLE_THREAD_POOL,
-                               TimeUnit.valueOf("MILLISECONDS"),
-                               namingThreadPoolFactory);
-       }
+    // Converted here from netconf-config/src/main/resources/OSGI-INF/blueprint/netconf-config.xml
+    // START
+    @Provides
+    @Singleton
+    NamingThreadPoolFactory getNamingThreadPoolFactory() {
+        return new NamingThreadPoolFactory(NAME_PREFIX);
+    }
 
-       @Provides
-       @Singleton
-       @GlobalNetconfSshScheduledExecutor
-       ScheduledThreadPool getScheduledThreadPool(NamingThreadPoolFactory namingThreadPoolFactory) {
-               return new ScheduledThreadPoolWrapper(MAX_THREAD_COUNT_SCHEDULED_THREAD_POOL, namingThreadPoolFactory);
-       }
-       
-       // Converted here from netconf-config/src/main/resources/OSGI-INF/blueprint/netconf-config.xml
-       // END
+    @Provides
+    @Singleton
+    @GlobalNetconfProcessingExecutor
+    ThreadPool getFlexibleThreadPool(NamingThreadPoolFactory namingThreadPoolFactory) {
+        return new FlexibleThreadPoolWrapper(MIN_THREAD_COUNT_FLEXIBLE_THREAD_POOL,
+                MAX_THREAD_COUNT_FLEXIBLE_THREAD_POOL,
+                KEEP_ALIVE_MILLIS_FLEXIBLE_THREAD_POOL,
+                TimeUnit.valueOf("MILLISECONDS"),
+                namingThreadPoolFactory);
+    }
 
-       // Converted here from netconf-client/src/main/resources/OSGI-INF/blueprint/netconf-client.xml
-       // START
     @Provides
-    @Singleton 
+    @Singleton
+    @GlobalNetconfSshScheduledExecutor
+    ScheduledThreadPool getScheduledThreadPool(NamingThreadPoolFactory namingThreadPoolFactory) {
+        return new ScheduledThreadPoolWrapper(MAX_THREAD_COUNT_SCHEDULED_THREAD_POOL, namingThreadPoolFactory);
+    }
+
+    // Converted here from netconf-config/src/main/resources/OSGI-INF/blueprint/netconf-config.xml
+    // END
+
+    // Converted here from netconf-client/src/main/resources/OSGI-INF/blueprint/netconf-client.xml
+    // START
+    @Provides
+    @Singleton
     @org.opendaylight.netconf.simple.annotations.NetconfClientDispatcher
     NetconfClientDispatcher getNetconfClientDispatcher(
-               @GlobalBossGroup EventLoopGroup globalBossGroup, 
-               @GlobalWorkerGroup EventLoopGroup globalWorkerGroup, 
-               @GlobalTimer Timer globalTimer) {
+            @GlobalBossGroup EventLoopGroup globalBossGroup,
+            @GlobalWorkerGroup EventLoopGroup globalWorkerGroup,
+            @GlobalTimer Timer globalTimer) {
         return new NetconfClientDispatcherImpl(globalBossGroup, globalWorkerGroup, globalTimer);
     }
-       // Converted here from netconf-client/src/main/resources/OSGI-INF/blueprint/netconf-client.xml
-       // END
+    // Converted here from netconf-client/src/main/resources/OSGI-INF/blueprint/netconf-client.xml
+    // END
 
-       // Converted here from mdsal-netconf-impl/src/main/resources/OSGI-INF/blueprint/mdsal-netconf-impl.xml
-       // START
+    // Converted here from mdsal-netconf-impl/src/main/resources/OSGI-INF/blueprint/mdsal-netconf-impl.xml
+    // START
     @Provides
     @Singleton
     @org.opendaylight.netconf.simple.annotations.MapperAggregatorRegistry
     NetconfOperationServiceFactoryListener getMapperAggregatorRegistry() {
-       return new AggregatedNetconfOperationServiceFactory();
+        return new AggregatedNetconfOperationServiceFactory();
     }
 
     @Provides
     @Singleton
     @org.opendaylight.netconf.simple.annotations.AggregatedNetconfOperationServiceFactory
     NetconfOperationServiceFactory getAggregatedNetconfOperationServiceFactoryListener() {
-       return new AggregatedNetconfOperationServiceFactory();
+        return new AggregatedNetconfOperationServiceFactory();
     }
 
     @Provides
     @Singleton
     @AggregatedNetconfOperationServiceFactoryMappers
     AggregatedNetconfOperationServiceFactory getAggregatedNetconfOperationServiceFactoryMappers(
-               @org.opendaylight.netconf.simple.annotations.AggregatedNetconfOperationServiceFactory NetconfOperationServiceFactory aggregatedNetconfOperationServiceFactory) {
-               return new AggregatedNetconfOperationServiceFactory(Arrays.asList(aggregatedNetconfOperationServiceFactory));
-       }
+            @org.opendaylight.netconf.simple.annotations.AggregatedNetconfOperationServiceFactory
+                NetconfOperationServiceFactory aggregatedNetconfOperationServiceFactory) {
+        return new AggregatedNetconfOperationServiceFactory(Arrays.asList(aggregatedNetconfOperationServiceFactory));
+    }
 
     @Provides
     @Singleton
     NetconfMonitoringService getNetconfMonitoringService(
-               @org.opendaylight.netconf.simple.annotations.AggregatedNetconfOperationServiceFactory NetconfOperationServiceFactory aggregatedNetconfOperationServiceFactory,
-               @GlobalNetconfSshScheduledExecutor ScheduledThreadPool scheduledThreadPool) {
-       return new NetconfMonitoringServiceImpl(aggregatedNetconfOperationServiceFactory, scheduledThreadPool, MONITORING_UPDATE_INTERVAL);
+            @org.opendaylight.netconf.simple.annotations.AggregatedNetconfOperationServiceFactory
+                NetconfOperationServiceFactory aggregatedNetconfOperationServiceFactory,
+            @GlobalNetconfSshScheduledExecutor ScheduledThreadPool scheduledThreadPool) {
+        return new NetconfMonitoringServiceImpl(
+            aggregatedNetconfOperationServiceFactory, scheduledThreadPool, MONITORING_UPDATE_INTERVAL);
     }
-    
+
     @Provides
     @Singleton
     NetconfServerSessionNegotiatorFactory getNetconfServerSessionNegotiatorFactory(
-               @GlobalTimer Timer globalTimer,
-               @AggregatedNetconfOperationServiceFactoryMappers AggregatedNetconfOperationServiceFactory aggregatedNetconfOperationServiceFactoryMappers,
-               SessionIdProvider sessionIdProvider,
-               NetconfMonitoringService netconfMonitoringService) {
-               return new NetconfServerSessionNegotiatorFactory(globalTimer,
-                               aggregatedNetconfOperationServiceFactoryMappers,
-                               sessionIdProvider,
-                               CONNECTION_TIMEOUT_MILLIS,
-                               netconfMonitoringService);
-       }
+            @GlobalTimer Timer globalTimer,
+            @AggregatedNetconfOperationServiceFactoryMappers
+                AggregatedNetconfOperationServiceFactory aggregatedNetconfOperationServiceFactoryMappers,
+            SessionIdProvider sessionIdProvider,
+            NetconfMonitoringService netconfMonitoringService) {
+        return new NetconfServerSessionNegotiatorFactory(globalTimer,
+                aggregatedNetconfOperationServiceFactoryMappers,
+                sessionIdProvider,
+                CONNECTION_TIMEOUT_MILLIS,
+                netconfMonitoringService);
+    }
 
     @Provides
-    @Singleton 
+    @Singleton
     ServerChannelInitializer getServerChannelInitializer(
-               NetconfServerSessionNegotiatorFactory netconfServerSessionNegotiatorFactory) {
-       return new ServerChannelInitializer(netconfServerSessionNegotiatorFactory);
+            NetconfServerSessionNegotiatorFactory netconfServerSessionNegotiatorFactory) {
+        return new ServerChannelInitializer(netconfServerSessionNegotiatorFactory);
     }
-    
+
     @Provides
-    @Singleton 
+    @Singleton
     NetconfServerDispatcher getNetconfServerDispatcher(
-               ServerChannelInitializer serverChannelInitializer,
-               @GlobalBossGroup EventLoopGroup globalBossGroup, 
-               @GlobalWorkerGroup EventLoopGroup globalWorkerGroup) {
+            ServerChannelInitializer serverChannelInitializer,
+            @GlobalBossGroup EventLoopGroup globalBossGroup,
+            @GlobalWorkerGroup EventLoopGroup globalWorkerGroup) {
         return new NetconfServerDispatcherImpl(serverChannelInitializer, globalBossGroup, globalWorkerGroup);
     }
-       // Converted here from mdsal-netconf-impl/src/main/resources/OSGI-INF/blueprint/mdsal-netconf-impl.xml
-       // END
+    // Converted here from mdsal-netconf-impl/src/main/resources/OSGI-INF/blueprint/mdsal-netconf-impl.xml
+    // END
 
     // Converted here from netconf-topology/src/main/resources/OSGI-INF/blueprint/netconf-topology.xml
-       // START
+    // START
     @Provides
-    @Singleton 
+    @Singleton
     SchemaRepositoryProviderImpl getSchemaRepositoryProviderImpl(
-               ServerChannelInitializer serverChannelInitializer,
-               @GlobalBossGroup EventLoopGroup globalBossGroup, 
-               @GlobalWorkerGroup EventLoopGroup globalWorkerGroup) {
+            ServerChannelInitializer serverChannelInitializer,
+            @GlobalBossGroup EventLoopGroup globalBossGroup,
+            @GlobalWorkerGroup EventLoopGroup globalWorkerGroup) {
         return new SchemaRepositoryProviderImpl("shared-schema-repository-impl");
     }
 
-       @Provides
-       @Singleton
-       NetconfTopology getNetconfTopology(@org.opendaylight.netconf.simple.annotations.NetconfClientDispatcher NetconfClientDispatcher clientDispatcherDependency,
-                       @GlobalNetconfSshScheduledExecutor ScheduledThreadPool keepAliveExecutor,
-                       @GlobalNetconfProcessingExecutor ThreadPool processingExecutor,
-                       SchemaRepositoryProviderImpl schemaRepositoryProvider,
-                       @GlobalEventExecutor EventExecutor eventExecutor,
-                       DataBroker dataBroker,
-                       DOMMountPointService mountPointService,
-                       AAAEncryptionService encryptionService) {
-               NetconfTopologyImpl impl= new NetconfTopologyImpl("topology-netconf",
-                               clientDispatcherDependency,
-                               eventExecutor,
-                               keepAliveExecutor,
-                               processingExecutor,
-                               schemaRepositoryProvider,
-                               dataBroker,
-                               mountPointService,
-                               encryptionService);
-               impl.init();
-               return impl;
-       }
+    @Provides
+    @Singleton
+    NetconfTopology getNetconfTopology(@org.opendaylight.netconf.simple.annotations.NetconfClientDispatcher
+            NetconfClientDispatcher clientDispatcherDependency,
+            @GlobalNetconfSshScheduledExecutor ScheduledThreadPool keepAliveExecutor,
+            @GlobalNetconfProcessingExecutor ThreadPool processingExecutor,
+            SchemaRepositoryProviderImpl schemaRepositoryProvider,
+            @GlobalEventExecutor EventExecutor eventExecutor,
+            DataBroker dataBroker,
+            DOMMountPointService mountPointService,
+            AAAEncryptionService encryptionService) {
+        NetconfTopologyImpl impl = new NetconfTopologyImpl("topology-netconf",
+                clientDispatcherDependency,
+                eventExecutor,
+                keepAliveExecutor,
+                processingExecutor,
+                schemaRepositoryProvider,
+                dataBroker,
+                mountPointService,
+                encryptionService);
+        impl.init();
+        return impl;
+    }
 //
-//     @Provides
-//     @Singleton
-//     NetconfTopologySingletonService getNetconfTopologyManager(DataBroker dataBroker,
-//                     DOMRpcProviderService rpcRegistry,
-//                     ClusterSingletonServiceProvider clusterSingletonService,
-//                     @GlobalNetconfSshScheduledExecutor ScheduledThreadPool keepAliveExecutor,
-//                     @GlobalNetconfProcessingExecutor ThreadPool processingExecutor,
-//                     ActorSystemProvider actorSystemProvider,
-//                     @GlobalEventExecutor EventExecutor eventExecutor,
-//                     @org.opendaylight.netconf.simple.NetconfClientDispatcher NetconfClientDispatcher clientDispatcherDependency,
-//                     DOMMountPointService mountPointService,
-//                     AAAEncryptionService encryptionService) {
-//             Config config = new ConfigBuilder().setWriteTransactionIdleTimeout(WRITE_TRANSACTION_IDLE_TIMEOUT_MILLIS)
-//                             .build();
-//             return new NetconfTopologyManager(dataBroker,
-//                             rpcRegistry,
-//                             clusterSingletonService,
-//                             keepAliveExecutor,
-//                             processingExecutor,
-//                             actorSystemProvider,
-//                             eventExecutor,
-//                             clientDispatcherDependency,
-//                             "topology-netconf",
-//                             config,
-//                             mountPointService,
-//                             encryptionService);
-//     }
+//  @Provides
+//  @Singleton
+//  NetconfTopologySingletonService getNetconfTopologyManager(DataBroker dataBroker,
+//          DOMRpcProviderService rpcRegistry,
+//          ClusterSingletonServiceProvider clusterSingletonService,
+//          @GlobalNetconfSshScheduledExecutor ScheduledThreadPool keepAliveExecutor,
+//          @GlobalNetconfProcessingExecutor ThreadPool processingExecutor,
+//          ActorSystemProvider actorSystemProvider,
+//          @GlobalEventExecutor EventExecutor eventExecutor,
+//          @org.opendaylight.netconf.simple.NetconfClientDispatcher NetconfClientDispatcher clientDispatcherDependency,
+//          DOMMountPointService mountPointService,
+//          AAAEncryptionService encryptionService) {
+//      Config config = new ConfigBuilder().setWriteTransactionIdleTimeout(WRITE_TRANSACTION_IDLE_TIMEOUT_MILLIS)
+//              .build();
+//      return new NetconfTopologyManager(dataBroker,
+//              rpcRegistry,
+//              clusterSingletonService,
+//              keepAliveExecutor,
+//              processingExecutor,
+//              actorSystemProvider,
+//              eventExecutor,
+//              clientDispatcherDependency,
+//              "topology-netconf",
+//              config,
+//              mountPointService,
+//              encryptionService);
+//  }
 
     // Converted here from netconf-topology/src/main/resources/OSGI-INF/blueprint/netconf-topology.xml
-       // END
+    // END
 
-       // Converted here from mdsal-netconf-connector/src/main/resources/OSGI-INF/blueprint/mdsal-netconf-connector.xml
-       // START
+    // Converted here from mdsal-netconf-connector/src/main/resources/OSGI-INF/blueprint/mdsal-netconf-connector.xml
+    // START
 
-       @Provides
-       @Singleton
-       @MdsalNetconfConnector
-       NetconfOperationServiceFactory getMdsalNetconfOperationServiceFactory(DOMSchemaService schemaService,
-                       @org.opendaylight.netconf.simple.annotations.MapperAggregatorRegistry NetconfOperationServiceFactoryListener mapperAggregatorRegistry,
-                       DOMDataBroker domDataBroker,
-                       DOMRpcService domRpcService) {
-               return new MdsalNetconfOperationServiceFactory(schemaService, mapperAggregatorRegistry, domDataBroker, domRpcService);
-       }
+    @Provides
+    @Singleton
+    @MdsalNetconfConnector
+    NetconfOperationServiceFactory getMdsalNetconfOperationServiceFactory(DOMSchemaService schemaService,
+            @org.opendaylight.netconf.simple.annotations.MapperAggregatorRegistry
+                NetconfOperationServiceFactoryListener mapperAggregatorRegistry,
+            DOMDataBroker domDataBroker,
+            DOMRpcService domRpcService) {
+        return new MdsalNetconfOperationServiceFactory(
+            schemaService, mapperAggregatorRegistry, domDataBroker, domRpcService);
+    }
 
     // Converted here from mdsal-netconf-connector/src/main/resources/OSGI-INF/blueprint/mdsal-netconf-connector.xml
-       // END
+    // END
 
     // Converted here from netconf/aaa-authn-odl-plugin/src/main/resources/OSGI-INF/blueprint/aaa-authn-netconf.xml
-       // START
+    // START
 
-       @Provides
-       @Singleton
-       @NetconfAuthProvider
-       AuthProvider getNetconfAuthProvider(CredentialAuth<PasswordCredentials> credService) {
-               return new CredentialServiceAuthProvider(credService);
-       }
+    @Provides
+    @Singleton
+    @NetconfAuthProvider
+    AuthProvider getNetconfAuthProvider(CredentialAuth<PasswordCredentials> credService) {
+        return new CredentialServiceAuthProvider(credService);
+    }
     // Converted here from netconf/aaa-authn-odl-plugin/src/main/resources/OSGI-INF/blueprint/aaa-authn-netconf.xml
-       // END
+    // END
 
 }
index d6c13647a8bd6e35c0ec82fbbadfce0201d3709c..6fc7fbd41b8d571b5c97ff4c7e6a80c21fae7dce 100644 (file)
@@ -1,9 +1,9 @@
 /*
- * (C) 2019 Lumina Networks, Inc.
- * 2077 Gateway Place, Suite 500, San Jose, CA 95110.
- * All rights reserved.
+ * Copyright (c) 2019 Lumina Networks, Inc. and others. All rights reserved.
  *
- * Use of the software files and documentation is subject to license terms.
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
 package org.opendaylight.netconf.simple.annotations;
 
index 2e21a288b50ede9205040c55e388bb7f94b36a0f..d90590c6099b67d16f2feed1e47461da502959ee 100644 (file)
@@ -1,9 +1,9 @@
 /*
- * (C) 2019 Lumina Networks, Inc.
- * 2077 Gateway Place, Suite 500, San Jose, CA 95110.
- * All rights reserved.
+ * Copyright (c) 2019 Lumina Networks, Inc. and others. All rights reserved.
  *
- * Use of the software files and documentation is subject to license terms.
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
 package org.opendaylight.netconf.simple.annotations;
 
@@ -26,7 +26,8 @@ import org.opendaylight.netconf.mapping.api.NetconfOperationServiceFactory;
  * <p>USAGE: <pre> {@literal @}Singleton
  * public class Thing {
  *     {@literal @}Inject
- *     public Thing({@literal @}AggregatedNetconfOperationServiceFactoryMappers NetconfOperationServiceFactory listener) {
+ *     public Thing({@literal @}AggregatedNetconfOperationServiceFactoryMappers
+ *         NetconfOperationServiceFactory listener) {
  *         ...
  *     }
  * }</pre>
index a825f22f0ae10711e4ce318ec3125cbaee6ee963..99250b028166687e3bf031de5a85b746aa2c12a8 100644 (file)
@@ -1,9 +1,9 @@
 /*
- * (C) 2019 Lumina Networks, Inc.
- * 2077 Gateway Place, Suite 500, San Jose, CA 95110.
- * All rights reserved.
+ * Copyright (c) 2019 Lumina Networks, Inc. and others. All rights reserved.
  *
- * Use of the software files and documentation is subject to license terms.
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
 package org.opendaylight.netconf.simple.annotations;
 
index 93840edebd71428a45ed5a0dfa49ef4fabe1fe41..474a442380f958976de2c1ab24ce82a9190789ef 100644 (file)
@@ -1,9 +1,9 @@
 /*
- * (C) 2019 Lumina Networks, Inc.
- * 2077 Gateway Place, Suite 500, San Jose, CA 95110.
- * All rights reserved.
+ * Copyright (c) 2019 Lumina Networks, Inc. and others. All rights reserved.
  *
- * Use of the software files and documentation is subject to license terms.
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
 package org.opendaylight.netconf.simple.annotations;
 
index 093a45a18663fa0475163ef6e2631f006395ef13..8843e6648a9237745578e7144409da741a40f7d9 100644 (file)
@@ -1,9 +1,9 @@
 /*
- * (C) 2019 Lumina Networks, Inc.
- * 2077 Gateway Place, Suite 500, San Jose, CA 95110.
- * All rights reserved.
+ * Copyright (c) 2019 Lumina Networks, Inc. and others. All rights reserved.
  *
- * Use of the software files and documentation is subject to license terms.
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
 package org.opendaylight.netconf.simple.annotations;
 
index bc07d0a871bb77b967e82f35ee7211faeb98337c..1496bf7ca14b77d118fa8317e8e95de3b2715baf 100644 (file)
@@ -1,9 +1,9 @@
 /*
- * (C) 2019 Lumina Networks, Inc.
- * 2077 Gateway Place, Suite 500, San Jose, CA 95110.
- * All rights reserved.
+ * Copyright (c) 2019 Lumina Networks, Inc. and others. All rights reserved.
  *
- * Use of the software files and documentation is subject to license terms.
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
 package org.opendaylight.netconf.simple.annotations;
 
index 130d1e2d99f11008cdd4d18c2df5255a6df09efe..a37b3485be728c7600b48f11f83e689f999e543e 100644 (file)
@@ -1,9 +1,9 @@
 /*
- * (C) 2019 Lumina Networks, Inc.
- * 2077 Gateway Place, Suite 500, San Jose, CA 95110.
- * All rights reserved.
+ * Copyright (c) 2019 Lumina Networks, Inc. and others. All rights reserved.
  *
- * Use of the software files and documentation is subject to license terms.
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
 package org.opendaylight.netconf.simple.annotations;
 
index 66ac6514ec2032f356a8f864149533fc283925ef..df92ebb2c9e471a72cf38b3153a4d4c9795ea24a 100644 (file)
@@ -1,9 +1,9 @@
 /*
- * (C) 2019 Lumina Networks, Inc.
- * 2077 Gateway Place, Suite 500, San Jose, CA 95110.
- * All rights reserved.
+ * Copyright (c) 2019 Lumina Networks, Inc. and others. All rights reserved.
  *
- * Use of the software files and documentation is subject to license terms.
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
 package org.opendaylight.netconf.simple.annotations;
 
index 18058a8993a58db6403a6b72bdc21d5daf8b845d..542350dca5f0b473de2f64ac1bb77446048ff6bc 100644 (file)
@@ -1,9 +1,9 @@
 /*
- * (C) 2019 Lumina Networks, Inc.
- * 2077 Gateway Place, Suite 500, San Jose, CA 95110.
- * All rights reserved.
+ * Copyright (c) 2019 Lumina Networks, Inc. and others. All rights reserved.
  *
- * Use of the software files and documentation is subject to license terms.
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
 package org.opendaylight.openflowplugin.simple;