コード例 #1
0
 public PList getDiskList() {
   if (diskList == null) {
     try {
       diskList = store.getPList(name);
     } catch (Exception e) {
       LOG.error("Caught an IO Exception getting the DiskList {}", name, e);
       throw new RuntimeException(e);
     }
   }
   return diskList;
 }
コード例 #2
0
 private void destroyDiskList() throws Exception {
   if (diskList != null) {
     store.removePList(name);
     diskList = null;
   }
 }