Examples of LogStream


Examples of com.atomikos.persistence.LogStream

        logdir = Utils.findOrCreateFolder ( logdir );
       
        boolean serializableLogging= "true".equals(Utils.getTrimmedProperty (
                AbstractUserTransactionServiceFactory.SERIALIZABLE_LOGGING_PROPERTY_NAME, p ));
       
        LogStream logstream=null
    try {
      if (serializableLogging) {
          logstream = new FileLogStream ( logdir, logname );
      } else {
          logstream = new com.atomikos.persistence.dataserializable.FileLogStream ( logdir, logname );
View Full Code Here

Examples of com.jedics.util.LogStream

    super();
   
    setLayout(new GridLayout(1, 1));
   
    try {
      logStream = new LogStream();
      System.setOut(logStream);
      add(logStream.getTextArea());
    } catch(IOException e) {
      System.err.println("Could not create log stream.");
    }   
View Full Code Here

Examples of com.spotify.docker.client.LogStream

    deployJob(jobId, testHost());

    final TaskStatus taskStatus = awaitTaskState(jobId, testHost(), EXITED);
    try (final DockerClient dockerClient = getNewDockerClient()) {
      final LogStream logs = dockerClient.logs(taskStatus.getContainerId(), STDOUT, STDERR);
      final String log = logs.readFully();

      assertThat(log, containsString(server1));
      assertThat(log, containsString(server2));
    }
  }
View Full Code Here

Examples of com.spotify.docker.client.LogStream

    deployJob(jobId, testHost());

    final TaskStatus taskStatus = awaitTaskState(jobId, testHost(), EXITED);
    try (final DockerClient dockerClient = getNewDockerClient()) {
      final LogStream logs = dockerClient.logs(taskStatus.getContainerId(), STDOUT, STDERR);
      final String log = logs.readFully();

      // Verify that a nameserver is set even if we don't specify the --dns param
      assertThat(log, containsString("nameserver"));
    }
  }
View Full Code Here

Examples of com.spotify.docker.client.LogStream

      // deploy
      deployJob(jobId, testHost());

      final TaskStatus taskStatus = awaitTaskState(jobId, testHost(), EXITED);

      final LogStream logs = dockerClient.logs(taskStatus.getContainerId(), STDOUT, STDERR);
      final String log = logs.readFully();

      assertThat(log, containsString("pod: PODNAME"));
      assertThat(log, containsString("role: ROLENAME"));
      assertThat(log, containsString("foo: 4711"));
View Full Code Here

Examples of java.rmi.server.LogStream

    }
   
    public void testSetOutputStreamBad() throws Exception {
        // Regression test HARMONY-1198
        try {
            LogStream ls = LogStream.log("proba");
            ls.setOutputStream(null);
            fail("Expected NPE");
        } catch (NullPointerException e) {
            // expected
        }
    }
View Full Code Here

Examples of java.rmi.server.LogStream

        try {
            // set empty default stream to not print garbage to System.out/err
            LogStream.setDefaultStream(
                    new PrintStream(new ByteArrayOutputStream()));
            LogStream ls = LogStream.log("test");

            for (int i = 0; i < invalidPairs.length; ++i) {
                try {
                    ls.write(new byte[] { 1, 1 },
                            invalidPairs[i][0], invalidPairs[i][1]);
                    fail("IndexOutOfBoundsException "
                            + "is not thrown when off = " + invalidPairs[i][0]
                            + ", len = " + invalidPairs[i][1]);
                } catch (IndexOutOfBoundsException e) {
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.