/* * Copyright (c) 2014 Cisco Systems, 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.controller.remote.rpc.messages; import com.google.common.base.Preconditions; import java.io.Serializable; import org.opendaylight.yangtools.yang.common.QName; public class ExecuteRpc implements Serializable { private static final long serialVersionUID = 1128904894827335676L; private final String inputCompositeNode; private final QName rpc; public ExecuteRpc(final String inputCompositeNode, final QName rpc) { Preconditions.checkNotNull(inputCompositeNode, "Composite Node input string should be present"); Preconditions.checkNotNull(rpc, "rpc Qname should not be null"); this.inputCompositeNode = inputCompositeNode; this.rpc = rpc; } public String getInputCompositeNode() { return inputCompositeNode; } public QName getRpc() { return rpc; } }