Subversion Repositories SmartDukaan

Rev

Rev 5674 | Rev 5680 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5674 Rev 5679
Line 44... Line 44...
44
	    		alertMap = entityHandler.getAlertMapper(entity.getEntityType(), entity.getEventType());
44
	    		alertMap = entityHandler.getAlertMapper(entity.getEntityType(), entity.getEventType());
45
	    		if(alertMap!=null) {
45
	    		if(alertMap!=null) {
46
	    			delayedEventDescription = alertMap.getEventdesciption();
46
	    			delayedEventDescription = alertMap.getEventdesciption();
47
	    		}
47
	    		}
48
    			logActive.error(new Date(entity.getCriticalExpiryTime()) + "\tEntityType=" + 
48
    			logActive.error(new Date(entity.getCriticalExpiryTime()) + "\tEntityType=" + 
49
						entity.getEntityType() + " ; "+"\tEventType=" + delayedEventDescription + " ; " +
49
						entity.getEntityType() + " ; " + "\t" + entity.getEntityIdentifier() + 
-
 
50
						"\tEventType=" + delayedEventDescription + " ; " + "AlertSeverity=CRITICAL ; " + 
50
						"AlertSeverity=CRITICAL ; " + "ExpiredTime=" + new Date(entity.getCriticalExpiryTime()));
51
						"ExpiredTime=" + new Date(entity.getCriticalExpiryTime()));
51
    			if(entity.getEntityProcessedState() != EntityProcessedState.CRITICAL_SENT) {
52
    			if(entity.getEntityProcessedState() != EntityProcessedState.CRITICAL_SENT) {
52
	    		alert(entity, EntityProcessedState.CRITICAL_SENT);
53
	    		alert(entity, EntityProcessedState.CRITICAL_SENT);
53
	    		entityHandler.updateEntityProcessedState(entity.getId(), 
54
	    		entityHandler.updateEntityProcessedState(entity.getId(), 
54
	    						EntityProcessedState.CRITICAL_SENT);
55
	    						EntityProcessedState.CRITICAL_SENT);
55
    			}
56
    			}
Line 59... Line 60...
59
	    		alertMap = entityHandler.getAlertMapper(entity.getEntityType(), entity.getEventType());
60
	    		alertMap = entityHandler.getAlertMapper(entity.getEntityType(), entity.getEventType());
60
	    		if(alertMap!=null) {
61
	    		if(alertMap!=null) {
61
	    			delayedEventDescription = alertMap.getEventdesciption();
62
	    			delayedEventDescription = alertMap.getEventdesciption();
62
	    		}
63
	    		}
63
    			logActive.warn(new Date(entity.getCriticalExpiryTime()) + "\tEntityType=" + 
64
    			logActive.warn(new Date(entity.getCriticalExpiryTime()) + "\tEntityType=" + 
64
						entity.getEntityType() + " ; "+"\tEventType=" + delayedEventDescription + " ; " +
65
						entity.getEntityType() + " ; " + "\t" + entity.getEntityIdentifier() +
-
 
66
						"\tEventType=" + delayedEventDescription + " ; " + "AlertSeverity=WARN ; " +
65
						"AlertSeverity=WARN ; " + "ExpiredTime=" + new Date(entity.getCriticalExpiryTime()));
67
						"ExpiredTime=" + new Date(entity.getWarnExpiryTime()));
66
    			if(entity.getEntityProcessedState() != EntityProcessedState.WARNING_SENT) {
68
    			if(entity.getEntityProcessedState() != EntityProcessedState.WARNING_SENT) {
67
    			alert(entity, EntityProcessedState.WARNING_SENT);
69
    			alert(entity, EntityProcessedState.WARNING_SENT);
68
	    		entityHandler.updateEntityProcessedState(entity.getId(), 
70
	    		entityHandler.updateEntityProcessedState(entity.getId(), 
69
	    						EntityProcessedState.WARNING_SENT);
71
	    						EntityProcessedState.WARNING_SENT);
70
    			}
72
    			}