* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
-/**
- * DataChangeListener attached to the OVSDB southbound operational datastore
- * <p>
- *
- * @version 0.1
- * @since 2015-02-13
- */
-
package org.opendaylight.sfc.netconf.provider.listener;
import static org.opendaylight.sfc.provider.SfcProviderDebug.printTraceStart;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+/**
+ * DataChangeListener attached to the OVSDB southbound operational datastore.
+ *
+ * <p>
+ * @version 0.1
+ * @since 2015-02-13
+ */
@Singleton
public class SfcNetconfNodeDataListener extends AbstractSyncDataTreeChangeListener<Node> {
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
-/**
- * DataChangeListener attached to the SFC SFF config datastore
- *
- * @version 0.1
- * @since 2015-04-13
- */
package org.opendaylight.sfc.ovs.api;
import com.google.common.base.Preconditions;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+/**
+ * DataChangeListener attached to the SFC SFF config datastore.
+ *
+ * @version 0.1
+ * @since 2015-04-13
+ */
public final class SfcOvsDataStoreAPI {
private static final Logger LOG = LoggerFactory.getLogger(SfcOvsDataStoreAPI.class);
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
-/**
- * DataChangeListener attached to the OVSDB southbound operational datastore
- *
- * <p>
- * @version 0.1
- * @since 2015-02-13
- */
-
package org.opendaylight.sfc.ovs.listener;
import com.google.common.base.Optional;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-
+/**
+ * DataChangeListener attached to the OVSDB southbound operational datastore.
+ *
+ * <p>
+ * @version 0.1
+ * @since 2015-02-13
+ */
@Singleton
public class SfcOvsNodeDataListener extends AbstractSyncDataTreeChangeListener<Node> {
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
-/**
- * DataChangeListener attached to the SFC SFF config datastore
- *
- * @version 0.1
- * @since 2015-02-13
- */
-
package org.opendaylight.sfc.ovs.listener;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+/**
+ * DataChangeListener attached to the SFC SFF config datastore.
+ *
+ * @version 0.1
+ * @since 2015-02-13
+ */
@Singleton
public class SfcOvsSffEntryDataListener extends AbstractSyncDataTreeChangeListener<ServiceFunctionForwarder> {
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
-/**
- * Class for handling SFC OVS RPCs
- * <p>
- *
- * @version 0.1
- * @since 2015-03-31
- */
-
package org.opendaylight.sfc.ovs.provider;
import com.google.common.base.Preconditions;
import org.opendaylight.yangtools.yang.common.RpcResult;
import org.opendaylight.yangtools.yang.common.RpcResultBuilder;
+/**
+ * Class for handling SFC OVS RPCs.
+ *
+ * <p>
+ * @version 0.1
+ * @since 2015-03-31
+ */
public class SfcOvsRpc implements ServiceFunctionForwarderOvsService, AutoCloseable {
private static final String OVSDB_NODE_PREFIX = "ovsdb://";
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
-/**
- * SfcOvsUtil class contains various wrapper and utility methods
- * <p>
- *
- * @version 0.1
- * @since 2015-04-01
- */
-
package org.opendaylight.sfc.ovs.provider;
import com.google.common.base.Preconditions;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+/**
+ * SfcOvsUtil class contains various wrapper and utility methods.
+ *
+ * <p>
+ * @version 0.1
+ * @since 2015-04-01
+ */
public final class SfcOvsUtil {
private static final Logger LOG = LoggerFactory.getLogger(SfcOvsUtil.class);
-/**
+/*
* Copyright (c) 2017 Ericsson Spain and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
-/**
+/*
* Copyright (c) 2017, 2018 Ericsson Spain and others. All rights reserved.
*
* 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.sfc.ovs.listener;
import static org.junit.Assert.assertNotNull;
-/**
+/*
* Copyright (c) 2017, 2018 Ericsson Spain and others. All rights reserved.
*
* 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.sfc.ovs.listener;
import static org.junit.Assert.assertNotNull;
-/**
+/*
* Copyright (c) 2014, 2017 Ericsson India Global Services Pvt Ltd. and others. All rights reserved.
*
* 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.sfc.renderers.openflow;
import javax.annotation.PreDestroy;
-/**
+/*
* Copyright (c) 2014, 2017 Ericsson India Global Services Pvt Ltd. and others. All rights reserved.
*
* 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.sfc.renderers.openflow.listeners;
import org.opendaylight.controller.md.sal.binding.api.DataBroker;
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
-/**
- * DataChangeListener attached to the Network Topology
- */
package org.opendaylight.sfc.renderers.vpp.listeners;
import javax.inject.Inject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+/**
+ * DataChangeListener attached to the Network Topology.
+ */
@Singleton
public class VppNodeListener extends AbstractSyncDataTreeChangeListener<Node> {
-/**
+/*
* Copyright (c) 2017 Inocybe Inc. and others. All rights reserved.
*
* 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.sfc.statistics;
import java.util.List;
* from the type of stats (RSP, SFF, or SF) being collected,
* thus increasing the cohesion of both the stats reader
* classes and the stats handler classes.
- *
*/
public final class SfcStatisticsFactory {
-/**
+/*
* Copyright (c) 2017 Inocybe Inc. and others. All rights reserved.
*
* 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.sfc.statistics.handlers;
import java.util.Collections;
-/**
+/*
* Copyright (c) 2017 Inocybe Inc. and others. All rights reserved.
*
* 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.sfc.statistics.handlers;
import java.util.Collections;
-/**
+/*
* Copyright (c) 2017 Inocybe Inc. and others. All rights reserved.
*
* 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.sfc.statistics.handlers;
import java.math.BigInteger;
-/**
+/*
* Copyright (c) 2017 Inocybe Inc. and others. All rights reserved.
*
* 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.sfc.statistics.handlers;
import java.util.Collections;
-/**
+/*
* Copyright (c) 2017 Inocybe Inc. and others. All rights reserved.
*
* 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.sfc.statistics.readers;
import java.util.Optional;
-/**
+/*
* Copyright (c) 2017 Inocybe Inc. and others. All rights reserved.
*
* 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.sfc.statistics.readers;
import java.util.List;
-/**
+/*
* Copyright (c) 2017 Inocybe Inc. and others. All rights reserved.
*
* 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.sfc.statistics.readers;
import java.util.Optional;
-/**
+/*
* Copyright (c) 2017 Inocybe Inc. and others. All rights reserved.
*
* 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.sfc.statistics.readers;
import java.util.Optional;
-/**
+/*
* Copyright (c) 2017 Inocybe Inc. and others. All rights reserved.
*
* 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.sfc.statistics.readers;
import java.util.Optional;
-/**
+/*
* Copyright (c) 2017 Inocybe Inc. and others. All rights reserved.
*
* 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.sfc.statistics.rpc;
import com.google.common.util.concurrent.Futures;
-/**
+/*
* Copyright (c) 2018 Inocybe Inc. and others. All rights reserved.
*
* 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.sfc.statistics;
import static org.junit.Assert.assertEquals;
-/**
+/*
* Copyright (c) 2018 Inocybe Inc. and others. All rights reserved.
*
* 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.sfc.statistics.handlers;
import static org.junit.Assert.assertEquals;
import org.opendaylight.yang.gen.v1.urn.cisco.params.xml.ns.yang.sfc.sff.rev140701.service.function.forwarders.ServiceFunctionForwarder;
import org.opendaylight.yang.gen.v1.urn.cisco.params.xml.ns.yang.sfc.ss.rev140701.service.statistics.group.StatisticByTimestamp;
-
public class RspStatisticsHandlerTest extends AbstractDataStoreManager {
private SfcStatisticsTestUtils sfcStatsTestUtils;
-/**
+/*
* Copyright (c) 2018 Inocybe Inc. and others. All rights reserved.
*
* 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.sfc.statistics.readers;
import static org.junit.Assert.assertEquals;
-/**
+/*
* Copyright (c) 2018 Inocybe Inc. and others. All rights reserved.
*
* 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.sfc.statistics.rpc;
import static org.junit.Assert.assertEquals;
import org.opendaylight.yangtools.yang.common.RpcError;
import org.opendaylight.yangtools.yang.common.RpcResult;
-
public class SfcStatisticsRpcTest extends AbstractDataStoreManager {
private static String RSP_NAME_NON_EXISTANT = "RspDoesntExist";
-/**
+/*
* Copyright (c) 2018 Inocybe Inc. and others. All rights reserved.
*
* 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.sfc.statistics.testutils;
import static com.google.common.base.Preconditions.checkState;
-/**
+/*
* Copyright (c) 2018 Inocybe Inc. and others. All rights reserved.
*
* 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.sfc.statistics.testutils;
import static org.junit.Assert.assertEquals;
* 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.sfc.tacker.dto;
import com.google.gson.annotations.SerializedName;
private String failurePolicy;
// used by GSON
- private Attributes() {}
+ private Attributes() {
+
+ }
private Attributes(AttributesBuilder attributesBuilder) {
this.serviceType = attributesBuilder.getServiceType();
* 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.sfc.tacker.dto;
public final class Auth {
private PasswordCredentials passwordCredentials;
// used by GSON
- private Auth() {}
+ private Auth() {
+
+ }
private Auth(AuthBuilder builder) {
this.tenantName = builder.getTenantName();
* 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.sfc.tacker.dto;
public class Error {
private String detail;
// used by GSON
- private Error() {}
+ private Error() {
+
+ }
public Error(ErrorBuilder builder) {
this.message = builder.getMessage();
* 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.sfc.tacker.dto;
public class PasswordCredentials {
private String password;
// used by GSON
- private PasswordCredentials() {}
+ private PasswordCredentials() {
+
+ }
/**
* Constructor for PasswordCredential class with two parameters.
* 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.sfc.tacker.dto;
import com.google.gson.annotations.SerializedName;
private Error tackerError;
// used by GSON
- private TackerError() {}
+ private TackerError() {
+
+ }
public TackerError(Error err) {
this.tackerError = err;
* 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.sfc.tacker.dto;
public final class TackerRequest {
private Vnf vnf;
// used by GSON
- private TackerRequest() {}
+ private TackerRequest() {
+
+ }
private TackerRequest(TackerRequestBuilder builder) {
auth = builder.getAuth();
* 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.sfc.tacker.dto;
public final class TackerResponse {
private Vnf vnf;
// used by GSON
- private TackerResponse() {}
+ private TackerResponse() {
+
+ }
private TackerResponse(TackerResponseBuilder builder) {
vnf = builder.getVnf();
* 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.sfc.tacker.dto;
public final class Tenant {
private String name;
// used by GSON
- private Tenant() {}
+ private Tenant() {
+
+ }
private Tenant(TenantBuilder builder) {
this.description = builder.getDescription();
* 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.sfc.tacker.dto;
import com.google.gson.annotations.SerializedName;
private String[] auditIds;
// used by GSON
- private Token() {}
+ private Token() {
+
+ }
private Token(TokenBuilder builder) {
this.issuedAt = builder.issuedAt;
* 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.sfc.tacker.dto;
import com.google.gson.annotations.SerializedName;
private String vnfdId;
// used by GSON
- private Vnf() {}
+ private Vnf() {
+
+ }
private Vnf(VnfBuilder builder) {
status = builder.getStatus();