Open Kilda Java Documentation
org.openkilda.floodlight.switchmanager.MeterPool Class Reference

Public Member Functions

synchronized Set< Integer > getMetersByFlow (final String flowId)
 
synchronized Set< Integer > getMetersBySwitch (final SwitchId switchId)
 
synchronized Integer allocate (final SwitchId switchId, final String flowId, Integer meterId)
 
synchronized Integer allocate (final SwitchId switchId, final String flowId)
 
synchronized Integer deallocate (final SwitchId switchId, final String flowId)
 

Detailed Description

Allocates and deallocates meter ids.

Definition at line 32 of file MeterPool.java.

Member Function Documentation

◆ allocate() [1/2]

synchronized Integer org.openkilda.floodlight.switchmanager.MeterPool.allocate ( final SwitchId  switchId,
final String  flowId,
Integer  meterId 
)

The method actually does allocate a method id, not previously allocated.

Parameters
switchIdswitch id.
flowIdflow id.
meterIdmeter id.
Returns
allocated meter id.

Definition at line 58 of file MeterPool.java.

◆ allocate() [2/2]

synchronized Integer org.openkilda.floodlight.switchmanager.MeterPool.allocate ( final SwitchId  switchId,
final String  flowId 
)

The method actually does allocate a method id, not previously allocated.

Definition at line 75 of file MeterPool.java.

◆ deallocate()

synchronized Integer org.openkilda.floodlight.switchmanager.MeterPool.deallocate ( final SwitchId  switchId,
final String  flowId 
)

The method actually does de-allocate a method id, not previously de-allocated.

Definition at line 88 of file MeterPool.java.

◆ getMetersByFlow()

synchronized Set<Integer> org.openkilda.floodlight.switchmanager.MeterPool.getMetersByFlow ( final String  flowId)

Definition at line 41 of file MeterPool.java.

◆ getMetersBySwitch()

synchronized Set<Integer> org.openkilda.floodlight.switchmanager.MeterPool.getMetersBySwitch ( final SwitchId  switchId)

Definition at line 45 of file MeterPool.java.


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