public class UscTopologyFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CALL_HOME_DISPLAY_STRING
the call home label string for UI
|
| Constructor and Description |
|---|
UscTopologyFactory() |
| Modifier and Type | Method and Description |
|---|---|
static Channel |
createChannel(Node source,
Node destination,
String id,
String type,
boolean isCallHome)
Builds a Channel for the provided source, destination, and id.
|
static Channel |
createChannel(Node source,
Node destination,
String id,
String type,
boolean isCallHome,
long bytesIn,
long bytesOut,
List<ChannelAlarm> alarms,
List<Session> sessions)
Builds a Channel for the provided source, destination, and id.
|
static ChannelAlarm |
createChannelAlram(String id,
String code,
String message)
Builds a Channel alarm Passes alarm attributes to AlarmBuilder to build a
alarm.
|
static Node |
createNode(String id,
String type)
Builds a node for the provided id.
|
static Session |
createSession(String sessionId,
String tpPort)
Builds a node for the provided id.
|
static Session |
createSession(String sessionId,
String tpPort,
long bytesIn,
long bytesOut,
List<SessionAlarm> alarms)
Builds a node for the provided id.
|
static SessionAlarm |
createSessionAlram(String id,
String code,
String message)
Builds a session alarm Passes alarm attributes to AlarmBuilder to build a
alarm.
|
static Topology |
createTopology(String id,
List<Node> nodes,
List<Channel> Channels)
Builds a topology for the provided id, nodes and Channels.
|
static String |
getCallHomeString(boolean isCallHome)
convert boolean to string of call home
|
static boolean |
isCallHome(String callHome)
convert String to boolean of call home
|
public static final String CALL_HOME_DISPLAY_STRING
public static Channel createChannel(Node source, Node destination, String id, String type, boolean isCallHome)
source - the source node of Channeldestination - the destination node of Channelid - the Channel idtype - the Channel typeisCallHome - if the Channel created by call home waypublic static Channel createChannel(Node source, Node destination, String id, String type, boolean isCallHome, long bytesIn, long bytesOut, List<ChannelAlarm> alarms, List<Session> sessions)
source - the source node of Channeldestination - the destination node of Channelid - the Channel idtype - the Channel typeisCallHome - if the Channel created by call home waybytesIn - Channel bytes in numberbytesOut - Channel bytes out numberalarms - the error list of Channelsessions - the session list of Channelpublic static String getCallHomeString(boolean isCallHome)
isCallHome - boolean value of call homepublic static boolean isCallHome(String callHome)
callHome - String value of call homepublic static Node createNode(String id, String type)
id - node idtype - node typepublic static Topology createTopology(String id, List<Node> nodes, List<Channel> Channels)
id - topology idnodes - node list of topologyChannels - Channel list of topologypublic static Session createSession(String sessionId, String tpPort)
sessionId - session idtpPort - the port of terminal point which related with the sessionpublic static Session createSession(String sessionId, String tpPort, long bytesIn, long bytesOut, List<SessionAlarm> alarms)
sessionId - session idtpPort - the port of terminal point which related with the sessionbytesIn - bytes in numberbytesOut - bytes out numberalarms - error listpublic static SessionAlarm createSessionAlram(String id, String code, String message)
id - error idcode - error codemessage - error messagepublic static ChannelAlarm createChannelAlram(String id, String code, String message)
id - error idcode - error codemessage - error messageCopyright © 2019 OpenDaylight. All rights reserved.