Examples of Destination


Examples of akka.routing.Destination

      ActorRef actor = routees.get(actorSeq);

      public Iterable<Destination> destinationsFor(ActorRef sender,
          Object message) {
        List<Destination> destinationList = Arrays
            .asList(new Destination[] { new Destination(sender,
                actor) });
        // increment message count
        synchronized (this) {
          messageCount++;
        }
View Full Code Here

Examples of com.amazonaws.services.simpleemail.model.Destination

    private Destination determineTo(Exchange exchange) {
        List<String> to = exchange.getIn().getHeader(SesConstants.TO, List.class);
        if (to == null) {
            to = getConfiguration().getTo();
        }
        return new Destination(to);
    }
View Full Code Here

Examples of com.eclipsesource.restfuse.Destination

  public void checkRestfuseOnlineStatus() {
    assertOk( response );
  }

  private Destination getDestination() {
    Destination destination = new Destination( this, "http://restfuse.com" );
    destination.getRequestContext().addHeader( "Cookie", "name:value" );
    return destination;
  }
View Full Code Here

Examples of com.google.gdata.data.analytics.Destination

    System.out.println("Name: " + goal.getName());
    System.out.println("Active? " + goal.getActive());
    System.out.println("Value: " + goal.getValue());

    if (goal.getDestination() != null) {
      Destination destination = goal.getDestination();
      System.out.println("Goal Type:  Destination");
      System.out.println("Destination - Case Sensitive: " +  destination.getCaseSensitive());
      System.out.println("Destination - Expression: " +  destination.getExpression());
      System.out.println("Destination - Match Type: " +  destination.getMatchType());
      System.out.println("Destination - Step 1 Required: : " +  destination.getStep1Required());

      System.out.println("Goal Steps: ");

      for (Step step : goal.getDestination().getSteps()) {
        System.out.println("Step: " + step.getNumber());
View Full Code Here

Examples of com.jclark.xsl.sax.Destination

     * Creates a new instance for writing to the given URI.
     * Useful for "xt:document" extension element
     */
    public OutputMethodHandler createOutputMethodHandler(String uri)
    {
        Destination d = dest.resolve(uri);
        if (d == null) {
            return null;
        }
        OutputMethodHandlerImpl om = new OutputMethodHandlerImpl();
        om.setDestination(d);
View Full Code Here

Examples of com.nokia.dempsy.messagetransport.Destination

      runAllCombinations(new Checker()
      {
         @Override
         public void check(int port, boolean localhost, long batchOutgoingMessagesDelayMillis) throws Throwable
         {
            final StatsCollector statsCollector = new StatsCollectorFactoryCoda().createStatsCollector(new ClusterId("test", "test-cluster"), new Destination(){});

            // we're going to batch no matter what the parameter says.
            batchOutgoingMessagesDelayMillis = 10000;
           
            SenderFactory factory = null;
            TcpReceiver adaptor = null;
           
            try
            {
               //===========================================
               // setup the sender and receiver
               adaptor = new TcpReceiver(null,getFailFast());
               adaptor.setStatsCollector(statsCollector);
               StringListener receiver = new StringListener();
               adaptor.setListener(receiver);
              
               // we want to keep track of the number of bytes written
               final long[] flushByteCounts = new long[4]; // This should be all that's needed
                    
               factory = makeSenderFactory(new BatchingOutputStreamWatcher(flushByteCounts),
                     statsCollector,batchOutgoingMessagesDelayMillis);

               if (port > 0) adaptor.setPort(port);
               if (localhost) adaptor.setUseLocalhost(localhost);
               //===========================================

               adaptor.start(); // start the adaptor
               Destination destination = adaptor.getDestination(); // get the destination

               // send a message
               Sender sender = factory.getSender(destination);
              
               int mtu = ((TcpSender)sender).getMtu();
View Full Code Here

Examples of com.sun.messaging.Destination

        if (obj instanceof Reference) {
            Reference ref = (Reference)obj;
            String refClassName;
            refClassName = ref.getClassName();
            Destination destObj = null;
            if (refClassName.equals(com.sun.messaging.Queue.class.getName())) {
                destObj = new Queue();
            } else {
                if (refClassName.equals(com.sun.messaging.Topic.class.getName())) {
                    destObj = new Topic();
                } else {
                    throw new MissingVersionNumberException();
                }
            }
            //version number MUST exist and it MUST be the same as AO_VERSION_STR_JMQ1
            RefAddr versionAddr = ref.get(REF_VERSION);
            if (versionAddr == null) {
                //version number does not exist
                throw new MissingVersionNumberException();
            } else {
                String version = null;
                if (!AO_VERSION_STR_JMQ1.equals(version = (String)versionAddr.getContent())) {
                    //version number does not match
                    throw new UnsupportedVersionNumberException(version);
                }
                ((AdministeredObject)destObj).storedVersion = version;
            }
            RefAddr destAddr = ref.get(REF_DESTNAME);
            if (destAddr != null) {
                    destObj.setProperty(DestinationConfiguration.imqDestinationName,
                                            (String)destAddr.getContent());
                    return destObj;
            } else {
                    throw new CorruptedConfigurationPropertiesException();
            }
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.core.Destination

   * Create DestinationMonitor MBeans
   */
  List dests = DestinationUtil.getVisibleDestinations();
  if (dests.size() != 0)  {
            for (int i =0; i < dests.size(); i ++) {
                Destination d = (Destination)dests.get(i);

    registerDestination(d);
            }
  }

View Full Code Here

Examples of flex.messaging.Destination

     * and calls super.setDestination.
     * @param destination The HTTP proxy destination.
     */
    public void setDestination(Destination destination)
    {
        Destination dest = (HTTPProxyDestination) destination;
        super.setDestination(dest);
    }
View Full Code Here

Examples of javax.jms.Destination

    this.ident = ident;
  }

  public void onMessage(Message msg) {
    try {
      Destination destination = msg.getJMSDestination();
      Destination replyTo = msg.getJMSReplyTo();

      System.out.println();
      System.out.println("URL collected:");
      System.out.println(ident + ": from=" + destination + ",replyTo=" + replyTo);
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.