@Deprecated public final class Entity extends Object implements Serializable
The type describes the type of the Entity where examples of a type maybe "openflow" or "netconf" etc. An Entity type could be tied to how exactly an application shares and "owns" an entity. For example we may want an application which deals with the openflow entity to be assigned ownership of that entity based on a first come first served basis. On the other hand for netconf entity types we may want applications to gain ownership based on a load balancing approach. While this mechanism of assigning a ownership acquisition strategy is not finalized the intention is that the entity type will play a role in determining the strategy and thus should be put in place.
The identifier is a YangInstanceIdentifier. The reason for the choice of YangInstanceIdentifier is because it can easily be used to represent a data node. For example an inventory node represents a shared entity and it is best referenced by the YangInstanceIdentifier if the inventory node is stored in the data store.
Note that an entity identifier must conform to a valid yang schema. If there is no existing yang schema to represent an entity, the general-entity yang model can be used.
Constructor and Description |
---|
Entity(String type,
String entityName)
Deprecated.
Construct an Entity with an with a name.
|
Entity(String type,
org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier id)
Deprecated.
Construct an Entity with a YangInstanceIdentifier.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Deprecated.
|
org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier |
getId()
Deprecated.
|
String |
getType()
Deprecated.
|
int |
hashCode()
Deprecated.
|
String |
toString()
Deprecated.
|
public Entity(@Nonnull String type, @Nonnull org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier id)
type
- the type of the entityid
- the identifier of the entitypublic Entity(@Nonnull String type, @Nonnull String entityName)
type
- the type of the entityentityName
- the name of the entity used to construct a general-entity YangInstanceIdentifier@Nonnull public org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier getId()
Copyright © 2019 OpenDaylight. All rights reserved.