Implement snapshot status on platform level
fix tests with node filters
@@ -98,7 +98,6 @@ public class SnapshotOperation implements Serializable {
return extraParam;
}
- /** {@inheritDoc} */
@Override public boolean equals(Object o) {
if (this == o)
return true;
@@ -111,19 +110,15 @@ public class SnapshotOperation implements Serializable {
return false;
if (type != operation.type)
return false;
- if (cacheNames != null ? !cacheNames.equals(operation.cacheNames) : operation.cacheNames != null)
- return false;
if (msg != null ? !msg.equals(operation.msg) : operation.msg != null)
return false;
return extraParam != null ? extraParam.equals(operation.extraParam) : operation.extraParam == null;
}
- /** {@inheritDoc} */
@Override public int hashCode() {
- int result = type != null ? type.hashCode() : 0;
+ int result = type.hashCode();
result = 31 * result + (int)(snapshotId ^ (snapshotId >>> 32));
- result = 31 * result + (cacheNames != null ? cacheNames.hashCode() : 0);
result = 31 * result + (msg != null ? msg.hashCode() : 0);
result = 31 * result + (extraParam != null ? extraParam.hashCode() : 0);
return result;
