/** * Removes all scheduled jobs within a given time range. * * The method can be used to clear the entire scheduler index by specifying a range that * encompasses all time [0...Long.MAX_VALUE] or a single execution time can be removed by * setting start and end time to the same value. * * @param tx * The transaction under which the index is updated. * @param command * The remove command to process. * @param location * The location of the remove command in the Journal. * * @throws IOException if an error occurs while updating the scheduler index. */ protected void process(final Transaction tx, final KahaRemoveScheduledJobsCommand command, Location location) throws IOException { removeInRange(tx, command.getStartTime(), command.getEndTime(), location); }
public int hashCode() { int rc=2030791195; if (hasScheduler()) { rc ^= ( 1843257499^getScheduler().hashCode() ); } if (hasStartTime()) { rc ^= ( -125326801^(new Long(getStartTime())).hashCode() ); } if (hasEndTime()) { rc ^= ( 57410088^(new Long(getEndTime())).hashCode() ); } return rc; }
public java.lang.StringBuilder toString(java.lang.StringBuilder sb, String prefix) { if( hasScheduler() ) { sb.append(prefix+"scheduler: "); sb.append(getScheduler()); sb.append("\n"); } if( hasStartTime() ) { sb.append(prefix+"start_time: "); sb.append(getStartTime()); sb.append("\n"); } if( hasEndTime() ) { sb.append(prefix+"end_time: "); sb.append(getEndTime()); sb.append("\n"); } return sb; }
/** * Removes all scheduled jobs within a given time range. * * The method can be used to clear the entire scheduler index by specifying a range that * encompasses all time [0...Long.MAX_VALUE] or a single execution time can be removed by * setting start and end time to the same value. * * @param tx * The transaction under which the index is updated. * @param command * The remove command to process. * @param location * The location of the remove command in the Journal. * * @throws IOException if an error occurs while updating the scheduler index. */ protected void process(final Transaction tx, final KahaRemoveScheduledJobsCommand command, Location location) throws IOException { removeInRange(tx, command.getStartTime(), command.getEndTime(), location); }
public int hashCode() { int rc=2030791195; if (hasScheduler()) { rc ^= ( 1843257499^getScheduler().hashCode() ); } if (hasStartTime()) { rc ^= ( -125326801^(new Long(getStartTime())).hashCode() ); } if (hasEndTime()) { rc ^= ( 57410088^(new Long(getEndTime())).hashCode() ); } return rc; }
public int hashCode() { int rc=2030791195; if (hasScheduler()) { rc ^= ( 1843257499^getScheduler().hashCode() ); } if (hasStartTime()) { rc ^= ( -125326801^(new Long(getStartTime())).hashCode() ); } if (hasEndTime()) { rc ^= ( 57410088^(new Long(getEndTime())).hashCode() ); } return rc; }
/** * Removes all scheduled jobs within a given time range. * * The method can be used to clear the entire scheduler index by specifying a range that * encompasses all time [0...Long.MAX_VALUE] or a single execution time can be removed by * setting start and end time to the same value. * * @param tx * The transaction under which the index is updated. * @param command * The remove command to process. * @param location * The location of the remove command in the Journal. * * @throws IOException if an error occurs while updating the scheduler index. */ protected void process(final Transaction tx, final KahaRemoveScheduledJobsCommand command, Location location) throws IOException { removeInRange(tx, command.getStartTime(), command.getEndTime(), location); }
/** * Removes all scheduled jobs within a given time range. * * The method can be used to clear the entire scheduler index by specifying a range that * encompasses all time [0...Long.MAX_VALUE] or a single execution time can be removed by * setting start and end time to the same value. * * @param tx * The transaction under which the index is updated. * @param command * The remove command to process. * @param location * The location of the remove command in the Journal. * * @throws IOException if an error occurs while updating the scheduler index. */ protected void process(final Transaction tx, final KahaRemoveScheduledJobsCommand command, Location location) throws IOException { removeInRange(tx, command.getStartTime(), command.getEndTime(), location); }
public boolean equals(KahaRemoveScheduledJobsCommand obj) { if (hasScheduler() ^ obj.hasScheduler() ) return false; if (hasScheduler() && ( !getScheduler().equals(obj.getScheduler()) )) return false; if (hasStartTime() ^ obj.hasStartTime() ) return false; if (hasStartTime() && ( getStartTime()!=obj.getStartTime() )) return false; if (hasEndTime() ^ obj.hasEndTime() ) return false; if (hasEndTime() && ( getEndTime()!=obj.getEndTime() )) return false; return true; }
public boolean equals(KahaRemoveScheduledJobsCommand obj) { if (hasScheduler() ^ obj.hasScheduler() ) return false; if (hasScheduler() && ( !getScheduler().equals(obj.getScheduler()) )) return false; if (hasStartTime() ^ obj.hasStartTime() ) return false; if (hasStartTime() && ( getStartTime()!=obj.getStartTime() )) return false; if (hasEndTime() ^ obj.hasEndTime() ) return false; if (hasEndTime() && ( getEndTime()!=obj.getEndTime() )) return false; return true; }
public boolean equals(KahaRemoveScheduledJobsCommand obj) { if (hasScheduler() ^ obj.hasScheduler() ) return false; if (hasScheduler() && ( !getScheduler().equals(obj.getScheduler()) )) return false; if (hasStartTime() ^ obj.hasStartTime() ) return false; if (hasStartTime() && ( getStartTime()!=obj.getStartTime() )) return false; if (hasEndTime() ^ obj.hasEndTime() ) return false; if (hasEndTime() && ( getEndTime()!=obj.getEndTime() )) return false; return true; }
public void writeUnframed(org.apache.activemq.protobuf.CodedOutputStream output) throws java.io.IOException { if (hasScheduler()) { output.writeString(1, getScheduler()); } if (hasStartTime()) { output.writeInt64(2, getStartTime()); } if (hasEndTime()) { output.writeInt64(3, getEndTime()); } }
public KahaRemoveScheduledJobsCommand mergeFrom(KahaRemoveScheduledJobsCommand other) { if (other.hasScheduler()) { setScheduler(other.getScheduler()); } if (other.hasStartTime()) { setStartTime(other.getStartTime()); } if (other.hasEndTime()) { setEndTime(other.getEndTime()); } return this; }
public KahaRemoveScheduledJobsCommand mergeFrom(KahaRemoveScheduledJobsCommand other) { if (other.hasScheduler()) { setScheduler(other.getScheduler()); } if (other.hasStartTime()) { setStartTime(other.getStartTime()); } if (other.hasEndTime()) { setEndTime(other.getEndTime()); } return this; }
public void writeUnframed(org.apache.activemq.protobuf.CodedOutputStream output) throws java.io.IOException { if (hasScheduler()) { output.writeString(1, getScheduler()); } if (hasStartTime()) { output.writeInt64(2, getStartTime()); } if (hasEndTime()) { output.writeInt64(3, getEndTime()); } }
public KahaRemoveScheduledJobsCommand mergeFrom(KahaRemoveScheduledJobsCommand other) { if (other.hasScheduler()) { setScheduler(other.getScheduler()); } if (other.hasStartTime()) { setStartTime(other.getStartTime()); } if (other.hasEndTime()) { setEndTime(other.getEndTime()); } return this; }
public void writeUnframed(org.apache.activemq.protobuf.CodedOutputStream output) throws java.io.IOException { if (hasScheduler()) { output.writeString(1, getScheduler()); } if (hasStartTime()) { output.writeInt64(2, getStartTime()); } if (hasEndTime()) { output.writeInt64(3, getEndTime()); } }
public int serializedSizeUnframed() { if (memoizedSerializedSize != -1) return memoizedSerializedSize; int size = 0; if (hasScheduler()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeStringSize(1, getScheduler()); } if (hasStartTime()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeInt64Size(2, getStartTime()); } if (hasEndTime()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeInt64Size(3, getEndTime()); } 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 (hasStartTime()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeInt64Size(2, getStartTime()); } if (hasEndTime()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeInt64Size(3, getEndTime()); } 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 (hasStartTime()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeInt64Size(2, getStartTime()); } if (hasEndTime()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeInt64Size(3, getEndTime()); } memoizedSerializedSize = size; return size; }