src/jdk.jfr/share/classes/jdk/jfr/internal/Repository.java
branchJEP-349-branch
changeset 58250 5851f445c684
parent 58249 e17143e28542
equal deleted inserted replaced
58249:e17143e28542 58250:5851f445c684
    54 
    54 
    55     public static Repository getRepository() {
    55     public static Repository getRepository() {
    56         return instance;
    56         return instance;
    57     }
    57     }
    58 
    58 
    59     public synchronized void setBasePath(SafePath baseLocation) throws Exception {
    59     public synchronized void setBasePath(SafePath baseLocation) throws IOException {
    60 
       
    61         if(baseLocation.equals(this.baseLocation)) {
    60         if(baseLocation.equals(this.baseLocation)) {
    62             Logger.log(LogTag.JFR, LogLevel.INFO, "Same base repository path " + baseLocation.toString() + " is set");
    61             Logger.log(LogTag.JFR, LogLevel.INFO, "Same base repository path " + baseLocation.toString() + " is set");
    63             return;
    62             return;
    64         }
    63         }
    65         // Probe to see if repository can be created, needed for fail fast
    64         // Probe to see if repository can be created, needed for fail fast