overriding hashCode and equals methods in AbstractClusterMonitor