1 6 package org.logicalcobwebs.proxool.admin; 7 8 import org.logicalcobwebs.proxool.ProxoolFacade; 9 import org.logicalcobwebs.proxool.ResultMonitor; 10 11 19 public abstract class SnapshotResultMonitor extends ResultMonitor { 20 21 private SnapshotIF snapshot; 22 23 private String alias; 24 25 28 public SnapshotResultMonitor(String alias) { 29 this.alias = alias; 30 } 31 32 37 public boolean check() throws Exception { 38 snapshot = ProxoolFacade.getSnapshot(alias); 39 return check(snapshot); 40 } 41 42 48 public abstract boolean check(SnapshotIF snapshot) throws Exception ; 49 50 54 public SnapshotIF getSnapshot() { 55 return snapshot; 56 } 57 58 } 59 60 61 | Popular Tags |