Examples of DataHandler


Examples of BaseClasses.DataHandler

      chart_temp = new DynamicChart("Temp Values (30s)",30*1000)
      chart_adc1b= new DynamicChart("ADC Values",30000);
      chart_adc2 = new DynamicChart("Temp Values",30000);
      chart_experiment = new DynamicChart("Temp Values",30000);
     
      adc1a = new DataHandler(new String[]{"ADC0","ADC1","ADC2","ADC3","ADC4","ADC5","ADC6"},chart_adc1a,"logs/adc1a_values_",window.jLog3);
      adc1b = new DataHandler(new String[]{"ADC7","ADC8","ADC9","ADC10","ADC11","ADC12","ADC13"},chart_adc1b,"logs/adc1b_values_",window.jLog3);
      adc2 = new DataHandler(new String[]{"ADC2_0","ADC2_1","ADC2_2","ADC2_3"},chart_adc2,"logs/adc2_values_",window.jLog3);
      temp = new DataHandler(new String[]{"STM32","T1","T2","T3"},chart_temp,"logs/temp_values_",window.jLog4);
      experiment = new DataHandler(new String[]{"Pressure 1","Pressure 2","Hatch 1","Sensor 1 - U","Sensor 1 - I","Sensor 2 - U","Sensor 2 - I","Sensor 3 - U","Sensor 3 - I","Heating 1 - R","Heating 2 - R","Heating 3 - R"},chart_experiment,"logs/experiment_",null);
     
    //  DataHandler graph1=new DataHandler(new String[]{"ADC1","ADC2","ADC3","ADC4"},chart_adc,null,null);
    //  DataHandler graph2=new DataHandler(new String[]{"STM32","T1","T2","T3"},chart_temp,null,null);
     
      /* Create Additional Data Handler for the Logging */
      log=new DataHandler("logs/log_",window.log);
      raw_comm=new DataHandler("logs/raw_",window.jLog2);
     
    
     
    //  window.jPanel18.setLayout(new java.awt.BorderLayout());
     
View Full Code Here

Examples of com.denisk.appengine.nl.server.DataHandler

  @Before
  public void before() {
    helper.setUp();
    helper1.setUp();
    ds = DatastoreServiceFactory.getDatastoreService();
    dh = new DataHandler();
  }
View Full Code Here

Examples of com.google.code.javax.activation.DataHandler

    public void setContent(Object o, String type)
      throws MessagingException {
  if (o instanceof Multipart)
      setContent((Multipart)o);
  else
      setDataHandler(new DataHandler(o, type));
    }
View Full Code Here

Examples of com.ning.compress.DataHandler

        int inputLength = (int) _fileLength;
        _readAll(out, copyBuffer, 0L, inputLength);

        // Compress-Ning package allows "push" style uncompression (yay!)
        Uncompressor uncomp;
        DataHandler h = new RangedDataHandler(out, offset, dataLength);

        if (_compression == Compression.LZF) {
            uncomp = new LZFUncompressor(h);
        } else if (_compression == Compression.GZIP) {
            uncomp = new GZIPUncompressor(h);
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.data.handlers.DataHandler

      * route, store and forward a message
      */
      public void processMessage(IMQConnection con, Packet msg)
          throws BrokerException, SelectorFormatException, IOException
      {
          DataHandler handler = (DataHandler)
                      pr.getHandler(PacketType.MESSAGE);

          Destination d = null;
          PacketReference ref = null;
          Set s = null;
          boolean route = false;
          boolean isadmin = con.isAdminConnection();
          try {
               d = Destination.getDestination(
                      msg.getDestination(), msg.getIsQueue());
               if (d == null) {
                   throw new BrokerException("Unknown Destination:" + msg.getDestination());
               }
   
               Producer pausedProducer = handler.checkFlow(msg, con);
               boolean transacted = (msg.getTransactionID() != 0);
               if (DEBUG) {
               Globals.getLogger().log(Logger.INFO,
               "ProtocolImpl.PROCESS MESSAGE["+msg+"]TID="+msg.getTransactionID()+" on connection "+con);
               }
   
                // OK generate a ref. This checks message size and
                // will be needed for later operations
                ref = handler.createReference(msg, d.getDestinationUID(), con, isadmin);
   
                // dont bother calling route if there are no messages
                //
                // to improve performance, we route and later forward
                route = handler.queueMessage(d, ref, transacted);
   
                s = handler.routeMessage(transacted, ref, route, d);
   
                // handle producer flow control
                handler.pauseProducer(d, pausedProducer, con);
   
         } catch (BrokerException ex) {
            int status = ex.getStatusCode();
            if (status == Status.ERROR && ref!= null && d != null)
                handler.cleanupOnError(d, ref);
   
            // rethrow
            throw ex;
         }
   
         if (route && d != null && s != null) {
            handler.forwardMessage(d, ref, s);
         }
    

      }
View Full Code Here

Examples of com.ziclix.python.sql.DataHandler

     * complicated inheritance dependencies.
     */
    protected PyCursor cursor() {

        PyCursor cursor = this.connection.cursor(true);
        DataHandler origDataHandler = cursor.getDataHandler(), newDataHandler = null;

        if ((origDataHandler != null) && (this.dataHandler != null)) {
            Constructor cons = null;

            try {
View Full Code Here

Examples of eu.planets_project.tb.api.data.util.DataHandler

                + ", type=" + type + "]";
        }
    }
   
    private String lookupFileName( String dobUri ) {
        DataHandler dh = DataHandlerImpl.findDataHandler();
        DigitalObjectRefBean dorb;
        try {
            dorb = dh.get(dobUri);
        } catch (FileNotFoundException e) {
            e.printStackTrace();
            return "Missing file!";
        }
        return dorb.getName();
View Full Code Here

Examples of jSimMacs.logic.handler.DataHandler

    } finally {
      if (sess != null)
        sess.close();
    }

    DataHandler handler = getHandler();
    handler.delete(commands.get(4));
  }
View Full Code Here

Examples of javax.activation.DataHandler

            } catch (XMLStreamException e) {
                handleException("Error converting to a StreamSource", e);
            }

        } else if (o instanceof OMText) {
            DataHandler dataHandler = (DataHandler) ((OMText) o).getDataHandler();
            if (dataHandler != null) {
                try {
                    return new StreamSource(dataHandler.getInputStream());
                } catch (IOException e) {
                    handleException("Error in reading content as a stream ");
                }
            }
        } else {
View Full Code Here

Examples of javax.activation.DataHandler

            } catch (XMLStreamException e) {
                handleException("Error converting to a StreamSource", e);
            }

        } else if (o instanceof OMText) {
            DataHandler dataHandler = (DataHandler) ((OMText) o).getDataHandler();
            if (dataHandler != null) {
                try {
                    return dataHandler.getInputStream();
                } catch (IOException e) {
                    handleException("Error in reading content as a stream ");
                }
            }
        } else if (o instanceof URI) {
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.