public abstract class AbstractNeutronInterface<T extends org.opendaylight.yangtools.yang.binding.DataObject,U extends org.opendaylight.yangtools.yang.binding.ChildOf<? extends org.opendaylight.yangtools.yang.binding.DataObject> & org.opendaylight.yangtools.yang.binding.Augmentable<U>,S extends INeutronObject> extends Object implements AutoCloseable, INeutronCRUD<S>
Modifier and Type | Method and Description |
---|---|
boolean |
add(S input)
Applications call this interface method to add a Neutron object to the
concurrent map
|
protected boolean |
addMd(S neutronObject) |
void |
close() |
protected abstract org.opendaylight.yangtools.yang.binding.InstanceIdentifier<U> |
createInstanceIdentifier() |
protected abstract org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> |
createInstanceIdentifier(T item) |
boolean |
exists(String uuid)
Applications call this interface method to determine if a particular
Neutron object exists
|
protected abstract S |
fromMd(T dataObject) |
S |
get(String uuid)
Applications call this interface method to return if a particular
Neutron object exists
|
List<S> |
getAll()
Applications call this interface method to return all Neutron objects
|
org.opendaylight.controller.md.sal.binding.api.DataBroker |
getDataBroker() |
protected abstract List<T> |
getDataObjectList(U dataObjects) |
boolean |
inUse(String uuid)
Applications call this interface method to determine if a Neutron object
is use
|
protected boolean |
overwrite(Object target,
Object delta) |
protected <T extends org.opendaylight.yangtools.yang.binding.DataObject> |
readMd(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path) |
boolean |
remove(String uuid)
Applications call this interface method to remove a Neutron object to the
concurrent map
|
protected boolean |
removeMd(T item) |
protected abstract T |
toMd(S neutronObject) |
protected abstract T |
toMd(String uuid) |
protected org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid |
toUuid(String uuid) |
boolean |
update(String uuid,
S delta)
Applications call this interface method to edit a Neutron object
|
protected boolean |
updateMd(S neutronObject) |
public org.opendaylight.controller.md.sal.binding.api.DataBroker getDataBroker()
protected abstract org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> createInstanceIdentifier(T item)
protected abstract org.opendaylight.yangtools.yang.binding.InstanceIdentifier<U> createInstanceIdentifier()
protected <T extends org.opendaylight.yangtools.yang.binding.DataObject> T readMd(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> path)
protected boolean addMd(S neutronObject)
protected boolean updateMd(S neutronObject)
protected boolean removeMd(T item)
protected org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid toUuid(String uuid)
public void close() throws Exception
close
in interface AutoCloseable
Exception
public boolean exists(String uuid)
INeutronCRUD
exists
in interface INeutronCRUD<S extends INeutronObject>
uuid
- UUID of the Neutron objectpublic S get(String uuid)
INeutronCRUD
get
in interface INeutronCRUD<S extends INeutronObject>
uuid
- UUID of the Neutron objectINeutronObject
OpenStack Neutron classpublic List<S> getAll()
INeutronCRUD
getAll
in interface INeutronCRUD<S extends INeutronObject>
public boolean add(S input)
INeutronCRUD
add
in interface INeutronCRUD<S extends INeutronObject>
input
- OpenStackNeutron objectpublic boolean remove(String uuid)
INeutronCRUD
remove
in interface INeutronCRUD<S extends INeutronObject>
uuid
- identifier for the neutron objectpublic boolean update(String uuid, S delta)
INeutronCRUD
update
in interface INeutronCRUD<S extends INeutronObject>
uuid
- identifier of the neutron objectdelta
- OpenStackNeutron object containing changes to applypublic boolean inUse(String uuid)
INeutronCRUD
inUse
in interface INeutronCRUD<S extends INeutronObject>
uuid
- identifier of the neutron objectCopyright © 2017 OpenDaylight. All rights reserved.