Examples of open()


Examples of io.druid.segment.data.VSizeIndexedWriter.open()

    timeWriter.open();

    ArrayList<VSizeIndexedWriter> forwardDimWriters = Lists.newArrayListWithCapacity(mergedDimensions.size());
    for (String dimension : mergedDimensions) {
      VSizeIndexedWriter writer = new VSizeIndexedWriter(ioPeon, dimension, dimensionCardinalities.get(dimension));
      writer.open();
      forwardDimWriters.add(writer);
    }

    ArrayList<MetricColumnSerializer> metWriters = Lists.newArrayListWithCapacity(mergedMetrics.size());
    for (String metric : mergedMetrics) {
View Full Code Here

Examples of it.baeyens.arduino.ui.PasswordDialog.open()

    PasswordDialog dialog = new PasswordDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
    if (myLogin != null)
        dialog.setUser(myLogin);
    dialog.sethost(host);
    // get the new values from the dialog
    if (dialog.open() == Window.OK) {
        myLogin = dialog.getUser();
        myPassword = dialog.getPassword();
        node.put("login", myLogin, false);
        node.put("password", myPassword, true);
    } else {
View Full Code Here

Examples of it.eng.qbe.datasource.transaction.ITransaction.open()

      logger.debug(RESPONSE_TYPE + ": " + responseType);
         
      Assert.assertNotNull(getEngineInstance(), "It's not possible to execute " + this.getActionName() + " service before having properly created an instance of EngineInstance class");
     
      transaction = (getEngineInstance().getDataSource()).getTransaction()
      transaction.open();
     
      fileExtension = MimeUtils.getFileExtension( mimeType );
      writeBackResponseInline = RESPONSE_TYPE_INLINE.equalsIgnoreCase(responseType);
     
      isFormEngineInstance = getEngineInstance().getTemplate().getProperty("formJSONTemplate") != null;
View Full Code Here

Examples of it.eng.spagobi.engines.qbe.services.worksheet.exporter.WorkSheetPDFExporter.open()

  }
 
  public void exportToPDF(JSONObject worksheetJSON, OutputStream outputStream) throws Exception {
   
    WorkSheetPDFExporter exporter = new WorkSheetPDFExporter();
    exporter.open(outputStream);
    exporter.setNumberFormat(numberFormat);
    exporter.setUserDateFormat(userDateFormat);
   
    int sheetsNumber = worksheetJSON.getInt(SHEETS_NUM);
    JSONArray exportedSheets = worksheetJSON.getJSONArray(EXPORTED_SHEETS);
View Full Code Here

Examples of java.awt.Desktop.open()

        Desktop desktop = getDesktop();
        if (program == null || program.trim().length() == 0) {
            boolean launched = true;
            if (desktop != null) {
                try {
                    desktop.open(file);
                } catch (Exception exp) {
                  logger.debug("Could not launch file using the Dekstop class [" + file + "]", exp);
                    launched = false;
                }
            }
View Full Code Here

Examples of javax.comm.CommPortIdentifier.open()

        break;
      }
    }
   
    try {
      serialPort = (SerialPort) portId.open("SerialConnection", 2000);
      outputStream = serialPort.getOutputStream();
      inputStream = serialPort.getInputStream();
      serialPort.setSerialPortParams(9600,
          SerialPort.DATABITS_8,
          SerialPort.STOPBITS_2,
View Full Code Here

Examples of javax.jcache.Cache.open()

    protected  CacheManager() throws CacheException {       
       try{
           logger = Logger.getLogger(CLASS_NAME);
         factory = CacheAccessFactory.getInstance();
         Cache cache = factory.getCache(false);
         cache.open(null);
         cacheIdManager = new CacheIdManagerImpl();
       }
     catch(CacheNotAvailableException e){
       throw new CacheException(e);
     }
View Full Code Here

Examples of javax.mail.Folder.open()

    HeadersHelper oHlpr = new HeadersHelper();
    String [] aMsgsXml = null;

    Folder oFldr = getFolder(sFolderName);

  oFldr.open (Folder.READ_ONLY);

  int iDeleted = 0;
  int iTotalCount = oFldr.getMessageCount();

  if (iTotalCount>0) {
View Full Code Here

Examples of javax.media.Codec.open()

  private Codec open(String className, Format f) throws Exception
  {
    Codec encoder = (Codec) Class.forName(className).newInstance();
    encoder.setInputFormat(f);
    encoder.setOutputFormat(encoder.getSupportedOutputFormats(f)[0]);
    encoder.open();
    return encoder;
   
  }
 
  private byte encode(byte[] data, Codec encoder, Format f)
View Full Code Here

Examples of javax.media.DataSink.open()

    {
//      player = null;
      final MediaLocator m = new MediaLocator(outputUrl);
     
      destDataSink = Manager.createDataSink(ds, m);
      destDataSink.open();
      destDataSink.start();
     
    }
   
     
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.