result.setNextTime(command.getNextExecutionTime()); result.setLastUpdate(location); result.setRescheduledCount(command.getRescheduledCount()); result.setRepeat(result.getRepeat() - 1); if (this.index.containsKey(tx, command.getNextExecutionTime())) { target = this.index.remove(tx, command.getNextExecutionTime()); this.index.put(tx, command.getNextExecutionTime(), target); this.scheduleTime.newJob(); } else {
public java.lang.StringBuilder toString(java.lang.StringBuilder sb, String prefix) { if( hasScheduler() ) { sb.append(prefix+"scheduler: "); sb.append(getScheduler()); sb.append("\n"); } if( hasJobId() ) { sb.append(prefix+"job_id: "); sb.append(getJobId()); sb.append("\n"); } if( hasExecutionTime() ) { sb.append(prefix+"execution_time: "); sb.append(getExecutionTime()); sb.append("\n"); } if( hasNextExecutionTime() ) { sb.append(prefix+"next_execution_time: "); sb.append(getNextExecutionTime()); sb.append("\n"); } if( hasRescheduledCount() ) { sb.append(prefix+"rescheduled_count: "); sb.append(getRescheduledCount()); sb.append("\n"); } return sb; }
public java.lang.StringBuilder toString(java.lang.StringBuilder sb, String prefix) { if( hasScheduler() ) { sb.append(prefix+"scheduler: "); sb.append(getScheduler()); sb.append("\n"); } if( hasJobId() ) { sb.append(prefix+"job_id: "); sb.append(getJobId()); sb.append("\n"); } if( hasExecutionTime() ) { sb.append(prefix+"execution_time: "); sb.append(getExecutionTime()); sb.append("\n"); } if( hasNextExecutionTime() ) { sb.append(prefix+"next_execution_time: "); sb.append(getNextExecutionTime()); sb.append("\n"); } if( hasRescheduledCount() ) { sb.append(prefix+"rescheduled_count: "); sb.append(getRescheduledCount()); sb.append("\n"); } return sb; }
public java.lang.StringBuilder toString(java.lang.StringBuilder sb, String prefix) { if( hasScheduler() ) { sb.append(prefix+"scheduler: "); sb.append(getScheduler()); sb.append("\n"); } if( hasJobId() ) { sb.append(prefix+"job_id: "); sb.append(getJobId()); sb.append("\n"); } if( hasExecutionTime() ) { sb.append(prefix+"execution_time: "); sb.append(getExecutionTime()); sb.append("\n"); } if( hasNextExecutionTime() ) { sb.append(prefix+"next_execution_time: "); sb.append(getNextExecutionTime()); sb.append("\n"); } if( hasRescheduledCount() ) { sb.append(prefix+"rescheduled_count: "); sb.append(getRescheduledCount()); sb.append("\n"); } return sb; }
public int hashCode() { int rc=-900859449; if (hasScheduler()) { rc ^= ( 1843257499^getScheduler().hashCode() ); } if (hasJobId()) { rc ^= ( 71743896^getJobId().hashCode() ); } if (hasExecutionTime()) { rc ^= ( 1721021925^(new Long(getExecutionTime())).hashCode() ); } if (hasNextExecutionTime()) { rc ^= ( 1882983858^(new Long(getNextExecutionTime())).hashCode() ); } if (hasRescheduledCount()) { rc ^= ( -699334283^getRescheduledCount() ); } return rc; }
public int hashCode() { int rc=-900859449; if (hasScheduler()) { rc ^= ( 1843257499^getScheduler().hashCode() ); } if (hasJobId()) { rc ^= ( 71743896^getJobId().hashCode() ); } if (hasExecutionTime()) { rc ^= ( 1721021925^(new Long(getExecutionTime())).hashCode() ); } if (hasNextExecutionTime()) { rc ^= ( 1882983858^(new Long(getNextExecutionTime())).hashCode() ); } if (hasRescheduledCount()) { rc ^= ( -699334283^getRescheduledCount() ); } return rc; }
public int hashCode() { int rc=-900859449; if (hasScheduler()) { rc ^= ( 1843257499^getScheduler().hashCode() ); } if (hasJobId()) { rc ^= ( 71743896^getJobId().hashCode() ); } if (hasExecutionTime()) { rc ^= ( 1721021925^(new Long(getExecutionTime())).hashCode() ); } if (hasNextExecutionTime()) { rc ^= ( 1882983858^(new Long(getNextExecutionTime())).hashCode() ); } if (hasRescheduledCount()) { rc ^= ( -699334283^getRescheduledCount() ); } return rc; }
result.setNextTime(command.getNextExecutionTime()); result.setLastUpdate(location); result.setRescheduledCount(command.getRescheduledCount()); result.setRepeat(result.getRepeat() - 1); if (this.index.containsKey(tx, command.getNextExecutionTime())) { target = this.index.remove(tx, command.getNextExecutionTime()); this.index.put(tx, command.getNextExecutionTime(), target); this.scheduleTime.newJob(); } else {
public boolean equals(KahaRescheduleJobCommand obj) { if (hasScheduler() ^ obj.hasScheduler() ) return false; if (hasScheduler() && ( !getScheduler().equals(obj.getScheduler()) )) return false; if (hasJobId() ^ obj.hasJobId() ) return false; if (hasJobId() && ( !getJobId().equals(obj.getJobId()) )) return false; if (hasExecutionTime() ^ obj.hasExecutionTime() ) return false; if (hasExecutionTime() && ( getExecutionTime()!=obj.getExecutionTime() )) return false; if (hasNextExecutionTime() ^ obj.hasNextExecutionTime() ) return false; if (hasNextExecutionTime() && ( getNextExecutionTime()!=obj.getNextExecutionTime() )) return false; if (hasRescheduledCount() ^ obj.hasRescheduledCount() ) return false; if (hasRescheduledCount() && ( getRescheduledCount()!=obj.getRescheduledCount() )) return false; return true; }
public boolean equals(KahaRescheduleJobCommand obj) { if (hasScheduler() ^ obj.hasScheduler() ) return false; if (hasScheduler() && ( !getScheduler().equals(obj.getScheduler()) )) return false; if (hasJobId() ^ obj.hasJobId() ) return false; if (hasJobId() && ( !getJobId().equals(obj.getJobId()) )) return false; if (hasExecutionTime() ^ obj.hasExecutionTime() ) return false; if (hasExecutionTime() && ( getExecutionTime()!=obj.getExecutionTime() )) return false; if (hasNextExecutionTime() ^ obj.hasNextExecutionTime() ) return false; if (hasNextExecutionTime() && ( getNextExecutionTime()!=obj.getNextExecutionTime() )) return false; if (hasRescheduledCount() ^ obj.hasRescheduledCount() ) return false; if (hasRescheduledCount() && ( getRescheduledCount()!=obj.getRescheduledCount() )) return false; return true; }
public boolean equals(KahaRescheduleJobCommand obj) { if (hasScheduler() ^ obj.hasScheduler() ) return false; if (hasScheduler() && ( !getScheduler().equals(obj.getScheduler()) )) return false; if (hasJobId() ^ obj.hasJobId() ) return false; if (hasJobId() && ( !getJobId().equals(obj.getJobId()) )) return false; if (hasExecutionTime() ^ obj.hasExecutionTime() ) return false; if (hasExecutionTime() && ( getExecutionTime()!=obj.getExecutionTime() )) return false; if (hasNextExecutionTime() ^ obj.hasNextExecutionTime() ) return false; if (hasNextExecutionTime() && ( getNextExecutionTime()!=obj.getNextExecutionTime() )) return false; if (hasRescheduledCount() ^ obj.hasRescheduledCount() ) return false; if (hasRescheduledCount() && ( getRescheduledCount()!=obj.getRescheduledCount() )) return false; return true; }
public KahaRescheduleJobCommand mergeFrom(KahaRescheduleJobCommand other) { if (other.hasScheduler()) { setScheduler(other.getScheduler()); } if (other.hasJobId()) { setJobId(other.getJobId()); } if (other.hasExecutionTime()) { setExecutionTime(other.getExecutionTime()); } if (other.hasNextExecutionTime()) { setNextExecutionTime(other.getNextExecutionTime()); } if (other.hasRescheduledCount()) { setRescheduledCount(other.getRescheduledCount()); } return this; }
public KahaRescheduleJobCommand mergeFrom(KahaRescheduleJobCommand other) { if (other.hasScheduler()) { setScheduler(other.getScheduler()); } if (other.hasJobId()) { setJobId(other.getJobId()); } if (other.hasExecutionTime()) { setExecutionTime(other.getExecutionTime()); } if (other.hasNextExecutionTime()) { setNextExecutionTime(other.getNextExecutionTime()); } if (other.hasRescheduledCount()) { setRescheduledCount(other.getRescheduledCount()); } return this; }
public void writeUnframed(org.apache.activemq.protobuf.CodedOutputStream output) throws java.io.IOException { if (hasScheduler()) { output.writeString(1, getScheduler()); } if (hasJobId()) { output.writeString(2, getJobId()); } if (hasExecutionTime()) { output.writeInt64(3, getExecutionTime()); } if (hasNextExecutionTime()) { output.writeInt64(4, getNextExecutionTime()); } if (hasRescheduledCount()) { output.writeInt32(5, getRescheduledCount()); } }
public void writeUnframed(org.apache.activemq.protobuf.CodedOutputStream output) throws java.io.IOException { if (hasScheduler()) { output.writeString(1, getScheduler()); } if (hasJobId()) { output.writeString(2, getJobId()); } if (hasExecutionTime()) { output.writeInt64(3, getExecutionTime()); } if (hasNextExecutionTime()) { output.writeInt64(4, getNextExecutionTime()); } if (hasRescheduledCount()) { output.writeInt32(5, getRescheduledCount()); } }
public void writeUnframed(org.apache.activemq.protobuf.CodedOutputStream output) throws java.io.IOException { if (hasScheduler()) { output.writeString(1, getScheduler()); } if (hasJobId()) { output.writeString(2, getJobId()); } if (hasExecutionTime()) { output.writeInt64(3, getExecutionTime()); } if (hasNextExecutionTime()) { output.writeInt64(4, getNextExecutionTime()); } if (hasRescheduledCount()) { output.writeInt32(5, getRescheduledCount()); } }
public KahaRescheduleJobCommand mergeFrom(KahaRescheduleJobCommand other) { if (other.hasScheduler()) { setScheduler(other.getScheduler()); } if (other.hasJobId()) { setJobId(other.getJobId()); } if (other.hasExecutionTime()) { setExecutionTime(other.getExecutionTime()); } if (other.hasNextExecutionTime()) { setNextExecutionTime(other.getNextExecutionTime()); } if (other.hasRescheduledCount()) { setRescheduledCount(other.getRescheduledCount()); } return this; }
public int serializedSizeUnframed() { if (memoizedSerializedSize != -1) return memoizedSerializedSize; int size = 0; if (hasScheduler()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeStringSize(1, getScheduler()); } if (hasJobId()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeStringSize(2, getJobId()); } if (hasExecutionTime()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeInt64Size(3, getExecutionTime()); } if (hasNextExecutionTime()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeInt64Size(4, getNextExecutionTime()); } if (hasRescheduledCount()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeInt32Size(5, getRescheduledCount()); } memoizedSerializedSize = size; return size; }
public int serializedSizeUnframed() { if (memoizedSerializedSize != -1) return memoizedSerializedSize; int size = 0; if (hasScheduler()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeStringSize(1, getScheduler()); } if (hasJobId()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeStringSize(2, getJobId()); } if (hasExecutionTime()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeInt64Size(3, getExecutionTime()); } if (hasNextExecutionTime()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeInt64Size(4, getNextExecutionTime()); } if (hasRescheduledCount()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeInt32Size(5, getRescheduledCount()); } memoizedSerializedSize = size; return size; }
public int serializedSizeUnframed() { if (memoizedSerializedSize != -1) return memoizedSerializedSize; int size = 0; if (hasScheduler()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeStringSize(1, getScheduler()); } if (hasJobId()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeStringSize(2, getJobId()); } if (hasExecutionTime()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeInt64Size(3, getExecutionTime()); } if (hasNextExecutionTime()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeInt64Size(4, getNextExecutionTime()); } if (hasRescheduledCount()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeInt32Size(5, getRescheduledCount()); } memoizedSerializedSize = size; return size; }