com.friendshipsystems.fsshresourcemanager
Class FHostManager

java.lang.Object
  extended by com.friendshipsystems.fsshresourcemanager.FHostManager

public class FHostManager
extends java.lang.Object

The FHostManager takes care of the automatic host management.

Author:
FRIENDSHIP SYSTEMS

Method Summary
 boolean isHostAutoDeactivated(FHost host)
          Returns whether a host has been automatically deactivated
 void sendNoExecutorsLeftMail(java.lang.String appName, FJob job, int noAuthHostCount, int inactiveHostCount, int mismatchedFingerPrintCount, int autoDeactivatedHostCount)
          Sends a mail to the configured address informing that there are no active hosts left to execute a job.
 void sendNotificationEmail(FSshConnectionError error, java.lang.String hostName, boolean activate)
          Sends a notification email to the configured address informing that a host's active state has been changed automatically
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isHostAutoDeactivated

public boolean isHostAutoDeactivated(FHost host)
Returns whether a host has been automatically deactivated

Parameters:
host -
Returns:

sendNoExecutorsLeftMail

public void sendNoExecutorsLeftMail(java.lang.String appName,
                                    FJob job,
                                    int noAuthHostCount,
                                    int inactiveHostCount,
                                    int mismatchedFingerPrintCount,
                                    int autoDeactivatedHostCount)
Sends a mail to the configured address informing that there are no active hosts left to execute a job.

Parameters:
appName -
job -
noAuthHostCount -
inactiveHostCount -
mismatchedFingerPrintCount -
autoDeactivatedHostCount -

sendNotificationEmail

public void sendNotificationEmail(FSshConnectionError error,
                                  java.lang.String hostName,
                                  boolean activate)
Sends a notification email to the configured address informing that a host's active state has been changed automatically

Parameters:
error -
hostName -
activate -