src/jdk.jfr/share/classes/jdk/jfr/consumer/EventStream.java
branchJEP-349-branch
changeset 57434 216bf2e3b542
parent 57386 acdd0dbe37ee
child 57449 099789ceff7d
equal deleted inserted replaced
57433:83e4343a6984 57434:216bf2e3b542
    25 
    25 
    26 package jdk.jfr.consumer;
    26 package jdk.jfr.consumer;
    27 
    27 
    28 import java.io.IOException;
    28 import java.io.IOException;
    29 import java.nio.file.Path;
    29 import java.nio.file.Path;
       
    30 import java.security.AccessController;
    30 import java.time.Duration;
    31 import java.time.Duration;
    31 import java.time.Instant;
    32 import java.time.Instant;
    32 import java.util.function.Consumer;
    33 import java.util.function.Consumer;
    33 
    34 
    34 /**
    35 /**
    42      *
    43      *
    43      * @param directory location of the disk repository, not {@code null}
    44      * @param directory location of the disk repository, not {@code null}
    44      * @return an event stream, not {@code null}
    45      * @return an event stream, not {@code null}
    45      */
    46      */
    46     public static EventStream openRepository(Path directory) throws IOException {
    47     public static EventStream openRepository(Path directory) throws IOException {
    47         throw new UnsupportedOperationException("Not yet implemented");
    48         return new EventDirectoryStream(AccessController.getContext(), directory);
    48         // AccessControlContext acc = AccessController.getContext();
       
    49         // return new EventDirectoryStream(acc);
       
    50     }
    49     }
    51 
    50 
    52     /**
    51     /**
    53      * Creates an event stream starting from the first event in a file.
    52      * Creates an event stream starting from the first event in a file.
    54      *
    53      *