public final class AnnotationKeys extends Object
Number of the annotation keys have been deprecated as the use of annotations is being phased out and instead network configuration subsystem is being phased-in for majority of model meta-data.
Modifier and Type | Field and Description |
---|---|
static String |
ADMIN_STATE
Annotation key for the admin state.
|
static String |
BANDWIDTH
Annotation key for bandwidth.
|
static String |
CHANNEL_ID
Annotation key for the channel id.
|
static String |
DRIVER
Annotation key for the device driver name.
|
static String |
DURABLE
Annotation key for durable links.
|
static String |
GRID_X
Annotation key for grid-X (e.g.
|
static String |
GRID_Y
Annotation key for grid-Y (e.g.
|
static String |
LATENCY
Annotation key for latency.
|
static String |
LATITUDE
Annotation key for latitude (e.g.
|
static String |
LAYER
Annotation key for the protocol layer.
|
static String |
LOC_TYPE
Annotation key for UI location type of device/host
(either 'geo' or 'grid').
|
static String |
LONGITUDE
Annotation key for longitude (e.g.
|
static String |
MANAGEMENT_ADDRESS
Annotation key for the management address.
|
static String |
METRIC
Annotation key for link metric; used by
MetricLinkWeight function. |
static String |
NAME
Annotation key for instance name.
|
static String |
OPTICAL_WAVES
Annotation key for the number of optical waves.
|
static String |
OWNER
Annotation key for device owner.
|
static String |
PASSWORD
Annotation key for the password.
|
static String |
PORT_IN
Annotation key for the optical channel receiving/in port (RX).
|
static String |
PORT_MAC
Annotation key for the port mac.
|
static String |
PORT_NAME
Annotation key for the port name.
|
static String |
PORT_OUT
Annotation key for the optical channel port transmitting/out port (TX).
|
static String |
PROTECTED
Link annotation key to express that a Link
is backed by underlying protection mechanism.
|
static String |
PROTOCOL
Annotation key for southbound protocol.
|
static String |
RACK_ADDRESS
Annotation key for device location.
|
static String |
REST_SERVER
Annotation key for REST server identifier.
|
static String |
ROUTER_ID
Annotation key for the router ID.
|
static String |
SSHKEY
Annotation key for the sshkey.
|
static String |
STATIC_LAMBDA
Annotation key for the static lambda.
|
static String |
STATIC_PORT
Annotation key for the static port.
|
static String |
TYPE
Deprecated.
since Cardinal
|
static String |
UI_TYPE
Annotation key for UI type (the glyph ID for rendering).
|
static String |
USERNAME
Annotation key for the username.
|
Modifier and Type | Method and Description |
---|---|
static double |
getAnnotatedValue(Annotated annotated,
String key)
Returns the value annotated object for the specified annotation key.
|
public static final String NAME
@Deprecated public static final String TYPE
public static final String UI_TYPE
public static final String LOC_TYPE
public static final String LATITUDE
public static final String LONGITUDE
public static final String GRID_Y
public static final String GRID_X
public static final String PROTOCOL
public static final String DRIVER
public static final String DURABLE
public static final String METRIC
MetricLinkWeight
function.public static final String LATENCY
public static final String BANDWIDTH
public static final String OPTICAL_WAVES
public static final String PORT_NAME
public static final String PORT_IN
public static final String PORT_OUT
public static final String PORT_MAC
public static final String ADMIN_STATE
public static final String ROUTER_ID
public static final String STATIC_LAMBDA
public static final String STATIC_PORT
public static final String RACK_ADDRESS
public static final String OWNER
public static final String CHANNEL_ID
public static final String MANAGEMENT_ADDRESS
public static final String USERNAME
public static final String PASSWORD
public static final String PROTECTED
public static final String REST_SERVER
public static final String SSHKEY
public static final String LAYER
public static double getAnnotatedValue(Annotated annotated, String key)
annotated
- annotated object whose annotated value is obtainedkey
- key of annotation