/** Create a {@code DataService} for the given dataset. */ public DataService(DatasetGraph dataset) { this.dataset = dataset; counters.add(CounterName.Requests); counters.add(CounterName.RequestsGood); counters.add(CounterName.RequestsBad); // Start ACTIVE. Registration controls visibility. goActive(); }
public long getRequests() { return counters.value(CounterName.Requests); }
public long value(CounterName c) { return get(c).value() ; }
public long getRequests() { return counters.value(CounterName.Requests); }
public void inc(CounterName c) { get(c).inc() ; }
public long getRequestsBad() { return counters.value(CounterName.RequestsBad); }
public void dec(CounterName c) { get(c).dec() ; }
/** Create a {@code DataService} for the given dataset. */ public DataService(DatasetGraph dataset) { this.dataset = dataset; counters.add(CounterName.Requests); counters.add(CounterName.RequestsGood); counters.add(CounterName.RequestsBad); // Start ACTIVE. Registration controls visibility. goActive(); }
public long getRequestsGood() { return counters.value(CounterName.RequestsGood); } //@Override
public long value(CounterName c) { return get(c).value() ; }
public Endpoint(Operation operation, String endpointName, AuthPolicy requestAuth) { this.operation = Objects.requireNonNull(operation, "operation"); if ( operation == null ) throw new InternalErrorException("operation is null"); this.endpointName = Objects.requireNonNull(endpointName, "endpointName"); this.authPolicy = requestAuth; // Standard counters - there may be others counters.add(CounterName.Requests); counters.add(CounterName.RequestsGood); counters.add(CounterName.RequestsBad); }
public long getRequestsGood() { return counters.value(CounterName.RequestsGood); }
public void inc(CounterName c) { get(c).inc() ; }
public Endpoint(Operation operation, String endpointName, AuthPolicy requestAuth) { this.operation = Objects.requireNonNull(operation, "operation"); if ( operation == null ) throw new InternalErrorException("operation is null"); this.endpointName = Objects.requireNonNull(endpointName, "endpointName"); this.authPolicy = requestAuth; // Standard counters - there may be others counters.add(CounterName.Requests); counters.add(CounterName.RequestsGood); counters.add(CounterName.RequestsBad); }