Make sure invokeOperation is set once
[controller.git] / opendaylight / adsal / web / root / src / main / java / org / opendaylight / controller / web / NodeBean.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.web;
9
10 import org.opendaylight.controller.sal.core.Node;
11
12 /**
13  * Information about a node connected to a controller to send to the UI frontend
14  * @author andrekim
15  */
16 public class NodeBean {
17     private final String node;
18     private final String description;
19
20     public NodeBean(Node node) {
21         this(node, node.toString());
22     }
23
24     public NodeBean(Node node, String description) {
25         this.node = node.toString();
26         this.description = description;
27     }
28 }