2 * Copyright (c) 2020 Ericsson India Global Services Pvt Ltd. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.openflowplugin.api.openflow;
10 import static java.util.Objects.requireNonNull;
12 import java.time.Instant;
13 import org.eclipse.jdt.annotation.NonNullByDefault;
14 import org.opendaylight.yangtools.concepts.Immutable;
17 public abstract class FlowGroupInfo implements Immutable {
18 private final Instant time = Instant.now();
19 private final FlowGroupStatus status;
21 protected FlowGroupInfo(final FlowGroupStatus status) {
22 this.status = requireNonNull(status);
25 public abstract String getId();
27 public abstract String getDescription();
29 public final FlowGroupStatus getStatus() {
33 public final Instant getInstantUTC() {