public class DeviceManager extends Object
Modifier and Type | Method and Description |
---|---|
void |
addDevice(String nodeId,
Long deviceId,
String ip,
Integer port,
String runtimeFile,
String configFile) |
Optional<P4Device> |
findConfiguredDevice(String nodeId) |
Optional<P4Device> |
findDevice(String nodeId) |
static DeviceManager |
getInstance() |
boolean |
isDeviceExist(String nodeId,
String ip,
Integer port,
Long deviceId) |
boolean |
isNodeExist(String nodeId) |
boolean |
isTargetExist(String ip,
Integer port,
Long deviceId) |
List<String> |
queryNodes() |
void |
removeDevice(String nodeId) |
public static DeviceManager getInstance()
public boolean isNodeExist(String nodeId)
public void addDevice(String nodeId, Long deviceId, String ip, Integer port, String runtimeFile, String configFile) throws IOException
IOException
public void removeDevice(String nodeId)
Copyright © 2018 OpenDaylight. All rights reserved.