Package org.onosproject.net
Class AnnotationKeys
- java.lang.Object
- 
- org.onosproject.net.AnnotationKeys
 
- 
 public final class AnnotationKeys extends Object Collection of keys for annotation.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. 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringADMIN_STATEAnnotation key for the admin state.static StringAVAILABILITYAnnotation key for availability.static StringBANDWIDTHAnnotation key for bandwidth.static StringCHANNEL_IDAnnotation key for the channel id.static StringCONNECTION_TYPEAnnotation key for UI connection type (the style for host link rendering).static StringDATAPATH_DESCRIPTIONAnnotation key for the datapath description.static StringDELAYAnnotation key for delay.static StringDRIVERAnnotation key for the device driver name.static StringDURABLEAnnotation key for durable links.static StringFLAPPINGAnnotation key for flapping.static StringGRID_XAnnotation key for grid-X (e.g.static StringGRID_YAnnotation key for grid-Y (e.g.static StringJITTERAnnotation key for jitter.static StringLATENCYAnnotation key for latency.static StringLATITUDEAnnotation key for latitude (e.g.static StringLAYERAnnotation key for the protocol layer.static StringLOC_TYPEAnnotation key for UI location type of device/host (either 'geo' or 'grid').static StringLONGITUDEAnnotation key for longitude (e.g.static StringLOSSAnnotation key for loss.static StringMANAGEMENT_ADDRESSAnnotation key for the management address.static StringMETEREDAnnotation key for identifying a metered link.static StringMETERED_USAGEAnnotation key for data usage on a metered link.static StringMETRICAnnotation key for link metric; used byMetricLinkWeightfunction.static StringNAMEAnnotation key for instance name.static StringOPTICAL_WAVESAnnotation key for the number of optical waves.static StringOWNERAnnotation key for device owner.static StringPASSWORDAnnotation key for the password.static StringPORT_INAnnotation key for the optical channel receiving/in port (RX).static StringPORT_MACAnnotation key for the port mac.static StringPORT_NAMEAnnotation key for the port name.static StringPORT_OUTAnnotation key for the optical channel port transmitting/out port (TX).static StringPROTECTEDLink annotation key to express that a Link is backed by underlying protection mechanism.static StringPROTOCOLAnnotation key for southbound protocol.static StringRACK_ADDRESSAnnotation key for device location.static StringREST_SERVERAnnotation key for REST server identifier.static StringROUTER_IDAnnotation key for the router ID.static StringSSHKEYAnnotation key for the sshkey.static StringSTATIC_LAMBDAAnnotation key for the static lambda.static StringSTATIC_PORTAnnotation key for the static port.static StringTIERAnnotation key for identifying the tier ranking of a link.static StringTYPEDeprecated.since Cardinalstatic StringUI_TYPEAnnotation key for UI type (the glyph ID for rendering).static StringUSERNAMEAnnotation key for the username.
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static doublegetAnnotatedValue(Annotated annotated, String key)Returns the value annotated object for the specified annotation key.
 
- 
- 
- 
Field Detail- 
NAMEpublic static final String NAME Annotation key for instance name.- See Also:
- Constant Field Values
 
 - 
TYPE@Deprecated public static final String TYPE Deprecated.since CardinalAnnotation key for instance type (e.g. host type).- See Also:
- Constant Field Values
 
 - 
UI_TYPEpublic static final String UI_TYPE Annotation key for UI type (the glyph ID for rendering).- See Also:
- Constant Field Values
 
 - 
CONNECTION_TYPEpublic static final String CONNECTION_TYPE Annotation key for UI connection type (the style for host link rendering).- See Also:
- Constant Field Values
 
 - 
LOC_TYPEpublic static final String LOC_TYPE Annotation key for UI location type of device/host (either 'geo' or 'grid').- See Also:
- Constant Field Values
 
 - 
LATITUDEpublic static final String LATITUDE Annotation key for latitude (e.g. latitude of device/host in a geo-layout).- See Also:
- Constant Field Values
 
 - 
LONGITUDEpublic static final String LONGITUDE Annotation key for longitude (e.g. longitude of device/host in a geo-layout).- See Also:
- Constant Field Values
 
 - 
GRID_Ypublic static final String GRID_Y Annotation key for grid-Y (e.g. y-coordinate of device/host in a grid-layout).- See Also:
- Constant Field Values
 
 - 
GRID_Xpublic static final String GRID_X Annotation key for grid-X (e.g. x-coordinate of device/host in a grid-layout).- See Also:
- Constant Field Values
 
 - 
PROTOCOLpublic static final String PROTOCOL Annotation key for southbound protocol.- See Also:
- Constant Field Values
 
 - 
DRIVERpublic static final String DRIVER Annotation key for the device driver name.- See Also:
- Constant Field Values
 
 - 
DURABLEpublic static final String DURABLE Annotation key for durable links.- See Also:
- Constant Field Values
 
 - 
METRICpublic static final String METRIC Annotation key for link metric; used byMetricLinkWeightfunction.- See Also:
- Constant Field Values
 
 - 
LATENCYpublic static final String LATENCY Annotation key for latency. The value of this key is expected to be latency in nanosecond.- See Also:
- Constant Field Values
 
 - 
BANDWIDTHpublic static final String BANDWIDTH Annotation key for bandwidth. The value for this key is interpreted as Mbps.- See Also:
- Constant Field Values
 
 - 
OPTICAL_WAVESpublic static final String OPTICAL_WAVES Annotation key for the number of optical waves.- See Also:
- Constant Field Values
 
 - 
PORT_NAMEpublic static final String PORT_NAME Annotation key for the port name.- See Also:
- Constant Field Values
 
 - 
PORT_INpublic static final String PORT_IN Annotation key for the optical channel receiving/in port (RX).- See Also:
- Constant Field Values
 
 - 
PORT_OUTpublic static final String PORT_OUT Annotation key for the optical channel port transmitting/out port (TX).- See Also:
- Constant Field Values
 
 - 
PORT_MACpublic static final String PORT_MAC Annotation key for the port mac.- See Also:
- Constant Field Values
 
 - 
ADMIN_STATEpublic static final String ADMIN_STATE Annotation key for the admin state. The value of this key is expected to be "enabled" or "disabled"- See Also:
- Constant Field Values
 
 - 
ROUTER_IDpublic static final String ROUTER_ID Annotation key for the router ID.- See Also:
- Constant Field Values
 
 - 
STATIC_LAMBDApublic static final String STATIC_LAMBDA Annotation key for the static lambda.- See Also:
- Constant Field Values
 
 - 
STATIC_PORTpublic static final String STATIC_PORT Annotation key for the static port.- See Also:
- Constant Field Values
 
 - 
RACK_ADDRESSpublic static final String RACK_ADDRESS Annotation key for device location.- See Also:
- Constant Field Values
 
 - 
OWNERpublic static final String OWNER Annotation key for device owner.- See Also:
- Constant Field Values
 
 - 
CHANNEL_IDpublic static final String CHANNEL_ID Annotation key for the channel id.- See Also:
- Constant Field Values
 
 - 
MANAGEMENT_ADDRESSpublic static final String MANAGEMENT_ADDRESS Annotation key for the management address.- See Also:
- Constant Field Values
 
 - 
USERNAMEpublic static final String USERNAME Annotation key for the username.- See Also:
- Constant Field Values
 
 - 
PASSWORDpublic static final String PASSWORD Annotation key for the password.- See Also:
- Constant Field Values
 
 - 
PROTECTEDpublic static final String PROTECTED Link annotation key to express that a Link is backed by underlying protection mechanism.- See Also:
- Constant Field Values
 
 - 
REST_SERVERpublic static final String REST_SERVER Annotation key for REST server identifier.- See Also:
- Constant Field Values
 
 - 
SSHKEYpublic static final String SSHKEY Annotation key for the sshkey.- See Also:
- Constant Field Values
 
 - 
LAYERpublic static final String LAYER Annotation key for the protocol layer.- See Also:
- Constant Field Values
 
 - 
JITTERpublic static final String JITTER Annotation key for jitter. The value of this key is expected to be jitter in seconds- See Also:
- Constant Field Values
 
 - 
DELAYpublic static final String DELAY Annotation key for delay. The value of this key is expected to be delay in seconds- See Also:
- Constant Field Values
 
 - 
LOSSpublic static final String LOSS Annotation key for loss. The value of this key is expected to be loss in percentage.- See Also:
- Constant Field Values
 
 - 
AVAILABILITYpublic static final String AVAILABILITY Annotation key for availability. The value of this key is expected to be availability as a percentage- See Also:
- Constant Field Values
 
 - 
FLAPPINGpublic static final String FLAPPING Annotation key for flapping. The value of this key is expected to be a subjective percentage for flapping- See Also:
- Constant Field Values
 
 - 
METEREDpublic static final String METERED Annotation key for identifying a metered link. The value of this key is expected to be a boolean for metered as true/false.- See Also:
- Constant Field Values
 
 - 
METERED_USAGEpublic static final String METERED_USAGE Annotation key for data usage on a metered link. The value of this key is expected to be a percentage of the data available within the plan.- See Also:
- Constant Field Values
 
 - 
TIERpublic static final String TIER Annotation key for identifying the tier ranking of a link. Links with a lower tier would be selected in the path over links with a higher tier. The value of this key is expected to be a number that represents the tier value.- See Also:
- Constant Field Values
 
 - 
DATAPATH_DESCRIPTIONpublic static final String DATAPATH_DESCRIPTION Annotation key for the datapath description. Provides a human readable description of a given datapath. Used, for instance, when an Openflow switch connects to the controller, in the response to the OFPMP_DESC request- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getAnnotatedValuepublic static double getAnnotatedValue(Annotated annotated, String key) Returns the value annotated object for the specified annotation key. The annotated value is expected to be String that can be parsed as double. If parsing fails, the returned value will be 1.0.- Parameters:
- annotated- annotated object whose annotated value is obtained
- key- key of annotation
- Returns:
- double value of annotated object for the specified key
 
 
- 
 
-