public ChannelBuilder setBytesIn(final java.lang.Long value) { if (value != null) { checkBytesInRange(value); } this._bytesIn = value; return this; }
public ChannelBuilder setBytesOut(final java.lang.Long value) { if (value != null) { checkBytesOutRange(value); } this._bytesOut = value; return this; }
public ChannelBuilder setChannelAlarms(final java.lang.Long value) { if (value != null) { checkChannelAlarmsRange(value); } this._channelAlarms = value; return this; }
DestinationBuilder destinationBuilder = new DestinationBuilder(); destinationBuilder.setDestNode(destination.getNodeId()); ChannelBuilder channelBuilder = new ChannelBuilder(); channelBuilder.setChannelId(channelId); channelBuilder.setKey(channelKey); channelBuilder.setChannelType(type); channelBuilder.setSource(sourceBuilder.build()); channelBuilder.setDestination(destinationBuilder.build()); channelBuilder.setBytesIn(bytesIn); channelBuilder.setBytesOut(bytesOut); channelBuilder.setCallHome(getCallHomeString(isCallHome)); channelBuilder.setChannelAlarms((long) alarms.size()); channelBuilder.setChannelAlarm(alarms); channelBuilder.setSessions((long) sessions.size()); channelBuilder.setSession(sessions); return channelBuilder.build();
private ChannelImpl(ChannelBuilder base) { if (base.getKey() == null) { this._key = new ChannelKey( base.getChannelId() ); this._channelId = base.getChannelId(); } else { this._key = base.getKey(); this._channelId = _key.getChannelId(); this._bytesIn = base.getBytesIn(); this._bytesOut = base.getBytesOut(); this._callHome = base.getCallHome(); this._channelAlarm = base.getChannelAlarm(); this._channelAlarms = base.getChannelAlarms(); this._channelType = base.getChannelType(); this._destination = base.getDestination(); this._session = base.getSession(); this._sessions = base.getSessions(); this._source = base.getSource(); switch (base.augmentation.size()) { case 0:
public ChannelBuilder setSessions(final java.lang.Long value) { if (value != null) { checkSessionsRange(value); } this._sessions = value; return this; }