Examples of open()


Examples of com.lowagie.text.LwgDocument.open()

      // step 1: creation of a document-object
      LwgDocument document = new LwgDocument(LwgPageSize.A4);
      // step 2: we create a writer that listens to the document
      PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(dest));
      // step 3: we open the document
      document.open();
      PdfContentByte cb = writer.getDirectContent();
      PdfImportedPage page;
      int rotation;
      int i = 0;
      int p = 0;
View Full Code Here

Examples of com.mapr.TailSpout.open()

        // open spout
        Config conf = new Config();
        TopologyContext context = null;
        TestSpoutOutputCollector collector = new TestSpoutOutputCollector();
        spout.open(conf, context, collector);
       
        // add some files
        FileUtils.writeByteArrayToFile(new File(tempDir, "x-1"), payload("x-1"), true);
        FileUtils.writeByteArrayToFile(new File(tempDir, "x-2"), payload("x-2"), true);
View Full Code Here

Examples of com.metadot.book.connectr.client.channel.Channel.open()

    if (channelId == null)
      return; // Use of Channel API not enabled

    GWT.log("Creating client channel id: " + currentUser.getChannelId());
    Channel channel = ChannelFactory.createChannel(currentUser.getChannelId());
    channel.open(new SocketListener() {
      public void onOpen() {
        GWT.log("Channel onOpen()");
      }

      public void onMessage(String encodedData) {
View Full Code Here

Examples of com.mountainminds.eclemma.internal.ui.dialogs.MergeSessionsDialog.open()

    List<ICoverageSession> sessions = sm.getSessions();
    String descr = UIMessages.MergeSessionsDialogDescriptionDefault_value;
    descr = MessageFormat.format(descr, new Object[] { new Date() });
    final MergeSessionsDialog d = new MergeSessionsDialog(window.getShell(),
        sessions, descr);
    if (d.open() == IDialogConstants.OK_ID) {
      try {
        window.run(true, true,
            createJob(sm, d.getSessions(), d.getDescription()));
      } catch (InvocationTargetException e) {
        EclEmmaUIPlugin.log(e.getTargetException());
View Full Code Here

Examples of com.nebhale.letsmakeadeal.Game.open()

        Game game = this.gameRepository.retrieve(gameId);

        if (DoorStatus.SELECTED == status) {
            game.select(doorId);
        } else if (DoorStatus.OPEN == status) {
            game.open(doorId);
        } else {
            throw new IllegalTransitionException(gameId, doorId, status);
        }

        return new ResponseEntity<Void>(HttpStatus.OK);
View Full Code Here

Examples of com.netflix.suro.sink.Sink.open()

                "}";

        ObjectMapper mapper = injector.getInstance(ObjectMapper.class);

        Sink sink = mapper.readValue(s3FileSink, new TypeReference<Sink>(){});
        sink.open();

        for (Message m : new MessageSetReader(TestConnectionPool.createMessageSet(100000))) {
            sink.writeTo(new StringMessage(m));
        }
        sink.close();
View Full Code Here

Examples of com.netflix.suro.sink.elasticsearch.ElasticSearchSink.open()

                0,0,0,0,true,null,
                null,
                jsonMapper,
                client
        );
        sink.open();

        RoutingMap map = new RoutingMap();
        map.set(new ImmutableMap.Builder<String, RoutingMap.RoutingInfo>()
                .put(TOPIC_NAME, new RoutingMap.RoutingInfo(Lists.newArrayList(new RoutingMap.Route("es", null, null)), null))
                .build());
View Full Code Here

Examples of com.netflix.suro.sink.kafka.KafkaSink.open()

                "    \"request.required.acks\": 1\n" +
                "}";

        jsonMapper.registerSubtypes(new NamedType(KafkaSink.class, "kafka"));
        KafkaSink sink = jsonMapper.readValue(description, new TypeReference<Sink>(){});
        sink.open();
        Iterator<Message> msgIterator = new MessageSetReader(TestKafkaSink.createMessageSet(topicName, 2)).iterator();
        while (msgIterator.hasNext()) {
            sink.writeTo(new StringMessage(msgIterator.next()));
        }
        sink.close();
View Full Code Here

Examples of com.netflix.suro.sink.localfile.LocalFileSink.open()

                100,
                1000,
                true,
                spaceChecker
        );
        sink.open();

        SinkManager sinks = new SinkManager();
        sinks.initialSet(new ImmutableMap.Builder<String, Sink>()
                .put("local", sink).build());
View Full Code Here

Examples of com.novocode.naf.swt.custom.BalloonWindow.open()

                window.close();
            }
        });
        window.getShell().getDisplay().timerExec(timeout, closeWindow);

        window.open();

    }
}
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.