redis.clients.jedis.gears.resps.TriggerInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jedis_preview Show documentation
Show all versions of jedis_preview Show documentation
Jedis is a blazingly small and sane Redis java client.
The newest version!
package redis.clients.jedis.gears.resps;
import redis.clients.jedis.Builder;
import redis.clients.jedis.util.KeyValue;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
import static redis.clients.jedis.BuilderFactory.LONG;
import static redis.clients.jedis.BuilderFactory.STRING;
public class TriggerInfo {
private final String name;
private final String description;
private final String lastError;
private final long lastExecutionTime;
private final long numFailed;
private final long numFinished;
private final long numSuccess;
private final long numTrigger;
private final long totalExecutionTime;
public String getName() {
return name;
}
public String getDescription() {
return description;
}
public String getLastError() {
return lastError;
}
public long getLastExecutionTime() {
return lastExecutionTime;
}
public long getNumFailed() {
return numFailed;
}
public long getNumFinished() {
return numFinished;
}
public long getNumSuccess() {
return numSuccess;
}
public long getNumTrigger() {
return numTrigger;
}
public long getTotalExecutionTime() {
return totalExecutionTime;
}
public TriggerInfo(String name, String description, String lastError, long numFinished, long numSuccess,
long numFailed, long numTrigger, long lastExecutionTime, long totalExecutionTime) {
this.name = name;
this.description = description;
this.lastError = lastError;
this.numFinished = numFinished;
this.numSuccess = numSuccess;
this.numFailed = numFailed;
this.numTrigger = numTrigger;
this.lastExecutionTime = lastExecutionTime;
this.totalExecutionTime = totalExecutionTime;
}
public static final Builder> KEYSPACE_TRIGGER_INFO_LIST = new Builder>() {
@Override
public List build(Object data) {
List