* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
import com.google.common.collect.ClassToInstanceMap;
import com.google.common.collect.ImmutableClassToInstanceMap;
import com.google.common.collect.ClassToInstanceMap;
import com.google.common.collect.ImmutableClassToInstanceMap;
import org.opendaylight.mdsal.dom.api.DOMActionResult;
import org.opendaylight.mdsal.dom.api.DOMActionService;
import org.opendaylight.mdsal.dom.api.DOMActionServiceExtension;
import org.opendaylight.mdsal.dom.api.DOMActionResult;
import org.opendaylight.mdsal.dom.api.DOMActionService;
import org.opendaylight.mdsal.dom.api.DOMActionServiceExtension;
import org.opendaylight.yangtools.yang.data.api.schema.ContainerNode;
import org.opendaylight.yangtools.yang.model.api.SchemaContext;
import org.opendaylight.yangtools.yang.model.api.SchemaPath;
import org.opendaylight.yangtools.yang.data.api.schema.ContainerNode;
import org.opendaylight.yangtools.yang.model.api.SchemaContext;
import org.opendaylight.yangtools.yang.model.api.SchemaPath;
* transforms replied NETCONF message to action result, and using {@link RemoteDeviceCommunicator} that is responsible
* for sending of built RPCs to NETCONF client.
*/
* transforms replied NETCONF message to action result, and using {@link RemoteDeviceCommunicator} that is responsible
* for sending of built RPCs to NETCONF client.
*/
- Preconditions.checkNotNull(schemaPath);
- Preconditions.checkNotNull(dataTreeIdentifier);
- Preconditions.checkNotNull(input);
+ requireNonNull(schemaPath);
+ requireNonNull(dataTreeIdentifier);
+ requireNonNull(input);
messageTransformer.toActionRequest(schemaPath, dataTreeIdentifier, input), input.getNodeType());
messageTransformer.toActionRequest(schemaPath, dataTreeIdentifier, input), input.getNodeType());
if (netconfMessageRpcResult != null) {
return messageTransformer.toActionResult(schemaPath, netconfMessageRpcResult.getResult());
} else {
if (netconfMessageRpcResult != null) {
return messageTransformer.toActionResult(schemaPath, netconfMessageRpcResult.getResult());
} else {