*/
package org.opendaylight.bgpcep.pcep.topology.provider;
-import com.google.common.base.Preconditions;
import io.netty.channel.ChannelFuture;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.util.HashedWheelTimer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import java.net.InetSocketAddress;
-import java.util.concurrent.ExecutionException;
+import com.google.common.base.Preconditions;
public final class BundleActivator extends AbstractBindingAwareProvider {
private static final Logger LOG = LoggerFactory.getLogger(BundleActivator.class);
final Open prefs = spf.getSessionProposal(address, 0);
final PCEPDispatcher dispatcher = new PCEPDispatcherImpl(PCEPExtensionProviderContextImpl
.getSingletonInstance().getMessageHandlerRegistry(), new DefaultPCEPSessionNegotiatorFactory(
- new HashedWheelTimer(), prefs, 5), new NioEventLoopGroup(), new NioEventLoopGroup());
+ new HashedWheelTimer(), prefs, 5), new NioEventLoopGroup(), new NioEventLoopGroup());
final InstanceIdentifier<Topology> topology = InstanceIdentifier.builder().node(Topology.class).toInstance();
}
}
- public static InstanceIdentifier<Link> linkIdentifier(
- final InstanceIdentifier<Topology> tii, final NodeId node, final SymbolicPathName name) {
- final LinkId lid = new LinkId(node.getValue() + "/lsp/" + name);
- return InstanceIdentifier.builder(tii).
- node(Link.class, new LinkKey(lid)).toInstance();
+ public static InstanceIdentifier<Link> linkIdentifier(final InstanceIdentifier<Topology> topology,
+ final NodeId node, final SymbolicPathName name) {
+ return InstanceIdentifier.builder(topology).
+ node(Link.class, new LinkKey(new LinkId(node.getValue() + "/lsp/" + name))).toInstance();
}
}