public synchronized void removeSchedule ( final Schedule sched ) { final Pair < Integer , String > identityPairMap = sched . getScheduleIdentityPair ( ) ; final Schedule schedule = this . scheduleIdentityPairMap . get ( identityPairMap ) ; if ( schedule != null ) { this . scheduleIdentityPairMap . remove ( identityPairMap ) ; } this . scheduleIDMap . remove ( sched . getScheduleId ( ) ) ; try { this . loader . removeSchedule ( sched ) ; } catch ( final ScheduleManagerException e ) { logger . error ( e ) ; } }
Removes the flow from the schedule if it exists .