@Override public boolean equals(Object aThat) { if (this == aThat) { return true; } if (!(aThat instanceof HPCCECLDirectClient)) { return false; } HPCCECLDirectClient that = (HPCCECLDirectClient) aThat; EclDirectServiceSoapProxy thatSoapProxy; try { thatSoapProxy = that.getSoapProxy(); } catch (Exception e) { thatSoapProxy = null; } return EqualsUtil.areEqual( wsEclDirectServiceSoapProxy.getEndpoint(), thatSoapProxy.getEndpoint()) && EqualsUtil.areEqual( ((Stub) wsEclDirectServiceSoapProxy.getEclDirectServiceSoap()).getUsername(), ((Stub) thatSoapProxy.getEclDirectServiceSoap()).getUsername()) && EqualsUtil.areEqual( ((Stub) wsEclDirectServiceSoapProxy.getEclDirectServiceSoap()).getPassword(), ((Stub) thatSoapProxy.getEclDirectServiceSoap()).getPassword()); }
synchronized boolean updateLogicalFiles(DFUWorkunit wu) { if (wu != null && info.getID().equals(wu.getID()) && (EqualsUtil.hasChanged(info.getSourceLogicalName(), wu.getSourceLogicalName()) || EqualsUtil.hasChanged(info.getDestLogicalName(), wu.getDestLogicalName()))) { info = wu; setChanged(); return true; } return false; }
@Override public boolean equals(Object aThat) { if (this == aThat) { return true; } if (!(aThat instanceof FileSprayWorkunit)) { return false; } FileSprayWorkunit that = (FileSprayWorkunit) aThat; // now a proper field-by-field evaluation can be made return EqualsUtil.areEqual(platform, that.platform) && EqualsUtil.areEqual(info.getID(), that.info.getID()); }
synchronized boolean updateState(DFUWorkunit wu) { if (wu != null && info.getID().equals(wu.getID()) && EqualsUtil.hasChanged(info.getState(), wu.getState())) { info.setState(wu.getState()); setChanged(); return true; } return false; }
@Override public boolean equals(Object aThat) { if (this == aThat) { return true; } if (!(aThat instanceof HPCCWsClient)) { return false; } HPCCWsClient that = (HPCCWsClient) aThat; return EqualsUtil.areEqual(getConnection(), that.getConnection()); }