Open Kilda Java Documentation
org.openkilda.messaging.model.rule.MeterInstall Class Reference
Inheritance diagram for org.openkilda.messaging.model.rule.MeterInstall:
org.openkilda.messaging.model.rule.MeterDelete org.openkilda.messaging.model.rule.Rule org.openkilda.messaging.BaseMessage org.openkilda.messaging.model.rule.MeterUpdate

Public Member Functions

 MeterInstall ()
 
 MeterInstall (@JsonProperty(RuleConstants.FLOW_ID) String flowId, @JsonProperty(RuleConstants.COOKIE) int cookie, @JsonProperty(RuleConstants.SWITCH_ID) String switchId, @JsonProperty(RuleConstants.METER_ID) int meterId, @JsonProperty(RuleConstants.BANDWIDTH) int bandwidth)
 
int getBandwidth ()
 
void setBandwidth (int bandwidth)
 
boolean equals (Object object)
 
int hashCode ()
 
String toString ()
 
- Public Member Functions inherited from org.openkilda.messaging.model.rule.MeterDelete
 MeterDelete ()
 
 MeterDelete (@JsonProperty(RuleConstants.FLOW_ID) String flowId, @JsonProperty(RuleConstants.COOKIE) int cookie, @JsonProperty(RuleConstants.SWITCH_ID) String switchId, @JsonProperty(RuleConstants.METER_ID) int meterId)
 
int getMeterId ()
 
void setMeterId (int meterId)
 
boolean equals (Object object)
 
int hashCode ()
 
String toString ()
 
- Public Member Functions inherited from org.openkilda.messaging.model.rule.Rule
 Rule ()
 
 Rule (@JsonProperty(RuleConstants.FLOW_ID) String flowId, @JsonProperty(RuleConstants.COOKIE) int cookie, @JsonProperty(RuleConstants.SWITCH_ID) String switchId)
 
String getFlowId ()
 
void setFlowId (String flowId)
 
String getSwitchId ()
 
void setSwitchId (String switchId)
 
int getCookie ()
 
void setCookie (int cookie)
 
boolean equals (Object object)
 
int hashCode ()
 
String toString ()
 
- Public Member Functions inherited from org.openkilda.messaging.BaseMessage
 BaseMessage (@JsonProperty(TIMESTAMP) final long timestamp)
 
 BaseMessage ()
 
long getTimestamp ()
 
void setTimestamp (long timestamp)
 

Additional Inherited Members

- Static Public Member Functions inherited from org.openkilda.messaging.BaseMessage
static final< T extends BaseMessage > T getMessage (String json, Class< T > type) throws java.io.IOException
 
static final< T extends BaseMessage > T tryGetMessage (String json, Class< T > type)
 
- Protected Attributes inherited from org.openkilda.messaging.model.rule.MeterDelete
int meterId
 
- Protected Attributes inherited from org.openkilda.messaging.model.rule.Rule
String flowId
 
int cookie
 
String switchId
 
- Protected Attributes inherited from org.openkilda.messaging.BaseMessage
long timestamp = 0L
 

Detailed Description

Represents rule entity for METER_MOD/INSTALL OpenFlow command.

Definition at line 29 of file MeterInstall.java.

Constructor & Destructor Documentation

◆ MeterInstall() [1/2]

org.openkilda.messaging.model.rule.MeterInstall.MeterInstall ( )

Default constructor.

Definition at line 44 of file MeterInstall.java.

◆ MeterInstall() [2/2]

org.openkilda.messaging.model.rule.MeterInstall.MeterInstall ( @JsonProperty(RuleConstants.FLOW_ID) String  flowId,
@JsonProperty(RuleConstants.COOKIE) int  cookie,
@JsonProperty(RuleConstants.SWITCH_ID) String  switchId,
@JsonProperty(RuleConstants.METER_ID) int  meterId,
@JsonProperty(RuleConstants.BANDWIDTH) int  bandwidth 
)

Instance constructor.

Parameters
flowIdflow id
switchIdswitch id
cookiecookie
meterIdmeter id
bandwidthmeter bandwidth

Definition at line 56 of file MeterInstall.java.

Member Function Documentation

◆ equals()

boolean org.openkilda.messaging.model.rule.MeterInstall.equals ( Object  object)

Definition at line 87 of file MeterInstall.java.

◆ getBandwidth()

int org.openkilda.messaging.model.rule.MeterInstall.getBandwidth ( )

Gets bandwidth.

Returns
bandwidth

Definition at line 70 of file MeterInstall.java.

◆ hashCode()

int org.openkilda.messaging.model.rule.MeterInstall.hashCode ( )

Definition at line 107 of file MeterInstall.java.

◆ setBandwidth()

void org.openkilda.messaging.model.rule.MeterInstall.setBandwidth ( int  bandwidth)

Sets bandwidth.

Parameters
bandwidthbandwidth

Definition at line 79 of file MeterInstall.java.

◆ toString()

String org.openkilda.messaging.model.rule.MeterInstall.toString ( )

Definition at line 115 of file MeterInstall.java.


The documentation for this class was generated from the following file: