Examples of Router

  • com.subgraph.orchid.Router
  • com.vtence.molecule.middlewares.Router
  • com.woorea.openstack.quantum.model.Router
  • javax.sip.address.Router
    The Router interface may be implemented by the application to provide custom routing logic. It is used to determine the next hop for a given request.

    For backwards compatibility reasons, the default behavior of the stack is to consult the application provided Router implementation for all requests outside of a dialog. This is controlled through the stack property javax.sip.USE_ROUTER_FOR_ALL_URIS which defaults to true when not set.

    This specification recommends to set the stack property javax.sip.USE_ROUTER_FOR_ALL_URIS to false. This will cause the stack to only consult the application provided Router implementation for requests with a non-SIP URI as request URI (such as tel: or pres:) and without Route headers. This enables an application to implement DNS lookups and other resolution algorithms

    When javax.sip.USE_ROUTER_FOR_ALL_URIS is set to false, the next hop is determined according to the following algorithm:

    Note: In case the topmost Route header contains no 'lr' parameter (which means the next hop is a strict router), the implementation will perform 'Route Information Postprocessing' as described in RFC3261 section 16.6 step 6 (also known as "Route header popping"). That is, the following modifications will be made to the request:

    1. The implementation places the Request-URI into the Route header field as the last value.
    2. The implementation then places the first Route header field value into the Request-URI and removes that value from the Route header field.
    Subsequently, the request URI will be used as next hop target.

    The location (classname) of the user-defined Router object is supplied in the Properties object passed to the {@link javax.sip.SipFactory#createSipStack(Properties)} method upon creationof the SIP Stack object. The Router object must accept a SipStack as an argument to the constructor in order for the Router to access attributes of the SipStack The constructor of an object implementing the Router interface must be RouterImpl(SipStack sipStack, String outboundProxy) {}

    The routing policy can not be changed dynamically, i.e. the SipStack needs to be deleted and re-created. Outbound proxy should be passed to the {@link javax.sip.SipFactory#createSipStack(Properties)} method upon creationof the SIP Stack object.

    Application Notes

    A UAC application which desires to use a particular outbound proxy should prepend a Route header with the URI of that proxy (and 'lr' flag if appropriate). Alternatively, it may achieve the same result by setting the OUTBOUND_PROXY property (although the Route header approach is more flexible and therefore RECOMMENDED)

    A proxy application may either rewrite the request URI (if the proxy is responsible for the domain), or prepend a Route header. @author BEA Systems, NIST @version 1.2

  • jmt.engine.NodeSections.Router
    This class implements a router, which routes the jobs according to the specified routing strategies (one for each job class).

    The class has different constructors to create a generic router or a blocking region border queue, that is the router of a node which is inside a blocking region and which sends jobs also to nodes outside the region. When a job leaves the blocking region, the region input station must receive a message, in order to serve the blocked jobs.
    However it's also possible to create a generic router and then to turn on/off the "border router" behaviour using the borderRouterTurnON(..) and borderRouterTurnOFF() methods. @author Francesco Radaelli, Stefano Omini @author Bertoli Marco - Fixed lockup issues with closed class and sinks 13/11/2005 @author Bertoli Marco - Fixed bug with multiserver stationsModified by Ashanka (Oct 2009) for FCR Bug fix: Events are created with job instead of null for EVENT_JOB_OUT_OF_REGION
  • juzu.impl.router.Router
    The router takes care of mapping a request to a a map. @author Julien Viet @version $Revision$
  • ninja.Router
  • org.exoplatform.web.controller.router.Router
    The router takes care of mapping a request to a a map. @author Julien Viet @version $Revision$
  • org.glassfish.jersey.server.internal.routing.Router
    Hierarchical request router that can be used to create dynamic routing tree structures. Each routing tree can be executed using a dedicated {@link RoutingStage routing stage}. @author Marek Potociar (marek.potociar at oracle.com)
  • org.jboss.messaging.core.Router
    Routes a routable to a maximum of one of the attached receivers @author Ovidiu Feodorov @author Tim Fox @version $Revision: 1270 $$Id: Router.java 1270 2006-09-09 11:48:48Z timfox $
  • org.jclouds.openstack.neutron.v2.domain.Router
    tack.org/api/openstack-network/2.0/content/router_ext_concepts.html">api doc
  • org.jclouds.openstack.neutron.v2_0.domain.Router
    stack.org/api/openstack-network/2.0/content/router_ext_concepts.html">api doc
  • org.midonet.client.resource.Router
  • org.mule.api.annotations.meta.Router
  • org.restlet.Router
  • org.restlet.routing.Router
    stlet.org/docs_2.1/376-restlet.html">User Guide - Routers and hierarchical URIs @author Jerome Louvel
  • org.slim3.controller.router.Router
    The collection of constants of class. @author taedium @since 1.0.0
  • org.smslib.routing.Router
    Base message routing class. Service owns instance of Router (or its subclass), and uses its member functions to designate gateway(s) to send particular outgoing message. It is allowed that router designates more than modem to send message. It is responsibility of Router to decide which gateway will send the message. Custom routing rules are possible by creating subclass. @author Tomek Cejner
  • org.sonatype.nexus.componentviews.Router
    Polls an ordered list of {@link RequestMatcher}s to find the first one willing to handle a given request. @since 3.0
  • org.waveprotocol.wave.federation.xmpp.MockOutgoingPacketTransport.Router
  • su.mauser.router.Router
    Маршрутизатор страниц. При отсутствии соединения с БД отображает страницу с ошибкой.

  • Examples of org.glassfish.jersey.server.internal.routing.Router

            final RuntimeModelBuilder runtimeModelBuilder = locator.getService(RuntimeModelBuilder.class);
            runtimeModelBuilder.setProcessingProviders(processingProviders);


            // assembly request processing chain
            /**
             * Root hierarchical request matching acceptor.
             * Invoked in a single linear stage as part of the main linear accepting chain.
             */
            final Router resourceRoutingRoot = runtimeModelBuilder.buildModel(resourceModel.getRuntimeResourceModel(), false);

    View Full Code Here

    Examples of org.jboss.messaging.core.Router

       // Public --------------------------------------------------------
      
       public void testAllAccepting()
       {
          Router router = new RoundRobinPointToPointRouter();
         
          final int numReceivers = 10;
         
          SimpleReceiver[] receivers = new SimpleReceiver[numReceivers];
         
          for (int i = 0; i < numReceivers; i++)
          {
             receivers[i] = new SimpleReceiver();
            
             router.add(receivers[i]);
          }
         
          Message msg = CoreMessageFactory.createCoreMessage(123, true, null);
         
          MessageReference ref = ms.reference(msg);
               
          Delivery del = router.handle(null, ref, null);
          assertNotNull(del);
          checkReceiverGotRef(receivers, 0);
          resetReceivers(receivers);
         
          del = router.handle(null, ref, null);
          assertNotNull(del);
          checkReceiverGotRef(receivers, 1);
          resetReceivers(receivers);
         
          del = router.handle(null, ref, null);
          assertNotNull(del);
          checkReceiverGotRef(receivers, 2);
          resetReceivers(receivers);
         
          del = router.handle(null, ref, null);
          assertNotNull(del);
          checkReceiverGotRef(receivers, 3);
          resetReceivers(receivers);
         
          del = router.handle(null, ref, null);
          assertNotNull(del);
          checkReceiverGotRef(receivers, 4);
          resetReceivers(receivers);
         
          del = router.handle(null, ref, null);
          assertNotNull(del);
          checkReceiverGotRef(receivers, 5);
          resetReceivers(receivers);
         
          del = router.handle(null, ref, null);
          assertNotNull(del);
          checkReceiverGotRef(receivers, 6);
          resetReceivers(receivers);
         
          del = router.handle(null, ref, null);
          assertNotNull(del);
          checkReceiverGotRef(receivers, 7);
          resetReceivers(receivers);
         
          del = router.handle(null, ref, null);
          assertNotNull(del);
          checkReceiverGotRef(receivers, 8);
          resetReceivers(receivers);
         
          del = router.handle(null, ref, null);
          assertNotNull(del);
          checkReceiverGotRef(receivers, 9);
          resetReceivers(receivers);
         
          del = router.handle(null, ref, null);
          assertNotNull(del);
          checkReceiverGotRef(receivers, 0);
          resetReceivers(receivers);
         
          del = router.handle(null, ref, null);
          assertNotNull(del);
          checkReceiverGotRef(receivers, 1);
          resetReceivers(receivers);
         
          del = router.handle(null, ref, null);
          assertNotNull(del);
          checkReceiverGotRef(receivers, 2);
          resetReceivers(receivers);
         
       }
    View Full Code Here

    Examples of org.jclouds.openstack.neutron.v2.domain.Router

             Router.CreateOptions createRouter = Router.createOptions().name("another_router").adminStateUp(true)
                   .externalGatewayInfo(ExternalGatewayInfo.builder().networkId("8ca37218-28ff-41cb-9b10-039601ea7e6b").build())
                   .build();

             Router router = api.create(createRouter);

             /*
              * Check request
              */
             assertAuthentication(server);
             assertRequest(server.takeRequest(), "POST", "/v2.0/routers", "/router_create_request.json");

             /*
              * Check response
              */
             assertNotNull(router);
             assertEquals(router.getName(), "another_router");
             assertEquals(router.getExternalGatewayInfo().getNetworkId(), "8ca37218-28ff-41cb-9b10-039601ea7e6b");
             assertEquals(router.getStatus(), NetworkStatus.ACTIVE);
             assertEquals(router.isAdminStateUp().booleanValue(), true);
             assertEquals(router.getId(), "8604a0de-7f6b-409a-a47c-a1cc7bc77b2e");
             assertEquals(router.getTenantId(), "6b96ff0cb17a4b859e1e575d221683d3");
          } finally {
             server.shutdown();
          }
       }
    View Full Code Here

    Examples of org.jclouds.openstack.neutron.v2_0.domain.Router

             assertNotNull(port);

             Port port2 = portApi.create(network2.getId());
             assertNotNull(port2);

             Router router = routerApi.create(CreateRouterOptions.builder().name("jclouds-router-test").build());
             assertNotNull(router);

             RouterInterface routerInterface = routerApi.addInterfaceForPort(router.getId(), port.getId());
             assertNotNull(routerInterface);

             RouterInterface routerInterface2 = routerApi.addInterfaceForPort(router.getId(), port2.getId());
             assertNotNull(routerInterface2);

             assertTrue(routerApi.removeInterfaceForPort(router.getId(), port.getId()));
             assertTrue(routerApi.removeInterfaceForPort(router.getId(), port2.getId()));
             assertTrue(routerApi.delete(router.getId()));
             assertTrue(subnetApi.delete(subnet.getId()));
             assertTrue(networkApi.delete(network.getId()));
             assertTrue(subnetApi.delete(subnet2.getId()));
             assertTrue(networkApi.delete(network2.getId()));
    View Full Code Here

    Examples of org.midonet.client.resource.Router

             * this function could be called as a part of network cleanup. In
             * that case, we do not want to recreate the guest network or
             * any ports.
             */
            boolean resources = false;
            Router tenantRouter = null;
            Router providerRouter = null;
            RouterPort[] ports = null;

            RouterPort tenantUplink = null;
            RouterPort providerDownlink = null;

    View Full Code Here

    Examples of org.midonet.client.resource.Router

            if (!canHandle(network, Service.StaticNat)) {
                return false;
            }

            boolean resources = false;
            Router tenantRouter = null;
            Router providerRouter = null;

            RouterPort[] ports = null;

            RouterPort tenantUplink = null;
            RouterPort providerDownlink = null;
    View Full Code Here

    Examples of org.midonet.client.resource.Router

            }

            if(network.getTrafficType() == Networks.TrafficType.Guest){
                // Create the Midonet bridge for this network
                Bridge netBridge = getOrCreateNetworkBridge(network);
                Router tenantRouter = getOrCreateGuestNetworkRouter(network);

                // connect router and bridge
                ensureBridgeConnectedToRouter(network, netBridge, tenantRouter);
            }
    View Full Code Here

    Examples of org.midonet.client.resource.Router

                    nic.getBroadcastType() == Networks.BroadcastDomainType.Mido){
                Bridge netBridge = getOrCreateNetworkBridge(network);
                if(nic.getTrafficType() == Networks.TrafficType.Public &&
                    vm.getVirtualMachine().getType() != VirtualMachine.Type.DomainRouter){
                    // Get provider router
                    Router providerRouter = api.getRouter(_providerRouterId);

                    Port[] ports = getOrCreatePublicBridgePorts(nic, netBridge, providerRouter);

                    RouterPort providerDownlink = (RouterPort) ports[1];

                    // Set route from router to bridge for this particular IP. Prepare
                    // is called in both starting a new VM and restarting a VM, so the
                    // NIC may
                    boolean routeExists = false;
                    for (Route route : providerRouter.getRoutes(new MultivaluedMapImpl())) {
                        String ip4 = route.getDstNetworkAddr();
                        if (ip4 != null && ip4.equals(nic.getIp4Address())) {
                            routeExists = true;
                            break;
                        }
                    }

                    if (!routeExists) {
                        providerRouter.addRoute()
                                      .type("Normal")
                                      .weight(100)
                                      .srcNetworkAddr("0.0.0.0")
                                      .srcNetworkLength(0)
                                      .dstNetworkAddr(nic.getIp4Address())
    View Full Code Here

    Examples of org.midonet.client.resource.Router

                    (nic.getTrafficType() == Networks.TrafficType.Public &&
                    nic.getBroadcastType() == Networks.BroadcastDomainType.Mido)) {
                // Seems like a good place to remove the port in midonet
                Bridge netBridge = getOrCreateNetworkBridge(network);

                Router providerRouter = api.getRouter(_providerRouterId);

                //remove the routes associated with this IP address
                for (Route route : providerRouter.getRoutes(new MultivaluedMapImpl())) {
                    String routeDstAddr = route.getDstNetworkAddr();
                    if (routeDstAddr != null && routeDstAddr.equals(nic.getIp4Address())) {
                        route.delete();
                    }
                }
    View Full Code Here

    Examples of org.midonet.client.resource.Router

            String accountIdStr = getAccountUuid(network);
            String networkUUIDStr = String.valueOf(network.getId());
            RuleChain preNat = getChain(accountIdStr, networkUUIDStr, RuleChainCode.TR_PRENAT);
            RuleChain postNat = getChain(accountIdStr, networkUUIDStr, RuleChainCode.TR_POST);
            RuleChain preFilter = getChain(accountIdStr, networkUUIDStr, RuleChainCode.TR_PREFILTER);
            Router providerRouter = api.getRouter(_providerRouterId);
            Router tenantRouter = getOrCreateGuestNetworkRouter(network);
            RouterPort[] ports = getOrCreateProviderRouterPorts(tenantRouter, providerRouter);
            RouterPort providerDownlink = ports[1];

            // Rules in the preNat table
            Map<String, Rule> existingPreNatRules = new HashMap<String, Rule>();
    View Full Code Here
    TOP
    Copyright © 2018 www.massapi.com. All rights reserved.
    All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.