private ChannelImpl(ChannelBuilder base) { if (base.getKey() == null) { this._key = new ChannelKey( base.getChannelId() );
public ChannelBuilder(Channel base) { if (base.getKey() == null) { this._key = new ChannelKey( base.getChannelId() );
/** * get the Channel identifier belongs to a particular topology * * @param topologyId * topology id * @param ChannelId * Channel id * @return Channel identifier */ public static InstanceIdentifier<Channel> getChannelIdentifier(String topologyId, String ChannelId) { return InstanceIdentifier.builder(UscTopology.class) .child(Topology.class, new TopologyKey(new TopologyId(topologyId))) .child(Channel.class, new ChannelKey(new ChannelId(ChannelId))).build(); }
long bytesIn, long bytesOut, List<ChannelAlarm> alarms, List<Session> sessions) { ChannelId channelId = new ChannelId(id); ChannelKey channelKey = new ChannelKey(channelId); SourceBuilder sourceBuilder = new SourceBuilder(); sourceBuilder.setSourceNode(source.getNodeId());