|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISwitchDriverRegistry
Maintain a registry for SwitchDrivers. Drivers can register with the registry and a user can get IOFSwitch instances based on the switch's OFDescriptionStatistics. A driver registers itself by specifying a prefix string of the switch's manufacturer description. When a user request an IOFSwitch instance the registry matches the manufacturer description of the switch against the prefixes in the registry. See getOFSwitchInstance() for a description of the lookup contract
Method Summary | |
---|---|
void |
addSwitchDriver(java.lang.String manufacturerDescriptionPrefix,
IOFSwitchDriver driver)
Register an IOFSwitchDriver with the registry |
IOFSwitch |
getOFSwitchInstance(OFDescriptionStatistics description)
Return an IOFSwitch instance according to the description stats. |
Method Detail |
---|
void addSwitchDriver(java.lang.String manufacturerDescriptionPrefix, IOFSwitchDriver driver)
manufacturerDescriptionPrefix
- Register the given prefix
with the driver.driver
- A IOFSwitchDriver instance to handle IOFSwitch instaniation
for the given manufacturer description prefix
java.lang.IllegalStateException
- If the the manufacturer description is
already registered
NullPointerExeption
- if manufacturerDescriptionPrefix is null
NullPointerExeption
- if driver is nullIOFSwitch getOFSwitchInstance(OFDescriptionStatistics description)
description
- The OFDescriptionStatistics for which to return an
IOFSwitch implementation
java.lang.NullPointerException
- If the OFDescriptionStatistics or any
of its members is null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |