All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opendaylight.jsonrpc.provider.cluster.rpc.InvokeRpcResponse Maven / Gradle / Ivy

There is a newer version: 1.17.0
Show newest version
/*
 * Copyright (c) 2020 Lumina Networks, Inc. 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.jsonrpc.provider.cluster.rpc;

import java.io.Serializable;
import java.util.Collection;
import org.opendaylight.jsonrpc.provider.cluster.messages.PathAndDataMsg;
import org.opendaylight.yangtools.yang.common.RpcError;

/**
 * Response of RPC invocation.
 *
 * @author Richard Kosegi
 * @since Jul 13, 2020
 */
public class InvokeRpcResponse implements Serializable {
    private static final long serialVersionUID = 1L;
    private PathAndDataMsg data;
    private Collection errors;

    public InvokeRpcResponse(PathAndDataMsg data, Collection errors) {
        this.data = data;
        this.errors = errors;
    }

    public Collection getErrors() {
        return errors;
    }

    public PathAndDataMsg getData() {
        return data;
    }

    @Override
    public String toString() {
        return "InvokeRpcResponse [data=" + data + ", errors=" + errors + "]";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy