return lowerBreachNotification;
}
public void notify(RemoteServiceEvent event) {
SLAThresholdEvent slaEvent = (SLAThresholdEvent)event;
SLA sla = slaEvent.getSLA();
Calculable c = slaEvent.getCalculable();
String type = slaEvent.getThresholdType().name();
System.out.println(type+" current: "+c.getValue()+", low: " + sla.getLowThreshold() + ", high: " + sla.getHighThreshold());
if(slaEvent.getThresholdType()== ThresholdType.BREACHED) {
if(c.getValue()>sla.getHighThreshold())
upperBreachNotification = true;
if(c.getValue()<sla.getLowThreshold())
lowerBreachNotification = true;
}
}