             count : @socialWorkers
         else
           serviceData = null
+
         @emit 'ServiceWentOffline', key, serviceData
+        @[@serviceToMethod[key]+'Leave']?(serviceData)
 
     services
 

    # log 'Leave: ', @parseRoutingKey args[0]
    @removeMonitorData @parseRoutingKey args[0]
    @checkForServices()

  addMonitorData:(data)->
    @monitorData[data.serviceGenericName]=data

    @getOnlineServices()
    @offlineServices


  # CHECKING METHODS

  checkForService:(serviceGenericName)->
    @getMonitorData(serviceGenericName) or no

  checkForServices:->
    @getOfflineServices()


  # EVENT HANDLING METHODS

  appKiteJoin:()->
  appKiteLeave:()->

  webtermKiteJoin:()->
  webtermKiteLeave:()->

  sharedHostingKiteJoin:()->
  sharedHostingKiteLeave:()->

  databaseKiteJoin:()->
  databaseKiteLeave:()->

  socialWorkerJoin:()->
  socialWorkerLeave:()->

