Examples of Exporter


Examples of net.jini.export.Exporter

        }

        /* Handle items and duties related to exporting this service. */
        ServerEndpoint endpoint = TcpServerEndpoint.getInstance(0);
        InvocationLayerFactory ilFactory = new BasicILFactory();
        Exporter defaultExporter = new BasicJeriExporter(endpoint,
                                                         ilFactory,
                                                         false,
                                                         true);
        /* For the activatable server */
        if(activationID != null) {
View Full Code Here

Examples of net.jini.export.Exporter

  throws ExportException, UnsupportedConstraintException
    {
  ServerEndpoint se = getServerEndpoint(host, port, new SF(), null);
  InvocationLayerFactory ilf =
      new BasicILFactory(null, null, PingImpl.class.getClassLoader());
  Exporter exporter = new BasicJeriExporter(se, ilf, false, false);
  return (Ping) exporter.export(impl);
    }
View Full Code Here

Examples of net.jini.export.Exporter

  // Get the exporter

  /* What we use for the default (or in the default activatable case
   * what we make the underlying exporter).
   */
  final Exporter basicExporter =
      new BasicJeriExporter(TcpServerEndpoint.getInstance(0),
          new BasicILFactory(), false, true);
  if (activationID == null) {
      exporter = (Exporter)Config.getNonNullEntry(config,
    COMPONENT_NAME,  "serverExporter", Exporter.class,
View Full Code Here

Examples of net.jini.export.Exporter

          getPreparer(config, "systemPreparer");
      monPreparer = getPreparer(config,
              "monitorPreparer");
      TcpServerEndpoint se =
          TcpServerEndpoint.getInstance(0);
      Exporter defaultExporter =
          new BasicJeriExporter(se, new AccessILFactory());
      exporter = (Exporter) config.getEntry(
        PHOENIX, "instantiatorExporter",
        Exporter.class, defaultExporter);
      if (exporter == null) {
View Full Code Here

Examples of net.jini.export.Exporter

        private void initCache() throws RemoteException {
            /* Get the exporter for the remote event listener from the
             * configuration.
             */
            try {
                Exporter defaultExporter =
                      new BasicJeriExporter(TcpServerEndpoint.getInstance(0),
                                            new BasicILFactory(),
                                            false, false);
                lookupListenerExporter =
                  (Exporter)thisConfig.getEntry(COMPONENT_NAME,
View Full Code Here

Examples of net.sf.jasperreports.export.Exporter

   
    ByteArrayOutputStream output = new ByteArrayOutputStream();
 
    try {
     
      Exporter exporter = setup();
     
      ExporterInput exporterInput = SimpleExporterInput.getInstance(printList);
      exporter.setExporterInput(exporterInput);
     
      ExporterOutput exporterOutput = getExporterOutput(output);
      exporter.setExporterOutput(exporterOutput);

      ExporterConfiguration exporterConfiguration = getExporterConfiguration();
      if (exporterConfiguration != null)
        exporter.setConfiguration(exporterConfiguration);
     
      ReportExportConfiguration reportConfiguration = getReportConfiguration();
      if (reportConfiguration != null)
        exporter.setConfiguration(reportConfiguration);
     
      exporter.exportReport();
      Flushables.flushQuietly(output);
      return output.toByteArray()
     
    } catch (JRException e) {
      throw new RuntimeException(e);
View Full Code Here

Examples of net.sf.nfp.mini.data.Exporter

  public void setView(Displayable view) {
    view.addCommand(new NavigationCommand("quit", "${quit}", Command.SCREEN, 9));
    //#ifdef FILE_API
    view.addCommand(new ActionCommand("${export}", Command.SCREEN, 8) {
      public Navigation execute(Displayable d) throws Exception {
        Exporter exporter = new Exporter();
       
        javax.microedition.io.file.FileConnection fc =
          (javax.microedition.io.file.FileConnection) Connector.open(CSV_PATH, Connector.READ_WRITE);
        try {
          if (fc.exists())
            fc.delete();
          fc.create();
          exporter.exportToCSV(fc.openOutputStream(), controler);
        } finally {
          fc.close();
        }
        return null;
      }
    });
    view.addCommand(new ActionCommand("${import}", Command.SCREEN, 8) {
      public Navigation execute(Displayable d) throws Exception {
        Exporter exporter = new Exporter();
       
        javax.microedition.io.file.FileConnection fc =
          (javax.microedition.io.file.FileConnection) Connector.open(CSV_PATH,
            Connector.READ);
        try {
          exporter.importFromCSV(fc.openDataInputStream(), fc.fileSize(), controler);
        } finally {
          fc.close();
        }
        return null;
      }
View Full Code Here

Examples of org.apache.sqoop.job.etl.Exporter

    request.setOutputFormatClass(SqoopNullOutputFormat.class);
    request.setOutputKeyClass(Data.class);
    request.setOutputValueClass(NullWritable.class);

    Exporter exporter = (Exporter)request.getConnectorCallbacks();

    // Set up framework context
    MutableMapContext context = request.getFrameworkContext();
    context.setString(JobConstants.JOB_ETL_PARTITIONER, HdfsExportPartitioner.class.getName());
    context.setString(JobConstants.JOB_ETL_LOADER, exporter.getLoader().getName());
    context.setString(JobConstants.JOB_ETL_DESTROYER, exporter.getDestroyer().getName());

    // Extractor that will be able to read all supported file types
    context.setString(JobConstants.JOB_ETL_EXTRACTOR, HdfsExportExtractor.class.getName());
    context.setString(JobConstants.HADOOP_INPUTDIR, jobConf.input.inputDirectory);
View Full Code Here

Examples of org.apache.sqoop.job.etl.Exporter

    request.setOutputFormatClass(SqoopNullOutputFormat.class);
    request.setOutputKeyClass(Data.class);
    request.setOutputValueClass(NullWritable.class);

    Exporter exporter = (Exporter)request.getConnectorCallbacks();

    // Set up framework context
    MutableMapContext context = request.getFrameworkContext();
    context.setString(JobConstants.JOB_ETL_PARTITIONER, HdfsExportPartitioner.class.getName());
    context.setString(JobConstants.JOB_ETL_LOADER, exporter.getLoader().getName());
    context.setString(JobConstants.JOB_ETL_DESTROYER, exporter.getDestroyer().getName());

    // We should make one extractor that will be able to read all supported file types
    context.setString(JobConstants.JOB_ETL_EXTRACTOR, HdfsTextExportExtractor.class.getName());
    context.setString(JobConstants.HADOOP_INPUTDIR, jobConf.input.inputDirectory);
View Full Code Here

Examples of org.arquillian.recorder.reporter.Exporter

        sce2.setPhase(When.BEFORE);

        reporter.getReporterCursor().getCursor().getPropertyEntries().add(sce);
        reporter.getReporterCursor().getCursor().getPropertyEntries().add(sce2);

        Exporter exporter = new XMLExporter(JAXBContextFactory.initContext(Report.class));
        exporter.setConfiguration(configuration);

        exporter.export(reporter.getReport());
    }
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.