* BGPOperationalStateUtils reads Operational state from DS and prints to stream.
*/
public final class BGPOperationalStateUtils {
-
- static final InstanceIdentifier<Protocols> PROTOCOLS_IID;
private static final Logger LOG = LoggerFactory.getLogger(BGPOperationalStateUtils.class);
-
- static {
- PROTOCOLS_IID = InstanceIdentifier.create(NetworkInstances.class)
- .child(NetworkInstance.class, new NetworkInstanceKey("global-bgp")).child(Protocols.class);
- }
+ static final InstanceIdentifier<Protocols> PROTOCOLS_IID = InstanceIdentifier.create(NetworkInstances.class)
+ .child(NetworkInstance.class, new NetworkInstanceKey("global-bgp")).child(Protocols.class);
private BGPOperationalStateUtils() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
import org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.rev151009.bgp.top.bgp.Global;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.openconfig.extensions.rev180329.GlobalAfiSafiStateAugmentation;
-//GlobalStateCliUtils sends Global Operational State to PrintStream
+// GlobalStateCliUtils sends Global Operational State to PrintStream
final class GlobalStateCliUtils {
-
private GlobalStateCliUtils() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
-
static void displayRibOperationalState(@NonNull final String ribId, @NonNull final Global global,
@NonNull final PrintStream stream) {
final State globalState = global.getState();
//NeighborStateCliUtils sends Neighbor Operational State to PrintStream
final class NeighborStateCliUtils {
private NeighborStateCliUtils() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
static void displayNeighborOperationalState(@NonNull final String neighborId,
import org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.rev151009.bgp.peer.group.PeerGroup;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.openconfig.extensions.rev180329.PeerGroupStateAugmentation;
-//PeerGroupStateCliUtils sends Peer Group Operational State to PrintStream
+// PeerGroupStateCliUtils sends Peer Group Operational State to PrintStream
final class PeerGroupStateCliUtils {
private PeerGroupStateCliUtils() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
static void displayPeerOperationalState(@NonNull final List<PeerGroup> peerGroupList,
*/
public final class IpAddressUtil {
private IpAddressUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
* Utility class for of CNextHop serialization and parsing.
*/
public final class NextHopUtil {
-
private NextHopUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
private static final String SEPARATOR = ":";
private RouteDistinguisherUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
public final class ESIActivator {
private ESIActivator() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static void registerEsiTypeParsers(final List<Registration> regs) {
"router-id").intern());
private EsiModelUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
static Uint32 extractLD(final ContainerNode cont) {
public final class NlriActivator {
private NlriActivator() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static void registerNlriParsers(final List<Registration> regs) {
"mpls-label2").intern());
private NlriModelUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
static RouteDistinguisher extractRouteDistinguisher(final DataContainerNode<? extends PathArgument> evpn) {
public static final RouteDistinguisher RD = RouteDistinguisherBuilder.getDefaultInstance(RD_MODEL);
private EvpnTestUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static DataContainerNodeBuilder<NodeIdentifier, ContainerNode> createContBuilder(
import org.opendaylight.protocol.util.Values;
public final class Util {
-
private Util() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.protocol.bgp.l3vpn.mcast.nlri;
import static org.opendaylight.protocol.util.Ipv6Util.IPV6_BITS_LENGTH;
public final class L3vpnMcastNlriSerializer {
private L3vpnMcastNlriSerializer() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
static List<L3vpnMcastDestination> extractDest(final ByteBuf nlri, final boolean addPath) {
final class VpnDestinationUtil {
private VpnDestinationUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
static List<VpnDestination> parseNlri(
import org.slf4j.LoggerFactory;
final class TeLspAttributesParser {
-
private static final Logger LOG = LoggerFactory.getLogger(TeLspAttributesParser.class);
//TBD BY IANA
private static final int MAGIC_NUMBER = 99;
private TeLspAttributesParser() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
static LinkStateAttribute parseTeLspAttributes(final RSVPTeObjectRegistry registry, final ByteBuf attributes)
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.protocol.bgp.mvpn.impl;
import java.util.List;
*/
public final class NlriActivator {
private NlriActivator() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static void registerNlriParsers(final List<Registration> regs) {
*/
final class TunnelIdentifierActivator {
private TunnelIdentifierActivator() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
static void registerTunnelIdentifierHandlers(final BGPExtensionProviderContext context,
private static final String EMPTY_SEPARATOR = "";
private OpaqueUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static boolean serializeOpaque(final Opaque opaque, final ByteBuf byteBuf) {
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.protocol.bgp.mvpn.impl.attributes.tunnel.identifier;
import io.netty.buffer.ByteBuf;
final class PAddressPMulticastGroupUtil {
private PAddressPMulticastGroupUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
static void serializeIpAddress(final IpAddress ipAddress, final ByteBuf byteBuf) {
final IpAddress pMulticastGroup = parseIpAddress(ipLength, buffer);
return new BidirPimTreeBuilder().setPAddress(pSenderAddress).setPMulticastGroup(pMulticastGroup).build();
}
-
}
*/
final class CMulticastUtil {
private CMulticastUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
static CMulticast parseCMulticastGrouping(final ByteBuf buffer) {
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.protocol.bgp.mvpn.impl.nlri;
import io.netty.buffer.ByteBuf;
*/
public final class Ipv4NlriHandler {
private Ipv4NlriHandler() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
static DestinationMvpnIpv4AdvertizedCase parseIpv4ReachNlri(
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.protocol.bgp.mvpn.impl.nlri;
import io.netty.buffer.ByteBuf;
*/
public final class Ipv6NlriHandler {
private Ipv6NlriHandler() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
static DestinationMvpnIpv6AdvertizedCase parseIpv6ReachNlri(
*/
final class MulticastGroupOpaqueUtil {
private MulticastGroupOpaqueUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
static MulticastGroup multicastGroupForByteBuf(final ByteBuf buffer) {
private static final Uint8 EXTENDED_TYPE = Uint8.MAX_VALUE;
private PMSITunnelAttributeHandlerTestUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
private static PAddressPMulticastGroup buildPAddressPMulticastGroup() {
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.protocol.bgp.route.targetcontrain.impl.activators;
import java.util.List;
*/
public final class NlriActivator {
private NlriActivator() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static void registerNlriParsers(final List<Registration> regs) {
regs.add(nlriRegistry.registerNlriParser(targetAS4OctetRouteHandler));
regs.add(nlriRegistry.registerNlriSerializer(targetAS4OctetRouteHandler));
}
-}
\ No newline at end of file
+}
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.protocol.bgp.route.targetcontrain.spi;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.route.target.constrain.rev180618.route.target.constrain.RouteTargetConstrainChoice;
public final class RouteTargetMembeshipUtil {
private RouteTargetMembeshipUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static RouteTarget getRT(final RouteTargetConstrainRoute route) {
final RouteTargetConstrainChoice rtc = route.getRouteTargetConstrainChoice();
- RouteTarget rt;
if (rtc instanceof RouteTargetConstrainDefaultCase) {
- rt = ((RouteTargetConstrainDefaultCase) rtc).getRouteTargetConstrainDefaultRoute();
+ return ((RouteTargetConstrainDefaultCase) rtc).getRouteTargetConstrainDefaultRoute();
} else if (rtc instanceof RouteTargetConstrainAs4ExtendedCommunityCase) {
- rt = ((RouteTargetConstrainAs4ExtendedCommunityCase) rtc).getAs4RouteTargetExtendedCommunity();
+ return ((RouteTargetConstrainAs4ExtendedCommunityCase) rtc).getAs4RouteTargetExtendedCommunity();
} else if (rtc instanceof RouteTargetConstrainIpv4RouteCase) {
- rt = ((RouteTargetConstrainIpv4RouteCase) rtc).getRouteTargetIpv4();
+ return ((RouteTargetConstrainIpv4RouteCase) rtc).getRouteTargetIpv4();
} else {
- rt = ((RouteTargetConstrainRouteCase) rtc).getRouteTargetExtendedCommunity();
+ return ((RouteTargetConstrainRouteCase) rtc).getRouteTargetExtendedCommunity();
}
- return rt;
}
}
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.yang.gen.v1.http.openconfig.net.yang.local.routing.rev151009;
+
import org.opendaylight.yang.gen.v1.http.openconfig.net.yang.local.routing.rev151009.LocalStaticConfig.NextHop;
import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress;
import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressBuilder;
/**
-*
-* Helper builder utility for {@code NextHop} union type.
-*
-*/
+ * Helper builder utility for {@code NextHop} union type.
+ */
public final class LocalStaticConfigNextHopBuilder {
-
private LocalStaticConfigNextHopBuilder() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static NextHop getDefaultInstance(final String defaultValue) {
}
}
}
-
}
private static final Pattern[] PATTERNS = CodeHelpers.compilePatterns(RouteDistinguisher.PATTERN_CONSTANTS);
private RouteDistinguisherBuilder() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static RouteDistinguisher getDefaultInstance(final String defaultValue) {
*/
final class BgpAttributeConditionsUtil {
private BgpAttributeConditionsUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
static boolean matchConditions(
public static final ClusterIdentifier CLUSTER = new ClusterIdentifier(IPV4);
private ExportAttributeTestUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
static final AsNumber AS = new AsNumber(Uint32.valueOf(65));
private ImportAttributeTestUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static Attributes createInput() {
public final class GlobalUtil {
private GlobalUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
private static final long TIMETICK_ROLLOVER_VALUE = UnsignedInteger.MAX_VALUE.longValue() + 1;
private NeighborUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
*/
public final class PeerGroupUtil {
private PeerGroupUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNodes;
public final class AsNumberUtil {
-
private AsNumberUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev180329.open.message.bgp.parameters.optional.capabilities.c.parameters.BgpExtendedMessageCapabilityBuilder;
public final class BgpExtendedMessageUtil {
-
public static final CParameters EXTENDED_MESSAGE_CAPABILITY =
new CParametersBuilder().setBgpExtendedMessageCapability(new BgpExtendedMessageCapabilityBuilder()
.build()).build();
private BgpExtendedMessageUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.protocol.bgp.parser.impl.message.update.extended.communities.route.target;
import io.netty.buffer.ByteBuf;
*/
public final class As4RouteTargetExtendedHandler {
private As4RouteTargetExtendedHandler() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static As4RouteTargetExtendedCommunity parse(final ByteBuf body) {
final ByteBuf body) {
FourOctAsCommonECUtil.serializeCommon(as4RouteTargetExtendedCommunity.getAs4SpecificCommon(), body);
}
-}
\ No newline at end of file
+}
*/
public final class RouteTargetExtendedCommunityHandler {
private RouteTargetExtendedCommunityHandler() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static RouteTargetExtendedCommunity parse(final ByteBuf buffer) {
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.protocol.bgp.parser.impl.message.update.extended.communities.route.target;
import io.netty.buffer.ByteBuf;
*/
public final class RouteTargetIpv4Handler {
private RouteTargetIpv4Handler() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static void serialize(final RouteTargetIpv4 routeTarget, final ByteBuf byteAggregator) {
import io.netty.buffer.ByteBuf;
public final class BgpPrefixSidTlvUtil {
-
private BgpPrefixSidTlvUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.BgpTableType;
public final class MultiPathSupportUtil {
-
private MultiPathSupportUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
import org.slf4j.LoggerFactory;
public final class MultiprotocolCapabilitiesUtil {
-
- private static final Logger LOG = LoggerFactory.getLogger(MultiprotocolCapabilitiesUtil.class);
-
public static final CParameters RR_CAPABILITY = new CParametersBuilder().addAugmentation(CParameters1.class,
new CParameters1Builder().setRouteRefreshCapability(new RouteRefreshCapabilityBuilder().build()).build())
.build();
+ private static final Logger LOG = LoggerFactory.getLogger(MultiprotocolCapabilitiesUtil.class);
private static final int RESERVED = 1;
private MultiprotocolCapabilitiesUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static void serializeMPAfiSafi(final AddressFamilyRegistry afiReg,
public static final PathId NON_PATH_ID = new PathId(NON_PATH_ID_VALUE);
private PathIdUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
public final class FourOctAsCommonECUtil {
private FourOctAsCommonECUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static As4SpecificCommon parseCommon(final ByteBuf body) {
public final class Inet4SpecificExtendedCommunityCommonUtil {
private Inet4SpecificExtendedCommunityCommonUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
-
public static Inet4SpecificExtendedCommunityCommon parseCommon(final ByteBuf buffer) {
return new Inet4SpecificExtendedCommunityCommonBuilder()
.setGlobalAdministrator(Ipv4Util.addressForByteBuf(buffer))
.build();
}
- public static void serializeCommon(
- final Inet4SpecificExtendedCommunityCommon extComm,
+ public static void serializeCommon(final Inet4SpecificExtendedCommunityCommon extComm,
final ByteBuf byteAggregator) {
ByteBufWriteUtil.writeIpv4Address(extComm.getGlobalAdministrator(), byteAggregator);
byteAggregator.writeBytes(extComm.getLocalAdministrator());
}
-
}
public final class BesthPathStateUtil {
private BesthPathStateUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static long getPeerAs(final List<Segments> segments) {
import org.opendaylight.protocol.bgp.mode.api.PathSelectionMode;
public final class BasePathSelectionModeFactory {
-
private BasePathSelectionModeFactory() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static PathSelectionMode createBestPathSelectionStrategy() {
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev180329.UnicastSubsequentAddressFamily;
public final class BgpPeerUtil {
-
private BgpPeerUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
private static final Logger LOG = LoggerFactory.getLogger(CountersUtil.class);
private CountersUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
import org.opendaylight.yangtools.yang.common.Uint16;
final class OpenConfigMappingUtil {
-
static final String APPLICATION_PEER_GROUP_NAME = "application-peers";
static final Optional<String> APPLICATION_PEER_GROUP_NAME_OPT = Optional.of(APPLICATION_PEER_GROUP_NAME);
static final int HOLDTIMER = 90;
private static final PortNumber PORT = new PortNumber(Uint16.valueOf(179).intern());
private OpenConfigMappingUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
static String getRibInstanceName(final InstanceIdentifier<?> rootIdentifier) {
import org.opendaylight.yang.gen.v1.http.openconfig.net.yang.routing.policy.rev151009.apply.policy.group.apply.policy.ConfigBuilder;
public final class RoutingPolicyUtil {
-
private static final Config DEFAULT_POLICY = new ConfigBuilder().setDefaultImportPolicy(ACCEPTROUTE)
.setDefaultExportPolicy(ACCEPTROUTE).setImportPolicy(Collections.emptyList())
.setExportPolicy(Collections.emptyList()).build();
private RoutingPolicyUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static Config getApplyPolicy(final ApplyPolicy applyPolicy) {
import org.opendaylight.protocol.bgp.rib.spi.state.BGPSessionState;
public final class CheckUtil {
-
private static final int SLEEP_FOR_MILLIS = 50;
private static final int TIMEOUT_SECONDS = 10;
private CheckUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static void checkIdleState(final SimpleSessionListener sessionListener) {
}
Assert.fail();
}
-}
\ No newline at end of file
+}
import org.opendaylight.yangtools.yang.common.Uint32;
final class PeerUtil {
-
private PeerUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
static MpReachNlri createMpReachNlri(final IpAddress nextHop, final List<IpPrefix> prefixes) {
}
private RIBTestsUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
-
public static Global createGlobalIpv4() {
return new GlobalBuilder()
.setAfiSafis(new AfiSafisBuilder().setAfiSafi(AFISAFIS_IPV4).build())
private static final QName PEER_ID = QName.create(Peer.QNAME, "peer-id").intern();
private IdentifierUtils() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
// FIXME: implement as id.firstIdentifierOf(IS_PEER), null indicating not found
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.protocol.bgp.rib.spi;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev180329.PeerRole;
public final class PeerRoleUtil {
-
private PeerRoleUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static String roleForString(final PeerRole role) {
QName.create(BgpAddPathTableType.QNAME, "safi").intern()));
private RibSupportUtils() {
- throw new UnsupportedOperationException("Utility class");
+ // Hidden on purpose
}
/**
@NonNullByDefault
public final class RouterIds {
private RouterIds() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static PeerId createPeerId(final IpAddress address) {
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.protocol.bgp.rib.spi.util;
import com.google.common.util.concurrent.Uninterruptibles;
* Utility class which provides helper functionality for ClusterSingletonService.
*/
public final class ClusterSingletonServiceRegistrationHelper {
-
private static final Logger LOG = LoggerFactory.getLogger(ClusterSingletonServiceRegistrationHelper.class);
private static final int MAX_REGISTRATION_ATTEMPTS = 10;
private static final int SLEEP_TIME_MILLIS = MAX_REGISTRATION_ATTEMPTS;
private ClusterSingletonServiceRegistrationHelper() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.protocol.bgp.testtool;
import com.google.common.base.Preconditions;
private static final Logger LOG = LoggerFactory.getLogger(BGPPeerBuilder.class);
private BGPPeerBuilder() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
static void createPeer(final BGPDispatcher dispatcher, final Arguments arguments,
private static final Uint16 LA = Uint16.valueOf(4660).intern();
private CommunitiesBuilder() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
static List<ExtendedCommunities> createExtComm(final List<String> extCom) {
private static final Logger LOG = LoggerFactory.getLogger(Main.class);
private Main() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static void main(final String[] args) throws IOException {
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.protocol.bgp.testtool;
import static org.opendaylight.protocol.bgp.testtool.CommunitiesBuilder.createExtComm;
import org.opendaylight.yangtools.yang.common.Uint32;
final class PrefixesBuilder {
- private static final Ipv4NextHopCase NEXT_HOP;
-
- static {
- NEXT_HOP = new Ipv4NextHopCaseBuilder().setIpv4NextHop(new Ipv4NextHopBuilder()
- .setGlobal(new Ipv4Address("127.1.1.1")).build()).build();
- }
+ private static final Ipv4NextHopCase NEXT_HOP = new Ipv4NextHopCaseBuilder()
+ .setIpv4NextHop(new Ipv4NextHopBuilder().setGlobal(new Ipv4Address("127.1.1.1")).build())
+ .build();
private PrefixesBuilder() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
static void advertiseIpv4Prefixes(final ChannelOutputLimiter session, final int nprefixes,
public final class ProtocolUtil {
private ProtocolUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static void augmentProtocolId(final LinkstateRoute value, final PrefixAttributes pa,
private static final int MARKER_LENGTH = 16;
private BinaryBGPDumpFileParser() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
private static final String FF_16 = Strings.repeat("FF", 16);
private HexDumpBGPFileParser() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static List<byte[]> parseMessages(final File file) throws IOException {
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.protocol.bmp.impl;
import io.netty.bootstrap.Bootstrap;
private static final int MAX_CONNECTIONS_COUNT = 128;
private BmpDispatcherUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static ChannelInitializer<AbstractChannel> createChannelWithDecoder(
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.rfc2385.cfg.rev160324.Rfc2385Key;
public final class KeyConstructorUtil {
-
private KeyConstructorUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static KeyMapping constructKeys(final List<MonitoredRouter> mrs) {
import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierWithPredicates;
public final class TablesUtil {
+ public static final QName BMP_TABLES_QNAME = QName.create(BmpMonitor.QNAME, "tables").intern();
+ public static final QName BMP_ATTRIBUTES_QNAME = QName.create(BmpMonitor.QNAME, "attributes").intern();
+ public static final QName BMP_ROUTES_QNAME = QName.create(BmpMonitor.QNAME, "routes").intern();
+ public static final QName BMP_AFI_QNAME = QName.create(BMP_TABLES_QNAME, "afi").intern();
+ public static final QName BMP_SAFI_QNAME = QName.create(BMP_TABLES_QNAME, "safi").intern();
- public static final QName BMP_TABLES_QNAME
- = QName.create(BmpMonitor.QNAME.getModule(), "tables");
- public static final QName BMP_ATTRIBUTES_QNAME =
- QName.create(BmpMonitor.QNAME.getModule(), "attributes");
- public static final QName BMP_ROUTES_QNAME = QName.create(BmpMonitor.QNAME.getModule(), "routes");
- public static final QName BMP_AFI_QNAME = QName.create(BMP_TABLES_QNAME.getModule(), "afi");
- public static final QName BMP_SAFI_QNAME = QName.create(BMP_TABLES_QNAME.getModule(), "safi");
private static final String AFI = "afi";
private static final String SAFI = "safi";
private TablesUtil() {
- throw new UnsupportedOperationException("Utility class");
+ // Hidden on purpose
}
/**
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.protocol.bmp.mock;
import com.google.common.net.InetAddresses;
import org.slf4j.LoggerFactory;
public final class BmpMock {
-
private static final Logger LOG = LoggerFactory.getLogger(BmpMock.class);
private BmpMock() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static void main(final String[] args) {
deploy(args);
}
-
private static BmpMockDispatcher initiateMock(final BmpMockArguments arguments) {
final BGPExtensionProviderContext bgpCtx = new SimpleBGPExtensionProviderContext();
final BGPActivator bgpActivator = new BGPActivator();
return deployClients(dispatcher, arguments);
}
}
-
}
import org.opendaylight.yangtools.yang.common.Uint8;
final class BmpMockUtil {
-
private static final String DESCRIPTION = "OpenDaylight";
private static final String NAME = "BMP mock";
private static final int HOLD_TIMER = 180;
private static final AsPath AS_PATH = new AsPathBuilder().setSegments(Collections.emptyList()).build();
private BmpMockUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
static InitiationMessage createInitiation() {
import org.opendaylight.yangtools.yang.common.Uint8;
public final class TestUtil {
-
- private TestUtil() {
- throw new UnsupportedOperationException();
- }
-
public static final Ipv4Address IPV4_ADDRESS_10 = new Ipv4Address("10.10.10.10");
private static final Ipv4Address IPV4_ADDRESS_20 = new Ipv4Address("20.20.20.20");
private static final Ipv4Address IPV4_ADDRESS_30 = new Ipv4Address("30.30.30.30");
public static final PortNumber PEER_LOCAL_PORT = new PortNumber(Uint16.valueOf(220));
public static final PortNumber PEER_REMOTE_PORT = new PortNumber(Uint16.valueOf(5000));
+ private TestUtil() {
+ // Hidden on purpose
+ }
+
public static InitiationMessage createInitMsg(final String sysDescr, final String sysName, final String info) {
final InitiationMessageBuilder initMsgBuilder = new InitiationMessageBuilder();
final TlvsBuilder tlvsBuilder = new TlvsBuilder();
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.protocol.bmp.spi.parser;
public final class BmpMessageConstants {
-
- private BmpMessageConstants() {
- throw new UnsupportedOperationException();
- }
-
public static final short BMP_VERSION = 3;
-
public static final int COMMON_HEADER_LENGTH = 6;
+ private BmpMessageConstants() {
+ // Hidden on purpose
+ }
}
import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Gauge64;
public final class TlvUtil {
-
private TlvUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static void formatTlv(final int type, final ByteBuf value, final ByteBuf out) {
public final class BNCUtil {
private BNCUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static List<Subobject> toBncSubobject(final List<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml
import org.opendaylight.yangtools.yang.common.Uint32;
final class AsNumberCaseParser {
+ private static final int CONTENT_LENGTH = 2;
private AsNumberCaseParser() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
- private static final int CONTENT_LENGTH = 2;
-
static AsNumberCase parseSubobject(final ByteBuf buffer) throws PCEPDeserializerException {
checkArgument(buffer != null && buffer.isReadable(), "Array of bytes is mandatory. Cannot be null or empty.");
if (buffer.readableBytes() != CONTENT_LENGTH) {
* Utilities used in pcep-base-parser.
*/
public final class Util {
-
private Util() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
private static State insertObject(final MetricPceBuilder metricPceBuilder, final State state, final Object obj) {
* Utilities used in pcep-impl.
*/
public final class Util {
-
private Util() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static Message createErrorMessage(final PCEPErrors error, final Open openObject) {
import org.slf4j.LoggerFactory;
public final class SslKeyStore {
-
private static final Logger LOG = LoggerFactory.getLogger(SslKeyStore.class);
private SslKeyStore() {
- throw new UnsupportedOperationException("Utility class shouldn't be instantiated");
+ // Hidden on purpose
}
/**
*/
package org.opendaylight.protocol.pcep.impl;
-import java.lang.reflect.Constructor;
-import java.lang.reflect.InvocationTargetException;
import org.junit.Assert;
import org.junit.Test;
import org.opendaylight.protocol.pcep.impl.spi.Util;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.pcerr.message.pcerr.message.error.type.SessionCase;
public class UtilTest {
-
private static final Open OPEN = new OpenBuilder().build();
@Test
Assert.assertEquals(PCEPErrors.BAD_LABEL_VALUE.getErrorType(), errorObject.getType());
Assert.assertEquals(PCEPErrors.BAD_LABEL_VALUE.getErrorValue(), errorObject.getValue());
}
-
- @Test(expected = UnsupportedOperationException.class)
- @SuppressWarnings({"checkstyle:IllegalThrows","checkstyle:AvoidHidingCauseException"})
- public void testPrivateConstructor() throws Throwable {
- final Constructor<Util> c = Util.class.getDeclaredConstructor();
- c.setAccessible(true);
- try {
- c.newInstance();
- } catch (InvocationTargetException e) {
- throw e.getCause();
- }
- }
-
}
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.protocol.pcep.pcc.mock;
import ch.qos.logback.classic.Level;
import org.slf4j.LoggerFactory;
public final class Main {
-
private static final Logger LOG = LoggerFactory.getLogger(Main.class);
private static final int DEFAULT_REMOTE_PORT = 4189;
private static int reconnectAfterXSeconds;
private static int disonnectAfterXSeconds;
-
private Main() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static void main(final String[] args) {
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.protocol.pcep.pcc.mock;
import static org.opendaylight.protocol.pcep.pcc.mock.spi.MsgBuilderUtil.createPath;
private static final Subobject DEFAULT_ENDPOINT_HOP = getDefaultEROEndpointHop();
private PCCTunnelBuilder() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
static Map<PlspId, PCCTunnel> createTunnels(final String address, final int lsps) {
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.protocol.pcep.pcc.mock.spi;
import com.google.common.collect.Lists;
import org.opendaylight.yangtools.yang.common.Uint64;
public final class MsgBuilderUtil {
-
private MsgBuilderUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static Pcrpt createPcRtpMessage(final Lsp lsp, final Optional<Srp> srp, final Path path) {
}
private ServiceLoaderPCEPExtensionProviderContext() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static PCEPExtensionProviderContext create() {
import org.opendaylight.protocol.util.InetSocketAddressUtil;
public final class PCCMock {
-
private PCCMock() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static void main(final String[] args) throws InterruptedException, ExecutionException {
* PcepStateUtils reads Pcep Topology Node state from DS and prints to stream.
*/
public final class PcepStateUtils {
-
private static final Logger LOG = LoggerFactory.getLogger(PcepStateUtils.class);
- @SuppressWarnings("checkstyle:HideUtilityClassConstructor")
private PcepStateUtils() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.TopologyTypes;
final class PCEPTopologyProviderUtil {
-
private PCEPTopologyProviderUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
static KeyMapping contructKeys(final @NonNull Topology topology) {
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.bgpcep.pcep.tunnel.provider;
import com.google.common.util.concurrent.Futures;
private static final Logger LOG = LoggerFactory.getLogger(TunelProgrammingUtil.class);
private TunelProgrammingUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static Ero buildEro(final List<ExplicitHops> explicitHops) {
private static volatile Long nanoTimeOffset = null;
private NanotimeUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
public final class TopologyProgrammingUtil {
-
private TopologyProgrammingUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
@SuppressWarnings("unchecked")
public final class TunnelProgrammingUtil {
private TunnelProgrammingUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static InstanceIdentifier<Link> linkIdentifier(final InstanceIdentifier<Topology> topology,
*/
public final class PceIdBuilder {
private PceIdBuilder() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
private static final int CONTENT_LENGTH = 2;
private AsNumberCaseParser() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static AsNumberCase parseSubobject(final ByteBuf buffer) throws RSVPParsingException {
.build();
}
-
public static ByteBuf serializeSubobject(final AsNumberCase asCase) {
final AsNumberSubobject asNumber = asCase.getAsNumber();
final ByteBuf body = Unpooled.buffer(CONTENT_LENGTH);
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.protocol.rsvp.parser.impl.subobject.label;
import io.netty.buffer.ByteBuf;
import org.opendaylight.protocol.util.BitArray;
public final class LabelUtil {
-
private static final int FLAGS_SIZE = 8;
-
private static final int UNIDIRECTIONAL = 0;
private static final int GLOBAL = 7;
private LabelUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static void formatLabel(final int type, final Boolean unidirectional, final Boolean global, final ByteBuf
buffer.writeByte(type);
buffer.writeBytes(body);
}
-}
\ No newline at end of file
+}
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.protocol.rsvp.parser.impl.subobject.rro;
import io.netty.buffer.ByteBuf;
private static final int HEADER_SIZE = 2;
private RROSubobjectUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static void formatSubobject(final int type, final ByteBuf body, final ByteBuf buffer) {
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.protocol.rsvp.parser.impl.subobject.xro;
import io.netty.buffer.ByteBuf;
public final class XROSubobjectUtil {
-
private static final int HEADER_SIZE = 2;
-
private static final int MANDATORY_BIT = 7;
private XROSubobjectUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static void formatSubobject(final int type, final Boolean mandatory, final ByteBuf body,
import io.netty.buffer.ByteBuf;
public final class EROSubobjectUtil {
-
private static final int HEADER_SIZE = 2;
-
private static final int LOOSE_BIT = 7;
private EROSubobjectUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static void formatSubobject(final int type, final Boolean loose, final ByteBuf body, final ByteBuf buffer) {
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.protocol.rsvp.parser.spi.pojo;
import java.util.ServiceLoader;
public final class ServiceLoaderRSVPExtensionProviderContext {
private ServiceLoaderRSVPExtensionProviderContext() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static RSVPExtensionProviderContext create() {
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.protocol.rsvp.parser.spi.pojo;
import static org.junit.Assert.assertEquals;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
-import java.lang.reflect.Constructor;
-import java.lang.reflect.InvocationTargetException;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
this.context.getLabelHandlerRegistry().serializeLabel(false, false, this.labelType, buffer);
Mockito.verify(this.labelSerializer).serializeLabel(false, false, this.labelType, buffer);
}
-
- @Test(expected = UnsupportedOperationException.class)
- @SuppressWarnings({ "checkstyle:IllegalThrows", "checkstyle:avoidHidingCauseException" })
- public void testPrivateConstructor() throws Throwable {
- final Constructor<ServiceLoaderRSVPExtensionProviderContext> c =
- ServiceLoaderRSVPExtensionProviderContext.class.getDeclaredConstructor();
- c.setAccessible(true);
- try {
- c.newInstance();
- } catch (final InvocationTargetException e) {
- throw e.getCause();
- }
- }
-
}
private static final int TIMEOUT = 30;
private CheckTestUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static <T extends Future<?>> void waitFutureSuccess(final T future) {
private static final int TIMEOUT = 30;
private CheckUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static <T extends Future<?>> void waitFutureSuccess(final T future) {
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.protocol.util;
import com.google.common.collect.Lists;
private static final List<Integer> ASSIGNED_PORTS = new ArrayList<>();
private InetSocketAddressUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static List<InetSocketAddress> parseAddresses(final String address, final int defaultPort) {
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.protocol.util;
import ch.qos.logback.classic.Level;
public final class LoggerUtil {
private LoggerUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static void initiateLogger(final ArgumentsInput arguments) {
* Util class for methods working with byte array.
*/
public final class ByteArray {
-
private static final Logger LOG = LoggerFactory.getLogger(ByteArray.class);
private ByteArray() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
public static final int IPV6_PREFIX_BYTE_LENGTH = Ipv6Util.IPV6_LENGTH + 1;
private ByteBufWriteUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
private static final Ipv4Prefix EMPTY_PREFIX = new Ipv4Prefix("0.0.0.0/0");
private Ipv4Util() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
private static final Ipv6Prefix EMPTY_PREFIX = new Ipv6Prefix("::/0");
private Ipv6Util() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
* Util class for encoding/decoding 20bit leftmost value.
*/
public final class MplsLabelUtil {
-
private static final int LABEL_OFFSET = 4;
private static final byte BOTTOM_LABEL_BIT = 0x1;
private MplsLabelUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
private static final String LENGTH = "LENGTH:";
private PCEPHexDumpParser() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
public static List<byte[]> parseMessages(final File file) throws IOException {
* Statistics utility class.
*/
public final class StatisticsUtil {
-
private StatisticsUtil() {
- throw new UnsupportedOperationException();
+ // Hidden on purpose
}
/**
* Util class for storing various util values as constants.
*/
public final class Values {
-
- private Values() {
- throw new UnsupportedOperationException();
- }
-
/**
* Maximum unsigned Short value (65535).
*/
* In order to get the value in first bit, we need to shift the byte by 7.
*/
public static final int FIRST_BIT_OFFSET = 7;
+
+ private Values() {
+ // Hidden on purpose
+ }
}