/** {@inheritDoc} */ @Override public boolean equals(Object obj) { if (obj.getClass() == T1.class) { T1 that = (T1)obj; return topic == that.topic && id.equals(that.id); } return false; }
/** {@inheritDoc} */ @Override public boolean equals(Object obj) { if (obj.getClass() == T8.class) { T8 that = (T8)obj; return topic == that.topic && id1.equals(that.id1) && id2 == that.id2; } return false; }
/** * Check whether provided ID is root ID. * * @param id ID. * @return {@code True} if this is root ID. */ public static boolean isRootId(@Nullable IgniteUuid id) { return id != null && ROOT_ID.equals(id); }
/** {@inheritDoc} */ @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; GridCacheQueueItemKey itemKey = (GridCacheQueueItemKey)o; return idx == itemKey.idx && queueId.equals(itemKey.queueId); }
/** {@inheritDoc} */ @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; GridCacheQueueAdapter that = (GridCacheQueueAdapter)o; return id.equals(that.id); }
/** {@inheritDoc} */ @Override public boolean equals(Object obj) { if (obj.getClass() == T2.class) { T2 that = (T2)obj; return topic == that.topic && id1.equals(that.id1) && id2.equals(that.id2); } return false; }
/** {@inheritDoc} */ @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; CollocatedQueueItemKey itemKey = (CollocatedQueueItemKey)o; return idx == itemKey.idx && queueId.equals(itemKey.queueId); }
/** {@inheritDoc} */ @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; CollocatedSetItemKey that = (CollocatedSetItemKey)o; return setId.equals(that.setId) && item.equals(that.item); }
/** * @param hdr Queue header. * @param id Expected queue unique ID. * @return {@code True} if queue was removed. */ private static boolean queueRemoved(@Nullable GridCacheQueueHeader hdr, IgniteUuid id) { return hdr == null || !id.equals(hdr.id()); }
/** {@inheritDoc} */ @Override public boolean equals(Object obj) { if (obj == this) return true; if (obj == null || getClass() != obj.getClass()) return false; IgfsDirectoryInfo that = (IgfsDirectoryInfo)obj; return id.equals(that.id) && F.eq(props, that.props); }
/** {@inheritDoc} */ @Override public boolean equals(Object o) { if (o == this) return true; if (o == null || o.getClass() != getClass()) return false; IgfsBlockKey that = (IgfsBlockKey)o; return blockId == that.blockId && fileId.equals(that.fileId) && F.eq(affKey, that.affKey) && evictExclude == that.evictExclude; }
/** {@inheritDoc} */ @Override public boolean equals(Object o) { assert id != null; return this == o || o instanceof EventAdapter && id.equals(((Event)o).id()); }
/** {@inheritDoc} */ @Override public ComputeJobSibling getJobSibling(IgniteUuid jobId) { for (ComputeJobSibling sib : getJobSiblings()) if (sib.getJobId().equals(jobId)) return sib; return null; }
/** {@inheritDoc} */ @Override public boolean equals(Object obj) { if (obj == this) return true; if (obj == null || getClass() != obj.getClass()) return false; IgfsFileInfo that = (IgfsFileInfo)obj; return id.equals(that.id) && blockSize == that.blockSize && len == that.len && F.eq(affKey, that.affKey) && F.eq(props, that.props) && F.eq(lockId, that.lockId); }
/** {@inheritDoc} */ @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; assert obj instanceof GridTaskWorker; return ses.getId().equals(((GridTaskWorker<T, R>)obj).ses.getId()); }
/** * Notify processor that master leave aware handler must be invoked on all jobs with the given session ID. * * @param sesId Session ID. */ public void masterLeaveLocal(IgniteUuid sesId) { assert sesId != null; for (GridJobWorker job : activeJobs.values()) if (job.getSession().getId().equals(sesId)) job.onMasterNodeLeft(); }
/** {@inheritDoc} */ @Override public ComputeJobSibling getJobSibling(IgniteUuid jobId) { A.notNull(jobId, "jobId"); Collection<ComputeJobSibling> tmp = getJobSiblings(); for (ComputeJobSibling sibling : tmp) if (sibling.getJobId().equals(jobId)) return sibling; return null; }
/** * @return {@code True} if set header found in cache. * @throws IgniteCheckedException If failed. */ @SuppressWarnings("unchecked") boolean checkHeader() throws IgniteCheckedException { IgniteInternalCache<GridCacheSetHeaderKey, GridCacheSetHeader> cache0 = ctx.cache(); GridCacheSetHeader hdr = cache0.get(new GridCacheSetHeaderKey(name)); return hdr != null && hdr.id().equals(id); }
/** {@inheritDoc} */ @Override public boolean apply(Event evt) { return evt instanceof TaskEvent && ((TaskEvent)evt).taskSessionId() != null && ((TaskEvent)evt).taskSessionId().equals(sesId) && evt.type() == EVT_TASK_FAILED; } }