repo_name
stringlengths
7
104
file_path
stringlengths
13
198
context
stringlengths
67
7.15k
import_statement
stringlengths
16
4.43k
code
stringlengths
40
6.98k
prompt
stringlengths
227
8.27k
next_line
stringlengths
8
795
cscotta/deschutes
src/main/java/com/cscotta/deschutes/input/CyclingProtobufPreReader.java
// Path: src/main/java/com/cscotta/deschutes/api/EventWrapper.java // public interface EventWrapper<RawInput, WrappedInput> { // // public WrappedInput wrap(RawInput raw); // // }
import com.cscotta.deschutes.api.EventWrapper; import com.google.protobuf.Parser; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.BufferedInputStream; import java.io.InputStream; import java.util.ArrayList; import java.util.Iterator;
package com.cscotta.deschutes.input; public class CyclingProtobufPreReader<ProtoType, Input> implements Iterable<Input> { final Parser<ProtoType> parser; final InputStream inputStream;
// Path: src/main/java/com/cscotta/deschutes/api/EventWrapper.java // public interface EventWrapper<RawInput, WrappedInput> { // // public WrappedInput wrap(RawInput raw); // // } // Path: src/main/java/com/cscotta/deschutes/input/CyclingProtobufPreReader.java import com.cscotta.deschutes.api.EventWrapper; impo...
final EventWrapper<ProtoType, Input> eventWrapper;
cscotta/deschutes
src/main/java/com/cscotta/deschutes/example/requests/RequestRollups.java
// Path: src/main/java/com/cscotta/deschutes/api/ConcurrentRollup.java // public interface ConcurrentRollup<Input> extends Event { // // /** // * <p>Rollup method called as events are received by a stream for // * aggregation.</p> // * // * <p>Implementations of ConcurrentRollup should accept {...
import com.cscotta.deschutes.api.ConcurrentRollup; import com.cscotta.deschutes.api.RollupFactory; import com.cscotta.deschutes.example.requests.RequestRollup; import com.cscotta.deschutes.example.requests.RequestEvent;
package com.cscotta.deschutes.example.requests; public class RequestRollups { public static final RollupFactory<RequestEvent> collapser = new RollupFactory<RequestEvent>() { @Override
// Path: src/main/java/com/cscotta/deschutes/api/ConcurrentRollup.java // public interface ConcurrentRollup<Input> extends Event { // // /** // * <p>Rollup method called as events are received by a stream for // * aggregation.</p> // * // * <p>Implementations of ConcurrentRollup should accept {...
public ConcurrentRollup<RequestEvent> buildRollup(long timestamp) {
cscotta/deschutes
src/main/java/com/cscotta/deschutes/example/requests/RequestRollups.java
// Path: src/main/java/com/cscotta/deschutes/api/ConcurrentRollup.java // public interface ConcurrentRollup<Input> extends Event { // // /** // * <p>Rollup method called as events are received by a stream for // * aggregation.</p> // * // * <p>Implementations of ConcurrentRollup should accept {...
import com.cscotta.deschutes.api.ConcurrentRollup; import com.cscotta.deschutes.api.RollupFactory; import com.cscotta.deschutes.example.requests.RequestRollup; import com.cscotta.deschutes.example.requests.RequestEvent;
package com.cscotta.deschutes.example.requests; public class RequestRollups { public static final RollupFactory<RequestEvent> collapser = new RollupFactory<RequestEvent>() { @Override public ConcurrentRollup<RequestEvent> buildRollup(long timestamp) {
// Path: src/main/java/com/cscotta/deschutes/api/ConcurrentRollup.java // public interface ConcurrentRollup<Input> extends Event { // // /** // * <p>Rollup method called as events are received by a stream for // * aggregation.</p> // * // * <p>Implementations of ConcurrentRollup should accept {...
return new RequestRollup(timestamp);
cscotta/deschutes
src/main/java/com/cscotta/deschutes/aggregation/Stream.java
// Path: src/main/java/com/cscotta/deschutes/api/Event.java // public interface Event { // // /** // * Retrieve the timestamp of an event, represented as a long in // * milliseconds since epoch. // * // * @return The timestamp of this event, represented as a long in // * milliseconds since...
import com.codahale.metrics.Meter; import com.cscotta.deschutes.api.Event; import com.cscotta.deschutes.api.StreamAggregator; import com.cscotta.deschutes.example.app.App; import com.google.common.collect.Lists; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.ArrayList; import java.util.List; ...
package com.cscotta.deschutes.aggregation; public class Stream<Input extends Event> { private final Iterable<Input> source;
// Path: src/main/java/com/cscotta/deschutes/api/Event.java // public interface Event { // // /** // * Retrieve the timestamp of an event, represented as a long in // * milliseconds since epoch. // * // * @return The timestamp of this event, represented as a long in // * milliseconds since...
private final Meter meter = App.metrics.meter("event_rate");
cscotta/deschutes
src/main/java/com/cscotta/deschutes/aggregation/Stream.java
// Path: src/main/java/com/cscotta/deschutes/api/Event.java // public interface Event { // // /** // * Retrieve the timestamp of an event, represented as a long in // * milliseconds since epoch. // * // * @return The timestamp of this event, represented as a long in // * milliseconds since...
import com.codahale.metrics.Meter; import com.cscotta.deschutes.api.Event; import com.cscotta.deschutes.api.StreamAggregator; import com.cscotta.deschutes.example.app.App; import com.google.common.collect.Lists; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.ArrayList; import java.util.List; ...
package com.cscotta.deschutes.aggregation; public class Stream<Input extends Event> { private final Iterable<Input> source; private final Meter meter = App.metrics.meter("event_rate"); private final int processorThreads; private static final Logger log = LoggerFactory.getLogger(Stream.class);
// Path: src/main/java/com/cscotta/deschutes/api/Event.java // public interface Event { // // /** // * Retrieve the timestamp of an event, represented as a long in // * milliseconds since epoch. // * // * @return The timestamp of this event, represented as a long in // * milliseconds since...
private final List<StreamAggregator<Input>> queries = Lists.newCopyOnWriteArrayList();
cscotta/deschutes
src/main/java/com/cscotta/deschutes/input/ProtobufReader.java
// Path: src/main/java/com/cscotta/deschutes/api/EventWrapper.java // public interface EventWrapper<RawInput, WrappedInput> { // // public WrappedInput wrap(RawInput raw); // // }
import com.cscotta.deschutes.api.EventWrapper; import com.google.protobuf.InvalidProtocolBufferException; import com.google.protobuf.Parser; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.*; import java.util.Iterator;
package com.cscotta.deschutes.input; public class ProtobufReader<ProtoType, Input> implements Iterable<Input> { final Parser<ProtoType> parser; final InputStream inputStream;
// Path: src/main/java/com/cscotta/deschutes/api/EventWrapper.java // public interface EventWrapper<RawInput, WrappedInput> { // // public WrappedInput wrap(RawInput raw); // // } // Path: src/main/java/com/cscotta/deschutes/input/ProtobufReader.java import com.cscotta.deschutes.api.EventWrapper; import com.goo...
final EventWrapper<ProtoType, Input> eventWrapper;
Gdeeer/deerweather
app/src/main/java/com/deerweather/app/model/DeerWeatherDB.java
// Path: app/src/main/java/com/deerweather/app/db/DeerWeatherOpenHelper.java // public class DeerWeatherOpenHelper extends SQLiteOpenHelper { // // public static final String CREATE_PROVINCE = "create table Province (" // + "id integer primary key autoincrement, " // + "province_name text, ...
import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import com.deerweather.app.db.DeerWeatherOpenHelper; import java.util.ArrayList; import java.util.List;
package com.deerweather.app.model; public class DeerWeatherDB { public static final String DB_NAME = "deer_weather"; public static final int VERSION = 2; private static DeerWeatherDB deerWeatherDB; private SQLiteDatabase db; private DeerWeatherDB(Context context) {
// Path: app/src/main/java/com/deerweather/app/db/DeerWeatherOpenHelper.java // public class DeerWeatherOpenHelper extends SQLiteOpenHelper { // // public static final String CREATE_PROVINCE = "create table Province (" // + "id integer primary key autoincrement, " // + "province_name text, ...
DeerWeatherOpenHelper dbHelper = new DeerWeatherOpenHelper(context, DB_NAME, null, VERSION);
eostermueller/heapSpank
src/test/java/com/github/eostermueller/heapspank/garbagespank/CalculatedColumnsTest.java
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/metricprovider/AbstractJStatMetricProvider.java // public abstract class AbstractJStatMetricProvider implements JStatMetricProvider { // @Override // public String getColumnEnhanced(boolean skipCalculatedCol, JStatLine current, JStatLine previous...
import static org.junit.Assert.*; import org.junit.Test; import com.github.eostermueller.heapspank.garbagespank.metricprovider.AbstractJStatMetricProvider; import com.github.eostermueller.heapspank.garbagespank.metricprovider.JStatMetricProvider;
package com.github.eostermueller.heapspank.garbagespank; public class CalculatedColumnsTest { private static final String TEST_PREFIX = "T_"; private static final String TEST_LINE = //"COL1 COL2\n" + "235 22153\n"; @Test public void canFormatForPageDataExtractor() {
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/metricprovider/AbstractJStatMetricProvider.java // public abstract class AbstractJStatMetricProvider implements JStatMetricProvider { // @Override // public String getColumnEnhanced(boolean skipCalculatedCol, JStatLine current, JStatLine previous...
AbstractJStatMetricProvider metricNames = new AbstractJStatMetricProvider() {
eostermueller/heapSpank
src/test/java/com/github/eostermueller/heapspank/leakyspank/TestCustomConfigClass.java
// Path: src/main/java/com/github/eostermueller/heapspank/leakyspank/console/CommandLineParameterException.java // public class CommandLineParameterException extends Exception { // // private String proposedConfigClassName = null; // public CommandLineParameterException(String string) { // super(string); // } // ...
import static org.junit.Assert.*; import org.junit.Test; import com.github.eostermueller.heapspank.leakyspank.console.CommandLineParameterException; import com.github.eostermueller.heapspank.leakyspank.console.Config; import com.github.eostermueller.heapspank.leakyspank.console.ConfigFactory;
package com.github.eostermueller.heapspank.leakyspank; public class TestCustomConfigClass { @Test
// Path: src/main/java/com/github/eostermueller/heapspank/leakyspank/console/CommandLineParameterException.java // public class CommandLineParameterException extends Exception { // // private String proposedConfigClassName = null; // public CommandLineParameterException(String string) { // super(string); // } // ...
public void test() throws CommandLineParameterException {
eostermueller/heapSpank
src/test/java/com/github/eostermueller/heapspank/leakyspank/TestCustomConfigClass.java
// Path: src/main/java/com/github/eostermueller/heapspank/leakyspank/console/CommandLineParameterException.java // public class CommandLineParameterException extends Exception { // // private String proposedConfigClassName = null; // public CommandLineParameterException(String string) { // super(string); // } // ...
import static org.junit.Assert.*; import org.junit.Test; import com.github.eostermueller.heapspank.leakyspank.console.CommandLineParameterException; import com.github.eostermueller.heapspank.leakyspank.console.Config; import com.github.eostermueller.heapspank.leakyspank.console.ConfigFactory;
package com.github.eostermueller.heapspank.leakyspank; public class TestCustomConfigClass { @Test public void test() throws CommandLineParameterException { String args[] = { "-config", "com.github.eostermueller.heapspank.leakyspank.MyTestConfig" };
// Path: src/main/java/com/github/eostermueller/heapspank/leakyspank/console/CommandLineParameterException.java // public class CommandLineParameterException extends Exception { // // private String proposedConfigClassName = null; // public CommandLineParameterException(String string) { // super(string); // } // ...
Config testConfig = new ConfigFactory().createNew(args);
eostermueller/heapSpank
src/test/java/com/github/eostermueller/heapspank/leakyspank/TestCustomConfigClass.java
// Path: src/main/java/com/github/eostermueller/heapspank/leakyspank/console/CommandLineParameterException.java // public class CommandLineParameterException extends Exception { // // private String proposedConfigClassName = null; // public CommandLineParameterException(String string) { // super(string); // } // ...
import static org.junit.Assert.*; import org.junit.Test; import com.github.eostermueller.heapspank.leakyspank.console.CommandLineParameterException; import com.github.eostermueller.heapspank.leakyspank.console.Config; import com.github.eostermueller.heapspank.leakyspank.console.ConfigFactory;
package com.github.eostermueller.heapspank.leakyspank; public class TestCustomConfigClass { @Test public void test() throws CommandLineParameterException { String args[] = { "-config", "com.github.eostermueller.heapspank.leakyspank.MyTestConfig" };
// Path: src/main/java/com/github/eostermueller/heapspank/leakyspank/console/CommandLineParameterException.java // public class CommandLineParameterException extends Exception { // // private String proposedConfigClassName = null; // public CommandLineParameterException(String string) { // super(string); // } // ...
Config testConfig = new ConfigFactory().createNew(args);
eostermueller/heapSpank
src/main/java/com/github/eostermueller/heapspank/leakyspank/console/Config.java
// Path: src/main/java/com/github/eostermueller/heapspank/leakyspank/ClassNameFilter.java // public interface ClassNameFilter { // boolean accept(String className); // }
import java.util.List; import com.github.eostermueller.heapspank.leakyspank.ClassNameFilter;
package com.github.eostermueller.heapspank.leakyspank.console; public interface Config { public static final String DEFAULT_FILE_NAME = "heapSpank.properties"; public abstract int getScreenRefreshIntervalSeconds(); public abstract void setScreenRefreshIntervalSeconds( int screenRefreshIntervalSeconds); int...
// Path: src/main/java/com/github/eostermueller/heapspank/leakyspank/ClassNameFilter.java // public interface ClassNameFilter { // boolean accept(String className); // } // Path: src/main/java/com/github/eostermueller/heapspank/leakyspank/console/Config.java import java.util.List; import com.github.eostermueller.hea...
ClassNameFilter getClassNameExclusionFilter();
eostermueller/heapSpank
src/main/java/com/github/eostermueller/heapspank/garbagespank/metricprovider/GcOldCapacity.java
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/JStatOption.java // public enum JStatOption { // gc, // gccapacity, // gcnew, // gcnewcapacity, // gcold, // gcoldcapacity, // gcmetacapacity, // gcutil // } // // Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/J...
import com.github.eostermueller.heapspank.garbagespank.JStatOption; import com.github.eostermueller.heapspank.garbagespank.JVMVersion;
package com.github.eostermueller.heapspank.garbagespank.metricprovider; public class GcOldCapacity extends AbstractJStatMetricProvider implements JStatMetricProvider { private static final String[] gcoldcapacity_metric_names = { "OGCMN_Minimum-old-generation-capacity-(kB)", "OGCMX_Maximum-old-generation-capacit...
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/JStatOption.java // public enum JStatOption { // gc, // gccapacity, // gcnew, // gcnewcapacity, // gcold, // gcoldcapacity, // gcmetacapacity, // gcutil // } // // Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/J...
public JVMVersion[] getSupportedVersions() {
eostermueller/heapSpank
src/main/java/com/github/eostermueller/heapspank/garbagespank/metricprovider/GcOldCapacity.java
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/JStatOption.java // public enum JStatOption { // gc, // gccapacity, // gcnew, // gcnewcapacity, // gcold, // gcoldcapacity, // gcmetacapacity, // gcutil // } // // Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/J...
import com.github.eostermueller.heapspank.garbagespank.JStatOption; import com.github.eostermueller.heapspank.garbagespank.JVMVersion;
package com.github.eostermueller.heapspank.garbagespank.metricprovider; public class GcOldCapacity extends AbstractJStatMetricProvider implements JStatMetricProvider { private static final String[] gcoldcapacity_metric_names = { "OGCMN_Minimum-old-generation-capacity-(kB)", "OGCMX_Maximum-old-generation-capacit...
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/JStatOption.java // public enum JStatOption { // gc, // gccapacity, // gcnew, // gcnewcapacity, // gcold, // gcoldcapacity, // gcmetacapacity, // gcutil // } // // Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/J...
public JStatOption getJStatOption() {
eostermueller/heapSpank
src/main/java/com/github/eostermueller/heapspank/leakyspank/console/DefaultConfig.java
// Path: src/main/java/com/github/eostermueller/heapspank/leakyspank/ClassNameFilter.java // public interface ClassNameFilter { // boolean accept(String className); // }
import java.util.regex.Matcher; import java.util.regex.Pattern; import com.github.eostermueller.heapspank.leakyspank.ClassNameFilter;
package com.github.eostermueller.heapspank.leakyspank.console; public class DefaultConfig implements Config { private boolean jmapHistoLive = false; private static final Object PARM_SELF_TEST = "-selfTest"; private static final String HEAP_SPANK = "heapSpank: ";
// Path: src/main/java/com/github/eostermueller/heapspank/leakyspank/ClassNameFilter.java // public interface ClassNameFilter { // boolean accept(String className); // } // Path: src/main/java/com/github/eostermueller/heapspank/leakyspank/console/DefaultConfig.java import java.util.regex.Matcher; import java.util.re...
private ClassNameFilter classNameFilter = null;
eostermueller/heapSpank
src/main/java/com/github/eostermueller/heapspank/garbagespank/metricprovider/GcNewCapacity.java
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/JStatOption.java // public enum JStatOption { // gc, // gccapacity, // gcnew, // gcnewcapacity, // gcold, // gcoldcapacity, // gcmetacapacity, // gcutil // } // // Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/J...
import com.github.eostermueller.heapspank.garbagespank.JStatOption; import com.github.eostermueller.heapspank.garbagespank.JVMVersion;
package com.github.eostermueller.heapspank.garbagespank.metricprovider; public class GcNewCapacity extends AbstractJStatMetricProvider implements JStatMetricProvider { private static final String[] gcnewcapacity_metric_names = { "NGCMN_Minimum-new-generation-capacity-(kB)", "NGCMX_Maximum-new-generation-capacit...
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/JStatOption.java // public enum JStatOption { // gc, // gccapacity, // gcnew, // gcnewcapacity, // gcold, // gcoldcapacity, // gcmetacapacity, // gcutil // } // // Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/J...
public JVMVersion[] getSupportedVersions() {
eostermueller/heapSpank
src/main/java/com/github/eostermueller/heapspank/garbagespank/metricprovider/GcNewCapacity.java
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/JStatOption.java // public enum JStatOption { // gc, // gccapacity, // gcnew, // gcnewcapacity, // gcold, // gcoldcapacity, // gcmetacapacity, // gcutil // } // // Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/J...
import com.github.eostermueller.heapspank.garbagespank.JStatOption; import com.github.eostermueller.heapspank.garbagespank.JVMVersion;
"S0CMX_Maximum-survivor-space-0-capacity-(kB)", "S0C_Current-survivor-space-0-capacity-(kB)", "S1CMX_Maximum-survivor-space-1-capacity-(kB)", "S1C_Current-survivor-space-1-capacity-(kB)", "ECMX_Maximum-eden-space-capacity-(kB)", "EC_Current-eden-space-capacity-(kB)", "YGC_Number-of-young-generation-GC-eve...
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/JStatOption.java // public enum JStatOption { // gc, // gccapacity, // gcnew, // gcnewcapacity, // gcold, // gcoldcapacity, // gcmetacapacity, // gcutil // } // // Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/J...
public JStatOption getJStatOption() {
eostermueller/heapSpank
src/test/java/com/github/eostermueller/heapspank/garbagespank/console/JStatHeaderTest.java
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/GarbageSpank.java // public class GarbageSpank { // public static final String GARBAGE_SPANK = "gs_"; // private static ConcurrentHashMap<JStatOption,JStatMetricProvider> metricNames // = new ConcurrentHashMap<JStatOption,JStatMetricProvider>()...
import static org.junit.Assert.*; import org.junit.Test; import com.github.eostermueller.heapspank.garbagespank.GarbageSpank; import com.github.eostermueller.heapspank.garbagespank.JStatOption; import com.github.eostermueller.heapspank.garbagespank.metricprovider.JStatMetricProvider;
package com.github.eostermueller.heapspank.garbagespank.console; public class JStatHeaderTest { /** * garbageSpank will use to header to detect the "option" passed to jstat, * so we'll know which metrics to add. */ @Test public void test() {
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/GarbageSpank.java // public class GarbageSpank { // public static final String GARBAGE_SPANK = "gs_"; // private static ConcurrentHashMap<JStatOption,JStatMetricProvider> metricNames // = new ConcurrentHashMap<JStatOption,JStatMetricProvider>()...
GarbageSpank gs = new GarbageSpank();
eostermueller/heapSpank
src/test/java/com/github/eostermueller/heapspank/garbagespank/console/JStatHeaderTest.java
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/GarbageSpank.java // public class GarbageSpank { // public static final String GARBAGE_SPANK = "gs_"; // private static ConcurrentHashMap<JStatOption,JStatMetricProvider> metricNames // = new ConcurrentHashMap<JStatOption,JStatMetricProvider>()...
import static org.junit.Assert.*; import org.junit.Test; import com.github.eostermueller.heapspank.garbagespank.GarbageSpank; import com.github.eostermueller.heapspank.garbagespank.JStatOption; import com.github.eostermueller.heapspank.garbagespank.metricprovider.JStatMetricProvider;
package com.github.eostermueller.heapspank.garbagespank.console; public class JStatHeaderTest { /** * garbageSpank will use to header to detect the "option" passed to jstat, * so we'll know which metrics to add. */ @Test public void test() { GarbageSpank gs = new GarbageSpank();
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/GarbageSpank.java // public class GarbageSpank { // public static final String GARBAGE_SPANK = "gs_"; // private static ConcurrentHashMap<JStatOption,JStatMetricProvider> metricNames // = new ConcurrentHashMap<JStatOption,JStatMetricProvider>()...
JStatMetricProvider mp = gs.getMetricByHeader("S0C S1C S0U S1U TT MTT DSS EC EU YGC YGCT");
eostermueller/heapSpank
src/test/java/com/github/eostermueller/heapspank/garbagespank/console/JStatHeaderTest.java
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/GarbageSpank.java // public class GarbageSpank { // public static final String GARBAGE_SPANK = "gs_"; // private static ConcurrentHashMap<JStatOption,JStatMetricProvider> metricNames // = new ConcurrentHashMap<JStatOption,JStatMetricProvider>()...
import static org.junit.Assert.*; import org.junit.Test; import com.github.eostermueller.heapspank.garbagespank.GarbageSpank; import com.github.eostermueller.heapspank.garbagespank.JStatOption; import com.github.eostermueller.heapspank.garbagespank.metricprovider.JStatMetricProvider;
package com.github.eostermueller.heapspank.garbagespank.console; public class JStatHeaderTest { /** * garbageSpank will use to header to detect the "option" passed to jstat, * so we'll know which metrics to add. */ @Test public void test() { GarbageSpank gs = new GarbageSpank(); JStatMetricProvide...
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/GarbageSpank.java // public class GarbageSpank { // public static final String GARBAGE_SPANK = "gs_"; // private static ConcurrentHashMap<JStatOption,JStatMetricProvider> metricNames // = new ConcurrentHashMap<JStatOption,JStatMetricProvider>()...
JStatOption.gcnew,
eostermueller/heapSpank
src/test/java/com/github/eostermueller/heapspank/leakyspank/TestLimitedSizeQueue.java
// Path: src/main/java/com/github/eostermueller/heapspank/util/LimitedSizeQueue.java // public class LimitedSizeQueue<E> extends ConcurrentLinkedQueue<E> { // private int limit; // // public LimitedSizeQueue(int limit) { // this.limit = limit; // } // // @Override // public boolean add(E o...
import com.github.eostermueller.heapspank.util.LimitedSizeQueue; import static org.junit.Assert.*; import java.util.Iterator; import org.junit.Test;
package com.github.eostermueller.heapspank.leakyspank; public class TestLimitedSizeQueue { @Test public void canTheQueueLimitItsSize() {
// Path: src/main/java/com/github/eostermueller/heapspank/util/LimitedSizeQueue.java // public class LimitedSizeQueue<E> extends ConcurrentLinkedQueue<E> { // private int limit; // // public LimitedSizeQueue(int limit) { // this.limit = limit; // } // // @Override // public boolean add(E o...
LimitedSizeQueue<String> lsq = new LimitedSizeQueue<String>(3);
eostermueller/heapSpank
src/main/java/com/github/eostermueller/heapspank/garbagespank/metricprovider/AbstractJStatMetricProvider.java
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/JStatLine.java // public class JStatLine { // private boolean skipCalculatedColumns; // public void setSkipCalculatedColumns(boolean b) { // this.skipCalculatedColumns = b; // } // public boolean getSkipCalculatedColumns() { // return this.s...
import com.github.eostermueller.heapspank.garbagespank.JStatLine;
package com.github.eostermueller.heapspank.garbagespank.metricprovider; public abstract class AbstractJStatMetricProvider implements JStatMetricProvider { @Override
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/JStatLine.java // public class JStatLine { // private boolean skipCalculatedColumns; // public void setSkipCalculatedColumns(boolean b) { // this.skipCalculatedColumns = b; // } // public boolean getSkipCalculatedColumns() { // return this.s...
public String getColumnEnhanced(boolean skipCalculatedCol, JStatLine current, JStatLine previous, long measurementIntervalInMilliSeconds, int i) {
eostermueller/heapSpank
src/main/java/com/github/eostermueller/heapspank/leakyspank/Model.java
// Path: src/main/java/com/github/eostermueller/heapspank/leakyspank/LeakySpankContext.java // public class LeakResult { // private long timestamp; // LeakResult() { // this.timestamp = System.currentTimeMillis(); // } // public JMapHistoLine line = null; // public int countRunsPresent = 0; // public int countR...
import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.Hashtable; import java.util.List; import com.github.eostermueller.heapspank.leakyspank.LeakySpankContext.LeakResult;
package com.github.eostermueller.heapspank.leakyspank; /** * Pojo representing parsed output of one execution of JAVA_HOME/bin/jmap -histo <myPid> */ public class Model { /** * There are a lot of extraneous classes in the jmap -histo output that get in the way of quick troubleshooting. * This list allows us...
// Path: src/main/java/com/github/eostermueller/heapspank/leakyspank/LeakySpankContext.java // public class LeakResult { // private long timestamp; // LeakResult() { // this.timestamp = System.currentTimeMillis(); // } // public JMapHistoLine line = null; // public int countRunsPresent = 0; // public int countR...
public void add(LeakResult[] toAdd) {
eostermueller/heapSpank
src/main/java/com/github/eostermueller/heapspank/leakyspank/LeakySpankContext.java
// Path: src/main/java/com/github/eostermueller/heapspank/leakyspank/LeakySpankContext.java // public class LeakResult { // private long timestamp; // LeakResult() { // this.timestamp = System.currentTimeMillis(); // } // public JMapHistoLine line = null; // public int countRunsPresent = 0; // public int countR...
import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.Iterator; import java.util.List; import com.github.eostermueller.heapspank.leakyspank.LeakySpankContext.LeakResult; import com.github.eostermueller.heapspank.util.BaseEvent; import com.github.eostermueller.heapspank....
package com.github.eostermueller.heapspank.leakyspank; public class LeakySpankContext { private List<EventListener> windowClosedListener = new ArrayList<EventListener>(); public void addWindowClosedListener(EventListener e) { this.windowClosedListener.add(e); }
// Path: src/main/java/com/github/eostermueller/heapspank/leakyspank/LeakySpankContext.java // public class LeakResult { // private long timestamp; // LeakResult() { // this.timestamp = System.currentTimeMillis(); // } // public JMapHistoLine line = null; // public int countRunsPresent = 0; // public int countR...
public static class WindowClosedEvent extends BaseEvent {
eostermueller/heapSpank
src/main/java/com/github/eostermueller/heapspank/leakyspank/LeakySpankContext.java
// Path: src/main/java/com/github/eostermueller/heapspank/leakyspank/LeakySpankContext.java // public class LeakResult { // private long timestamp; // LeakResult() { // this.timestamp = System.currentTimeMillis(); // } // public JMapHistoLine line = null; // public int countRunsPresent = 0; // public int countR...
import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.Iterator; import java.util.List; import com.github.eostermueller.heapspank.leakyspank.LeakySpankContext.LeakResult; import com.github.eostermueller.heapspank.util.BaseEvent; import com.github.eostermueller.heapspank....
package com.github.eostermueller.heapspank.leakyspank; public class LeakySpankContext { private List<EventListener> windowClosedListener = new ArrayList<EventListener>(); public void addWindowClosedListener(EventListener e) { this.windowClosedListener.add(e); } public static class WindowClosedEvent extends Ba...
// Path: src/main/java/com/github/eostermueller/heapspank/leakyspank/LeakySpankContext.java // public class LeakResult { // private long timestamp; // LeakResult() { // this.timestamp = System.currentTimeMillis(); // } // public JMapHistoLine line = null; // public int countRunsPresent = 0; // public int countR...
private LimitedSizeQueue<String> debugDisplayQ;
eostermueller/heapSpank
src/main/java/com/github/eostermueller/heapspank/leakyspank/LeakySpankContext.java
// Path: src/main/java/com/github/eostermueller/heapspank/leakyspank/LeakySpankContext.java // public class LeakResult { // private long timestamp; // LeakResult() { // this.timestamp = System.currentTimeMillis(); // } // public JMapHistoLine line = null; // public int countRunsPresent = 0; // public int countR...
import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.Iterator; import java.util.List; import com.github.eostermueller.heapspank.leakyspank.LeakySpankContext.LeakResult; import com.github.eostermueller.heapspank.util.BaseEvent; import com.github.eostermueller.heapspank....
this.pid = pid; this.intervalInSeconds = interval_in_seconds; this.runCountPerWindow = interval_count; this.setTopNSuspects(topNSupsects); this.setCountPresentThreshold(interval_count); this.recentJMapRuns = new LimitedSizeQueue<Model>(this.getRunCountPerWindow()+1);//the extra one will provide N compari...
// Path: src/main/java/com/github/eostermueller/heapspank/leakyspank/LeakySpankContext.java // public class LeakResult { // private long timestamp; // LeakResult() { // this.timestamp = System.currentTimeMillis(); // } // public JMapHistoLine line = null; // public int countRunsPresent = 0; // public int countR...
public List<LeakResult> getLeakSuspectsUnOrdered() {
eostermueller/heapSpank
src/test/java/com/github/eostermueller/heapspank/garbagespank/BoringJStatLineTest.java
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/metricprovider/AbstractJStatMetricProvider.java // public abstract class AbstractJStatMetricProvider implements JStatMetricProvider { // @Override // public String getColumnEnhanced(boolean skipCalculatedCol, JStatLine current, JStatLine previous...
import static org.junit.Assert.*; import org.junit.Test; import com.github.eostermueller.heapspank.garbagespank.metricprovider.AbstractJStatMetricProvider; import com.github.eostermueller.heapspank.garbagespank.metricprovider.JStatMetricProvider;
package com.github.eostermueller.heapspank.garbagespank; public class BoringJStatLineTest { private static final String TEST_PREFIX = "T_"; // private static final String TEST_LINE = // "COL1 COL2\n" + // "235 22153\n"; /** * Note that the jstat header _must_ be stripped off. */ private static...
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/metricprovider/AbstractJStatMetricProvider.java // public abstract class AbstractJStatMetricProvider implements JStatMetricProvider { // @Override // public String getColumnEnhanced(boolean skipCalculatedCol, JStatLine current, JStatLine previous...
AbstractJStatMetricProvider metricNames = new AbstractJStatMetricProvider() {
eostermueller/heapSpank
src/main/java/com/github/eostermueller/heapspank/garbagespank/JStatLine.java
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/metricprovider/JStatMetricProvider.java // public interface JStatMetricProvider { // public static final String CALC_COLUMN_NOT_SUPPORTED = "<CalculatedColumnNotSupported>"; // // public int getIndexOfFirstEnhancedColumn(); // // JVMVersion[...
import java.util.Arrays; import com.github.eostermueller.heapspank.garbagespank.metricprovider.JStatMetricProvider;
package com.github.eostermueller.heapspank.garbagespank; /** * Reads in one row of this from $JAVA_HOME/bin/jstat * <PRE> S0 S1 E O M CCS YGC YGCT FGC FGCT GCT 0.00 0.00 63.97 86.27 98.13 96.64 4177 13.151 17 2.668 15.820 </PRE> and parses the in...
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/metricprovider/JStatMetricProvider.java // public interface JStatMetricProvider { // public static final String CALC_COLUMN_NOT_SUPPORTED = "<CalculatedColumnNotSupported>"; // // public int getIndexOfFirstEnhancedColumn(); // // JVMVersion[...
JStatMetricProvider metricProvider = null;
eostermueller/heapSpank
src/main/java/com/github/eostermueller/heapspank/leakyspank/tools/VirtualMachineWrapper.java
// Path: src/main/java/com/github/eostermueller/heapspank/util/IOUtil.java // public class IOUtil { // // private IOUtil() {} // // public static String read(InputStream in) throws IOException { // StringBuilder builder = new StringBuilder(); // byte b[] = new byte[256]; // int n; // ...
import java.io.File; import java.io.IOException; import java.io.InputStream; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.net.MalformedURLException; import java.net.URL; import java.net.URLClassLoader; import com.github.eostermueller.heapspank.util.IOUtil;
//Class<?> c = loader.loadClass("com.sun.tools.attach.VirtualMachine"); c = loader.loadClass(HOT_SPOT_VM_CLASS_NAME); } catch (Exception e1) { JMapHistoException e2 = new JMapHistoException(e1); throw e2; } return c; } /** * The following link shows that -live or -all must be passed to he...
// Path: src/main/java/com/github/eostermueller/heapspank/util/IOUtil.java // public class IOUtil { // // private IOUtil() {} // // public static String read(InputStream in) throws IOException { // StringBuilder builder = new StringBuilder(); // byte b[] = new byte[256]; // int n; // ...
histo = IOUtil.read(in);
eostermueller/heapSpank
src/main/java/com/github/eostermueller/heapspank/garbagespank/metricprovider/GcCapacity.java
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/JStatOption.java // public enum JStatOption { // gc, // gccapacity, // gcnew, // gcnewcapacity, // gcold, // gcoldcapacity, // gcmetacapacity, // gcutil // } // // Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/J...
import com.github.eostermueller.heapspank.garbagespank.JStatOption; import com.github.eostermueller.heapspank.garbagespank.JVMVersion;
package com.github.eostermueller.heapspank.garbagespank.metricprovider; public class GcCapacity extends AbstractJStatMetricProvider implements JStatMetricProvider { private static final String[] gccapacity_metric_names = { "NGCMN_Minimum-new-generation-capacity-(kB)", "NGCMX_Maximum-new-generation-capacity-(kB)...
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/JStatOption.java // public enum JStatOption { // gc, // gccapacity, // gcnew, // gcnewcapacity, // gcold, // gcoldcapacity, // gcmetacapacity, // gcutil // } // // Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/J...
public JStatOption getJStatOption() {
eostermueller/heapSpank
src/main/java/com/github/eostermueller/heapspank/garbagespank/metricprovider/GcCapacity.java
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/JStatOption.java // public enum JStatOption { // gc, // gccapacity, // gcnew, // gcnewcapacity, // gcold, // gcoldcapacity, // gcmetacapacity, // gcutil // } // // Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/J...
import com.github.eostermueller.heapspank.garbagespank.JStatOption; import com.github.eostermueller.heapspank.garbagespank.JVMVersion;
package com.github.eostermueller.heapspank.garbagespank.metricprovider; public class GcCapacity extends AbstractJStatMetricProvider implements JStatMetricProvider { private static final String[] gccapacity_metric_names = { "NGCMN_Minimum-new-generation-capacity-(kB)", "NGCMX_Maximum-new-generation-capacity-(kB)...
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/JStatOption.java // public enum JStatOption { // gc, // gccapacity, // gcnew, // gcnewcapacity, // gcold, // gcoldcapacity, // gcmetacapacity, // gcutil // } // // Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/J...
public JVMVersion[] getSupportedVersions() {
eostermueller/heapSpank
src/main/java/com/github/eostermueller/heapspank/garbagespank/metricprovider/JStatMetricProvider.java
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/JStatLine.java // public class JStatLine { // private boolean skipCalculatedColumns; // public void setSkipCalculatedColumns(boolean b) { // this.skipCalculatedColumns = b; // } // public boolean getSkipCalculatedColumns() { // return this.s...
import com.github.eostermueller.heapspank.garbagespank.JStatLine; import com.github.eostermueller.heapspank.garbagespank.JStatOption; import com.github.eostermueller.heapspank.garbagespank.JVMVersion;
package com.github.eostermueller.heapspank.garbagespank.metricprovider; public interface JStatMetricProvider { public static final String CALC_COLUMN_NOT_SUPPORTED = "<CalculatedColumnNotSupported>"; public int getIndexOfFirstEnhancedColumn();
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/JStatLine.java // public class JStatLine { // private boolean skipCalculatedColumns; // public void setSkipCalculatedColumns(boolean b) { // this.skipCalculatedColumns = b; // } // public boolean getSkipCalculatedColumns() { // return this.s...
JVMVersion[] getSupportedVersions();
eostermueller/heapSpank
src/main/java/com/github/eostermueller/heapspank/garbagespank/metricprovider/JStatMetricProvider.java
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/JStatLine.java // public class JStatLine { // private boolean skipCalculatedColumns; // public void setSkipCalculatedColumns(boolean b) { // this.skipCalculatedColumns = b; // } // public boolean getSkipCalculatedColumns() { // return this.s...
import com.github.eostermueller.heapspank.garbagespank.JStatLine; import com.github.eostermueller.heapspank.garbagespank.JStatOption; import com.github.eostermueller.heapspank.garbagespank.JVMVersion;
package com.github.eostermueller.heapspank.garbagespank.metricprovider; public interface JStatMetricProvider { public static final String CALC_COLUMN_NOT_SUPPORTED = "<CalculatedColumnNotSupported>"; public int getIndexOfFirstEnhancedColumn(); JVMVersion[] getSupportedVersions(); String getDescription(); St...
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/JStatLine.java // public class JStatLine { // private boolean skipCalculatedColumns; // public void setSkipCalculatedColumns(boolean b) { // this.skipCalculatedColumns = b; // } // public boolean getSkipCalculatedColumns() { // return this.s...
JStatOption getJStatOption();
eostermueller/heapSpank
src/main/java/com/github/eostermueller/heapspank/garbagespank/metricprovider/JStatMetricProvider.java
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/JStatLine.java // public class JStatLine { // private boolean skipCalculatedColumns; // public void setSkipCalculatedColumns(boolean b) { // this.skipCalculatedColumns = b; // } // public boolean getSkipCalculatedColumns() { // return this.s...
import com.github.eostermueller.heapspank.garbagespank.JStatLine; import com.github.eostermueller.heapspank.garbagespank.JStatOption; import com.github.eostermueller.heapspank.garbagespank.JVMVersion;
package com.github.eostermueller.heapspank.garbagespank.metricprovider; public interface JStatMetricProvider { public static final String CALC_COLUMN_NOT_SUPPORTED = "<CalculatedColumnNotSupported>"; public int getIndexOfFirstEnhancedColumn(); JVMVersion[] getSupportedVersions(); String getDescription(); St...
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/JStatLine.java // public class JStatLine { // private boolean skipCalculatedColumns; // public void setSkipCalculatedColumns(boolean b) { // this.skipCalculatedColumns = b; // } // public boolean getSkipCalculatedColumns() { // return this.s...
String getColumnEnhanced(boolean skipCalculatedColumns, JStatLine current, JStatLine previous, long mesasurementIntervalInMilliSeconds, int i);
eostermueller/heapSpank
src/main/java/com/github/eostermueller/heapspank/garbagespank/metricprovider/GcOld.java
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/JStatLine.java // public class JStatLine { // private boolean skipCalculatedColumns; // public void setSkipCalculatedColumns(boolean b) { // this.skipCalculatedColumns = b; // } // public boolean getSkipCalculatedColumns() { // return this.s...
import com.github.eostermueller.heapspank.garbagespank.JStatLine; import com.github.eostermueller.heapspank.garbagespank.JStatOption; import com.github.eostermueller.heapspank.garbagespank.JVMVersion;
rc = String.valueOf(percentage); } } else { rc = current.getRawColumnData()[columnIndex]; } return rc; } @Override public boolean metricsAvailableOnFirstJStatRun() { return false; } @Override public JVMVersion[] getSupportedVersions() { // TODO Auto-generated method stub r...
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/JStatLine.java // public class JStatLine { // private boolean skipCalculatedColumns; // public void setSkipCalculatedColumns(boolean b) { // this.skipCalculatedColumns = b; // } // public boolean getSkipCalculatedColumns() { // return this.s...
public JStatOption getJStatOption() {
eostermueller/heapSpank
src/test/java/com/github/eostermueller/heapspank/garbagespank/console/TestEnhancedConsoleUtil.java
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/GarbageSpank.java // public class GarbageSpank { // public static final String GARBAGE_SPANK = "gs_"; // private static ConcurrentHashMap<JStatOption,JStatMetricProvider> metricNames // = new ConcurrentHashMap<JStatOption,JStatMetricProvider>()...
import static org.junit.Assert.*; import java.io.BufferedReader; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; import java.io.StringReader; import java.nio.charset.StandardCharsets; import org.junit.Test; import com.github.eostermueller.heapspank.garbagespank.GarbageSpank...
package com.github.eostermueller.heapspank.garbagespank.console; public class TestEnhancedConsoleUtil { static String GCUTIL_ORIG_OUTPUT_HEADER = "S0 S1 E O M CCS YGC YGCT FGC FGCT GCT"; static String GCUTIL_ORIG_OUTPUT_LINE_1 = "0.00 100.00 22.38 40.13 97....
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/GarbageSpank.java // public class GarbageSpank { // public static final String GARBAGE_SPANK = "gs_"; // private static ConcurrentHashMap<JStatOption,JStatMetricProvider> metricNames // = new ConcurrentHashMap<JStatOption,JStatMetricProvider>()...
public void test() throws IOException, JStatHeaderException {
eostermueller/heapSpank
src/test/java/com/github/eostermueller/heapspank/garbagespank/console/TestEnhancedConsoleOld.java
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/GarbageSpank.java // public class GarbageSpank { // public static final String GARBAGE_SPANK = "gs_"; // private static ConcurrentHashMap<JStatOption,JStatMetricProvider> metricNames // = new ConcurrentHashMap<JStatOption,JStatMetricProvider>()...
import static org.junit.Assert.*; import java.io.BufferedReader; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; import java.io.StringReader; import java.nio.charset.StandardCharsets; import org.junit.Test; import com.github.eostermueller.heapspank.garbagespank.GarbageSpank...
package com.github.eostermueller.heapspank.garbagespank.console; public class TestEnhancedConsoleOld { static String GCOLD_ORIG_OUTPUT_HEADER = " MC MU CCSC CCSU OC OU YGC FGC FGCT GCT"; static String GCOLD_ORIG_OUTPUT_LINE_1 = " ...
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/GarbageSpank.java // public class GarbageSpank { // public static final String GARBAGE_SPANK = "gs_"; // private static ConcurrentHashMap<JStatOption,JStatMetricProvider> metricNames // = new ConcurrentHashMap<JStatOption,JStatMetricProvider>()...
public void test() throws IOException, JStatHeaderException {
eostermueller/heapSpank
src/test/java/com/github/eostermueller/heapspank/garbagespank/console/TestEnhancedColsoleNew.java
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/GarbageSpank.java // public class GarbageSpank { // public static final String GARBAGE_SPANK = "gs_"; // private static ConcurrentHashMap<JStatOption,JStatMetricProvider> metricNames // = new ConcurrentHashMap<JStatOption,JStatMetricProvider>()...
import static org.junit.Assert.*; import java.io.BufferedReader; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; import java.io.StringReader; import java.nio.charset.StandardCharsets; import org.junit.Test; import com.github.eostermueller.heapspank.garbagespank.GarbageSpank...
package com.github.eostermueller.heapspank.garbagespank.console; public class TestEnhancedColsoleNew { static String GCNEW_ORIG_OUTPUT_HEADER = "S0C S1C S0U S1U TT MTT DSS EC EU YGC YGCT"; static String GCNEW_ORIG_OUTPUT_LINE_1 = "12288.0 12288.0 2784.1 0.0 15 ...
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/GarbageSpank.java // public class GarbageSpank { // public static final String GARBAGE_SPANK = "gs_"; // private static ConcurrentHashMap<JStatOption,JStatMetricProvider> metricNames // = new ConcurrentHashMap<JStatOption,JStatMetricProvider>()...
public void test() throws IOException, JStatHeaderException {
eostermueller/heapSpank
src/main/java/com/github/eostermueller/heapspank/garbagespank/metricprovider/GcNew.java
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/JStatLine.java // public class JStatLine { // private boolean skipCalculatedColumns; // public void setSkipCalculatedColumns(boolean b) { // this.skipCalculatedColumns = b; // } // public boolean getSkipCalculatedColumns() { // return this.s...
import com.github.eostermueller.heapspank.garbagespank.JStatLine; import com.github.eostermueller.heapspank.garbagespank.JStatOption; import com.github.eostermueller.heapspank.garbagespank.JVMVersion;
return rc; } @Override public boolean metricsAvailableOnFirstJStatRun() { return false; } @Override public JVMVersion[] getSupportedVersions() { return new JVMVersion[]{JVMVersion.v1_8}; } @Override public String getDescription() { return "Displays statistics of the behavior of the new g...
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/JStatLine.java // public class JStatLine { // private boolean skipCalculatedColumns; // public void setSkipCalculatedColumns(boolean b) { // this.skipCalculatedColumns = b; // } // public boolean getSkipCalculatedColumns() { // return this.s...
public JStatOption getJStatOption() {
eostermueller/heapSpank
src/main/java/com/github/eostermueller/heapspank/garbagespank/metricprovider/GcMetaCapacity.java
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/JStatOption.java // public enum JStatOption { // gc, // gccapacity, // gcnew, // gcnewcapacity, // gcold, // gcoldcapacity, // gcmetacapacity, // gcutil // } // // Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/J...
import com.github.eostermueller.heapspank.garbagespank.JStatOption; import com.github.eostermueller.heapspank.garbagespank.JVMVersion;
package com.github.eostermueller.heapspank.garbagespank.metricprovider; public class GcMetaCapacity extends AbstractJStatMetricProvider implements JStatMetricProvider { private static final String[] gcmetacapacity = { "MCMN_Minimum-metaspace-capacity-(kB)", "MCMX_Maximum-metaspace-capacity-(kB)", "MC_Metaspac...
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/JStatOption.java // public enum JStatOption { // gc, // gccapacity, // gcnew, // gcnewcapacity, // gcold, // gcoldcapacity, // gcmetacapacity, // gcutil // } // // Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/J...
public JVMVersion[] getSupportedVersions() {
eostermueller/heapSpank
src/main/java/com/github/eostermueller/heapspank/garbagespank/metricprovider/GcMetaCapacity.java
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/JStatOption.java // public enum JStatOption { // gc, // gccapacity, // gcnew, // gcnewcapacity, // gcold, // gcoldcapacity, // gcmetacapacity, // gcutil // } // // Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/J...
import com.github.eostermueller.heapspank.garbagespank.JStatOption; import com.github.eostermueller.heapspank.garbagespank.JVMVersion;
package com.github.eostermueller.heapspank.garbagespank.metricprovider; public class GcMetaCapacity extends AbstractJStatMetricProvider implements JStatMetricProvider { private static final String[] gcmetacapacity = { "MCMN_Minimum-metaspace-capacity-(kB)", "MCMX_Maximum-metaspace-capacity-(kB)", "MC_Metaspac...
// Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/JStatOption.java // public enum JStatOption { // gc, // gccapacity, // gcnew, // gcnewcapacity, // gcold, // gcoldcapacity, // gcmetacapacity, // gcutil // } // // Path: src/main/java/com/github/eostermueller/heapspank/garbagespank/J...
public JStatOption getJStatOption() {
GoogleCloudPlatform/appengine-java-vm-runtime
appengine-jetty-managed-runtime/src/test/java/com/google/apphosting/vmruntime/jetty9/JettyRunner.java
// Path: appengine-jetty-managed-runtime/src/test/java/com/google/apphosting/vmruntime/jetty9/VmRuntimeTestBase.java // public static final String JETTY_HOME_PATTERN = ""//TestUtil.getRunfilesDir() // + "com/google/apphosting/vmruntime/jetty9/" + HOME_FOLDER;
import static com.google.apphosting.vmruntime.jetty9.VmRuntimeTestBase.JETTY_HOME_PATTERN; import java.io.File; import java.io.IOException; import java.util.Collections; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; import javax.servlet.jsp.JspFactory; import org.apache.jasper.runtim...
finally { Log.getLogger(Server.class).info("Started!"); started.countDown(); } try { if (Log.getLogger(Server.class).isDebugEnabled()) server.dumpStdErr(); server.join(); } catch (Exception e) { e.printStackTrace(); } } /** * Sets the system prope...
// Path: appengine-jetty-managed-runtime/src/test/java/com/google/apphosting/vmruntime/jetty9/VmRuntimeTestBase.java // public static final String JETTY_HOME_PATTERN = ""//TestUtil.getRunfilesDir() // + "com/google/apphosting/vmruntime/jetty9/" + HOME_FOLDER; // Path: appengine-jetty-managed-runtime/src/test/java...
System.setProperty("jetty.home", JETTY_HOME_PATTERN);
vibe-project/vibe-java-platform
websocket/src/main/java/org/atmosphere/vibe/platform/websocket/ServerWebSocket.java
// Path: action/src/main/java/org/atmosphere/vibe/platform/action/Action.java // public interface Action<T> { // // /** // * Some action is taken. // */ // void on(T object); // // }
import java.nio.ByteBuffer; import org.atmosphere.vibe.platform.action.Action;
/* * Copyright 2014 The Vibe Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
// Path: action/src/main/java/org/atmosphere/vibe/platform/action/Action.java // public interface Action<T> { // // /** // * Some action is taken. // */ // void on(T object); // // } // Path: websocket/src/main/java/org/atmosphere/vibe/platform/websocket/ServerWebSocket.java import java.nio.ByteBu...
ServerWebSocket ontext(Action<String> action);
vibe-project/vibe-java-platform
action/src/test/java/org/atmosphere/vibe/platform/action/ConcurrentActionsTest.java
// Path: action/src/main/java/org/atmosphere/vibe/platform/action/Actions.java // class Options { // // private boolean once; // private boolean memory; // private boolean unique; // // public Options() { // } // // public Options(Options options) { // once = options.once; // ...
import org.atmosphere.vibe.platform.action.Actions.Options;
/* * Copyright 2014 The Vibe Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
// Path: action/src/main/java/org/atmosphere/vibe/platform/action/Actions.java // class Options { // // private boolean once; // private boolean memory; // private boolean unique; // // public Options() { // } // // public Options(Options options) { // once = options.once; // ...
protected <T> Actions<T> createActions(Options options) {
vibe-project/vibe-java-platform
action/src/test/java/org/atmosphere/vibe/platform/action/SimpleActionsTest.java
// Path: action/src/main/java/org/atmosphere/vibe/platform/action/Actions.java // class Options { // // private boolean once; // private boolean memory; // private boolean unique; // // public Options() { // } // // public Options(Options options) { // once = options.once; // ...
import org.atmosphere.vibe.platform.action.Actions.Options;
/* * Copyright 2014 The Vibe Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
// Path: action/src/main/java/org/atmosphere/vibe/platform/action/Actions.java // class Options { // // private boolean once; // private boolean memory; // private boolean unique; // // public Options() { // } // // public Options(Options options) { // once = options.once; // ...
protected <T> Actions<T> createActions(Options options) {
vibe-project/vibe-java-platform
http/src/main/java/org/atmosphere/vibe/platform/http/ServerHttpExchange.java
// Path: action/src/main/java/org/atmosphere/vibe/platform/action/Action.java // public interface Action<T> { // // /** // * Some action is taken. // */ // void on(T object); // // }
import java.nio.ByteBuffer; import java.util.List; import java.util.Set; import org.atmosphere.vibe.platform.action.Action;
/* * Copyright 2014 The Vibe Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
// Path: action/src/main/java/org/atmosphere/vibe/platform/action/Action.java // public interface Action<T> { // // /** // * Some action is taken. // */ // void on(T object); // // } // Path: http/src/main/java/org/atmosphere/vibe/platform/http/ServerHttpExchange.java import java.nio.ByteBuffer; i...
ServerHttpExchange onchunk(Action<?> action);
vibe-project/vibe-java-platform
websocket/src/main/java/org/atmosphere/vibe/platform/websocket/AbstractServerWebSocket.java
// Path: action/src/main/java/org/atmosphere/vibe/platform/action/Action.java // public interface Action<T> { // // /** // * Some action is taken. // */ // void on(T object); // // } // // Path: action/src/main/java/org/atmosphere/vibe/platform/action/Actions.java // public interface Actions<T> { /...
import java.nio.ByteBuffer; import org.atmosphere.vibe.platform.action.Action; import org.atmosphere.vibe.platform.action.Actions; import org.atmosphere.vibe.platform.action.SimpleActions; import org.slf4j.Logger; import org.slf4j.LoggerFactory;
/* * Copyright 2014 The Vibe Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
// Path: action/src/main/java/org/atmosphere/vibe/platform/action/Action.java // public interface Action<T> { // // /** // * Some action is taken. // */ // void on(T object); // // } // // Path: action/src/main/java/org/atmosphere/vibe/platform/action/Actions.java // public interface Actions<T> { /...
errorActions.add(new Action<Throwable>() {
vibe-project/vibe-java-platform
action/src/test/java/org/atmosphere/vibe/platform/action/ActionsTest.java
// Path: action/src/main/java/org/atmosphere/vibe/platform/action/Actions.java // class Options { // // private boolean once; // private boolean memory; // private boolean unique; // // public Options() { // } // // public Options(Options options) { // once = options.once; // ...
import static org.hamcrest.Matchers.contains; import static org.hamcrest.Matchers.empty; import static org.hamcrest.Matchers.is; import static org.junit.Assert.assertThat; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.concurrent.atomic.AtomicInteger; import org.atmosp...
/* * Copyright 2014 The Vibe Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
// Path: action/src/main/java/org/atmosphere/vibe/platform/action/Actions.java // class Options { // // private boolean once; // private boolean memory; // private boolean unique; // // public Options() { // } // // public Options(Options options) { // once = options.once; // ...
Actions.Options options = new Actions.Options().unique(true);
vibe-project/vibe-java-platform
test/src/main/java/org/atmosphere/vibe/platform/test/ServerWebSocketTest.java
// Path: action/src/main/java/org/atmosphere/vibe/platform/action/Action.java // public interface Action<T> { // // /** // * Some action is taken. // */ // void on(T object); // // } // // Path: action/src/main/java/org/atmosphere/vibe/platform/action/VoidAction.java // public abstract class VoidAc...
import static org.hamcrest.Matchers.is; import static org.junit.Assert.assertThat; import java.net.ServerSocket; import java.net.URI; import java.nio.ByteBuffer; import java.util.concurrent.CountDownLatch; import org.atmosphere.vibe.platform.action.Action; import org.atmosphere.vibe.platform.action.VoidAction; import o...
/* * Copyright 2014 The Vibe Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
// Path: action/src/main/java/org/atmosphere/vibe/platform/action/Action.java // public interface Action<T> { // // /** // * Some action is taken. // */ // void on(T object); // // } // // Path: action/src/main/java/org/atmosphere/vibe/platform/action/VoidAction.java // public abstract class VoidAc...
performer.onserver(new Action<ServerWebSocket>() {
vibe-project/vibe-java-platform
test/src/main/java/org/atmosphere/vibe/platform/test/ServerWebSocketTest.java
// Path: action/src/main/java/org/atmosphere/vibe/platform/action/Action.java // public interface Action<T> { // // /** // * Some action is taken. // */ // void on(T object); // // } // // Path: action/src/main/java/org/atmosphere/vibe/platform/action/VoidAction.java // public abstract class VoidAc...
import static org.hamcrest.Matchers.is; import static org.junit.Assert.assertThat; import java.net.ServerSocket; import java.net.URI; import java.nio.ByteBuffer; import java.util.concurrent.CountDownLatch; import org.atmosphere.vibe.platform.action.Action; import org.atmosphere.vibe.platform.action.VoidAction; import o...
/* * Copyright 2014 The Vibe Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
// Path: action/src/main/java/org/atmosphere/vibe/platform/action/Action.java // public interface Action<T> { // // /** // * Some action is taken. // */ // void on(T object); // // } // // Path: action/src/main/java/org/atmosphere/vibe/platform/action/VoidAction.java // public abstract class VoidAc...
performer.onserver(new Action<ServerWebSocket>() {
vibe-project/vibe-java-platform
test/src/main/java/org/atmosphere/vibe/platform/test/ServerWebSocketTest.java
// Path: action/src/main/java/org/atmosphere/vibe/platform/action/Action.java // public interface Action<T> { // // /** // * Some action is taken. // */ // void on(T object); // // } // // Path: action/src/main/java/org/atmosphere/vibe/platform/action/VoidAction.java // public abstract class VoidAc...
import static org.hamcrest.Matchers.is; import static org.junit.Assert.assertThat; import java.net.ServerSocket; import java.net.URI; import java.nio.ByteBuffer; import java.util.concurrent.CountDownLatch; import org.atmosphere.vibe.platform.action.Action; import org.atmosphere.vibe.platform.action.VoidAction; import o...
public void on(String data) { assertThat(data, is("A road of winds the water builds")); if (done) { performer.start(); } else { done = true; } ...
// Path: action/src/main/java/org/atmosphere/vibe/platform/action/Action.java // public interface Action<T> { // // /** // * Some action is taken. // */ // void on(T object); // // } // // Path: action/src/main/java/org/atmosphere/vibe/platform/action/VoidAction.java // public abstract class VoidAc...
ws.onclose(new VoidAction() {
scrutmydocs/scrutmydocs
src/main/java/org/scrutmydocs/webapp/api/common/data/RestResponseWelcome.java
// Path: src/main/java/org/scrutmydocs/webapp/api/common/RestAPIException.java // public class RestAPIException extends Exception { // private static final long serialVersionUID = 1L; // // public RestAPIException(String message) { // super(message); // } // // public RestAPIException(Exception e) { // ...
import org.scrutmydocs.webapp.api.common.RestAPIException;
/* * Licensed to scrutmydocs.org (the "Author") under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Author licenses this * file to you under the Apache License, Version 2.0 (the * "License"); you ma...
// Path: src/main/java/org/scrutmydocs/webapp/api/common/RestAPIException.java // public class RestAPIException extends Exception { // private static final long serialVersionUID = 1L; // // public RestAPIException(String message) { // super(message); // } // // public RestAPIException(Exception e) { // ...
public RestResponseWelcome(RestAPIException e) {
scrutmydocs/scrutmydocs
src/main/java/org/scrutmydocs/webapp/api/settings/rivers/basic/data/RestResponseRivers.java
// Path: src/main/java/org/scrutmydocs/webapp/api/common/RestAPIException.java // public class RestAPIException extends Exception { // private static final long serialVersionUID = 1L; // // public RestAPIException(String message) { // super(message); // } // // public RestAPIException(Exception e) { // ...
import org.scrutmydocs.webapp.api.common.data.RestResponse; import java.util.List; import org.scrutmydocs.webapp.api.common.RestAPIException;
/* * Licensed to scrutmydocs.org (the "Author") under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Author licenses this * file to you under the Apache License, Version 2.0 (the * "License"); you ma...
// Path: src/main/java/org/scrutmydocs/webapp/api/common/RestAPIException.java // public class RestAPIException extends Exception { // private static final long serialVersionUID = 1L; // // public RestAPIException(String message) { // super(message); // } // // public RestAPIException(Exception e) { // ...
public RestResponseRivers(RestAPIException e) {
scrutmydocs/scrutmydocs
src/main/java/org/scrutmydocs/webapp/api/document/data/RestResponseDocument.java
// Path: src/main/java/org/scrutmydocs/webapp/api/common/RestAPIException.java // public class RestAPIException extends Exception { // private static final long serialVersionUID = 1L; // // public RestAPIException(String message) { // super(message); // } // // public RestAPIException(Exception e) { // ...
import org.scrutmydocs.webapp.api.common.RestAPIException; import org.scrutmydocs.webapp.api.common.data.RestResponse;
/* * Licensed to scrutmydocs.org (the "Author") under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Author licenses this * file to you under the Apache License, Version 2.0 (the * "License"); you ma...
// Path: src/main/java/org/scrutmydocs/webapp/api/common/RestAPIException.java // public class RestAPIException extends Exception { // private static final long serialVersionUID = 1L; // // public RestAPIException(String message) { // super(message); // } // // public RestAPIException(Exception e) { // ...
public RestResponseDocument(RestAPIException e) {
scrutmydocs/scrutmydocs
src/main/java/org/scrutmydocs/webapp/api/common/data/RestResponse.java
// Path: src/main/java/org/scrutmydocs/webapp/api/common/RestAPIException.java // public class RestAPIException extends Exception { // private static final long serialVersionUID = 1L; // // public RestAPIException(String message) { // super(message); // } // // public RestAPIException(Exception e) { // ...
import java.io.Serializable; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import org.scrutmydocs.webapp.api.common.RestAPIException;
/* * Licensed to scrutmydocs.org (the "Author") under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Author licenses this * file to you under the Apache License, Version 2.0 (the * "License"); you ma...
// Path: src/main/java/org/scrutmydocs/webapp/api/common/RestAPIException.java // public class RestAPIException extends Exception { // private static final long serialVersionUID = 1L; // // public RestAPIException(String message) { // super(message); // } // // public RestAPIException(Exception e) { // ...
public RestResponse(RestAPIException e) {
scrutmydocs/scrutmydocs
src/main/java/org/scrutmydocs/webapp/api/settings/rivers/basic/data/BasicRiver.java
// Path: src/main/java/org/scrutmydocs/webapp/constant/SMDSearchProperties.java // public interface SMDSearchProperties { // // public static final String INDEX_NAME = "docs"; // public static final String INDEX_TYPE_DOC = "doc"; // public static final String INDEX_TYPE_FOLDER = "folder"; // public static fin...
import java.io.Serializable; import org.scrutmydocs.webapp.constant.SMDSearchProperties;
/* * Licensed to scrutmydocs.org (the "Author") under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Author licenses this * file to you under the Apache License, Version 2.0 (the * "License"); you ma...
// Path: src/main/java/org/scrutmydocs/webapp/constant/SMDSearchProperties.java // public interface SMDSearchProperties { // // public static final String INDEX_NAME = "docs"; // public static final String INDEX_TYPE_DOC = "doc"; // public static final String INDEX_TYPE_FOLDER = "folder"; // public static fin...
this(id, SMDSearchProperties.INDEX_NAME, SMDSearchProperties.INDEX_TYPE_DOC, "My Dummy River", false);
scrutmydocs/scrutmydocs
src/main/java/org/scrutmydocs/webapp/api/search/data/RestResponseSearchResponse.java
// Path: src/main/java/org/scrutmydocs/webapp/api/common/RestAPIException.java // public class RestAPIException extends Exception { // private static final long serialVersionUID = 1L; // // public RestAPIException(String message) { // super(message); // } // // public RestAPIException(Exception e) { // ...
import org.scrutmydocs.webapp.api.common.RestAPIException; import org.scrutmydocs.webapp.api.common.data.RestResponse;
/* * Licensed to scrutmydocs.org (the "Author") under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Author licenses this * file to you under the Apache License, Version 2.0 (the * "License"); you ma...
// Path: src/main/java/org/scrutmydocs/webapp/api/common/RestAPIException.java // public class RestAPIException extends Exception { // private static final long serialVersionUID = 1L; // // public RestAPIException(String message) { // super(message); // } // // public RestAPIException(Exception e) { // ...
public RestResponseSearchResponse(RestAPIException e) {
scrutmydocs/scrutmydocs
src/main/java/org/scrutmydocs/webapp/api/settings/rivers/fs/data/RestResponseFSRivers.java
// Path: src/main/java/org/scrutmydocs/webapp/api/common/RestAPIException.java // public class RestAPIException extends Exception { // private static final long serialVersionUID = 1L; // // public RestAPIException(String message) { // super(message); // } // // public RestAPIException(Exception e) { // ...
import org.scrutmydocs.webapp.api.common.data.RestResponse; import java.util.List; import org.scrutmydocs.webapp.api.common.RestAPIException;
/* * Licensed to scrutmydocs.org (the "Author") under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Author licenses this * file to you under the Apache License, Version 2.0 (the * "License"); you ma...
// Path: src/main/java/org/scrutmydocs/webapp/api/common/RestAPIException.java // public class RestAPIException extends Exception { // private static final long serialVersionUID = 1L; // // public RestAPIException(String message) { // super(message); // } // // public RestAPIException(Exception e) { // ...
public RestResponseFSRivers(RestAPIException e) {
scrutmydocs/scrutmydocs
src/main/java/org/scrutmydocs/webapp/api/common/facade/CommonBaseApi.java
// Path: src/main/java/org/scrutmydocs/webapp/api/common/data/Api.java // public class Api implements Serializable { // private static final long serialVersionUID = 1L; // // private String url = null; // private String method = null; // private String description = null; // // public Api() { // } // ...
import org.scrutmydocs.webapp.api.common.data.Api; import org.scrutmydocs.webapp.api.common.data.RestResponseWelcome; import org.scrutmydocs.webapp.api.common.data.Welcome; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.spring...
/* * Licensed to scrutmydocs.org (the "Author") under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Author licenses this * file to you under the Apache License, Version 2.0 (the * "License"); you ma...
// Path: src/main/java/org/scrutmydocs/webapp/api/common/data/Api.java // public class Api implements Serializable { // private static final long serialVersionUID = 1L; // // private String url = null; // private String method = null; // private String description = null; // // public Api() { // } // ...
public abstract Api[] helpApiList();
scrutmydocs/scrutmydocs
src/main/java/org/scrutmydocs/webapp/api/common/facade/CommonBaseApi.java
// Path: src/main/java/org/scrutmydocs/webapp/api/common/data/Api.java // public class Api implements Serializable { // private static final long serialVersionUID = 1L; // // private String url = null; // private String method = null; // private String description = null; // // public Api() { // } // ...
import org.scrutmydocs.webapp.api.common.data.Api; import org.scrutmydocs.webapp.api.common.data.RestResponseWelcome; import org.scrutmydocs.webapp.api.common.data.Welcome; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.spring...
/* * Licensed to scrutmydocs.org (the "Author") under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Author licenses this * file to you under the Apache License, Version 2.0 (the * "License"); you ma...
// Path: src/main/java/org/scrutmydocs/webapp/api/common/data/Api.java // public class Api implements Serializable { // private static final long serialVersionUID = 1L; // // private String url = null; // private String method = null; // private String description = null; // // public Api() { // } // ...
RestResponseWelcome welcomeHelp() {
scrutmydocs/scrutmydocs
src/main/java/org/scrutmydocs/webapp/configuration/AppConfig.java
// Path: src/main/java/org/scrutmydocs/webapp/util/PropertyScanner.java // public class PropertyScanner { // // public static ScrutMyDocsProperties scanPropertyFile() throws IOException { // ScrutMyDocsProperties smdProps = new ScrutMyDocsProperties(); // // String userHome = System.getProperty("user.h...
import fr.pilato.spring.elasticsearch.ElasticsearchAbstractClientFactoryBean; import fr.pilato.spring.elasticsearch.ElasticsearchClientFactoryBean; import fr.pilato.spring.elasticsearch.ElasticsearchNodeFactoryBean; import fr.pilato.spring.elasticsearch.ElasticsearchTransportClientFactoryBean; import org.elasticsea...
/* * Licensed to scrutmydocs.org (the "Author") under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Author licenses this * file to you under the Apache License, Version 2.0 (the * "License"); you ma...
// Path: src/main/java/org/scrutmydocs/webapp/util/PropertyScanner.java // public class PropertyScanner { // // public static ScrutMyDocsProperties scanPropertyFile() throws IOException { // ScrutMyDocsProperties smdProps = new ScrutMyDocsProperties(); // // String userHome = System.getProperty("user.h...
ScrutMyDocsProperties smdProperties = PropertyScanner.scanPropertyFile();
scrutmydocs/scrutmydocs
src/main/java/org/scrutmydocs/webapp/api/index/data/Index.java
// Path: src/main/java/org/scrutmydocs/webapp/constant/SMDSearchProperties.java // public interface SMDSearchProperties { // // public static final String INDEX_NAME = "docs"; // public static final String INDEX_TYPE_DOC = "doc"; // public static final String INDEX_TYPE_FOLDER = "folder"; // public static fin...
import java.io.Serializable; import org.scrutmydocs.webapp.constant.SMDSearchProperties;
/* * Licensed to scrutmydocs.org (the "Author") under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Author licenses this * file to you under the Apache License, Version 2.0 (the * "License"); you ma...
// Path: src/main/java/org/scrutmydocs/webapp/constant/SMDSearchProperties.java // public interface SMDSearchProperties { // // public static final String INDEX_NAME = "docs"; // public static final String INDEX_TYPE_DOC = "doc"; // public static final String INDEX_TYPE_FOLDER = "folder"; // public static fin...
this(SMDSearchProperties.INDEX_NAME, SMDSearchProperties.INDEX_TYPE_DOC, null);
scrutmydocs/scrutmydocs
src/main/java/org/scrutmydocs/webapp/api/settings/rivers/basic/data/RestResponseRiver.java
// Path: src/main/java/org/scrutmydocs/webapp/api/common/RestAPIException.java // public class RestAPIException extends Exception { // private static final long serialVersionUID = 1L; // // public RestAPIException(String message) { // super(message); // } // // public RestAPIException(Exception e) { // ...
import org.scrutmydocs.webapp.api.common.RestAPIException; import org.scrutmydocs.webapp.api.common.data.RestResponse;
/* * Licensed to scrutmydocs.org (the "Author") under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Author licenses this * file to you under the Apache License, Version 2.0 (the * "License"); you ma...
// Path: src/main/java/org/scrutmydocs/webapp/api/common/RestAPIException.java // public class RestAPIException extends Exception { // private static final long serialVersionUID = 1L; // // public RestAPIException(String message) { // super(message); // } // // public RestAPIException(Exception e) { // ...
public RestResponseRiver(RestAPIException e) {
scrutmydocs/scrutmydocs
src/main/java/org/scrutmydocs/webapp/api/document/data/Document.java
// Path: src/main/java/org/scrutmydocs/webapp/constant/SMDSearchProperties.java // public interface SMDSearchProperties { // // public static final String INDEX_NAME = "docs"; // public static final String INDEX_TYPE_DOC = "doc"; // public static final String INDEX_TYPE_FOLDER = "folder"; // public static fin...
import java.io.Serializable; import org.scrutmydocs.webapp.constant.SMDSearchProperties;
/* * Licensed to scrutmydocs.org (the "Author") under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Author licenses this * file to you under the Apache License, Version 2.0 (the * "License"); you ma...
// Path: src/main/java/org/scrutmydocs/webapp/constant/SMDSearchProperties.java // public interface SMDSearchProperties { // // public static final String INDEX_NAME = "docs"; // public static final String INDEX_TYPE_DOC = "doc"; // public static final String INDEX_TYPE_FOLDER = "folder"; // public static fin...
this(null, SMDSearchProperties.INDEX_NAME, SMDSearchProperties.INDEX_TYPE_DOC, name, null, content);
scrutmydocs/scrutmydocs
src/main/java/org/scrutmydocs/webapp/api/settings/rivers/fs/data/RestResponseFSRiver.java
// Path: src/main/java/org/scrutmydocs/webapp/api/common/RestAPIException.java // public class RestAPIException extends Exception { // private static final long serialVersionUID = 1L; // // public RestAPIException(String message) { // super(message); // } // // public RestAPIException(Exception e) { // ...
import org.scrutmydocs.webapp.api.common.RestAPIException; import org.scrutmydocs.webapp.api.common.data.RestResponse;
/* * Licensed to scrutmydocs.org (the "Author") under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Author licenses this * file to you under the Apache License, Version 2.0 (the * "License"); you ma...
// Path: src/main/java/org/scrutmydocs/webapp/api/common/RestAPIException.java // public class RestAPIException extends Exception { // private static final long serialVersionUID = 1L; // // public RestAPIException(String message) { // super(message); // } // // public RestAPIException(Exception e) { // ...
public RestResponseFSRiver(RestAPIException e) {
scrutmydocs/scrutmydocs
src/main/java/org/scrutmydocs/webapp/api/index/data/RestResponseIndex.java
// Path: src/main/java/org/scrutmydocs/webapp/api/common/RestAPIException.java // public class RestAPIException extends Exception { // private static final long serialVersionUID = 1L; // // public RestAPIException(String message) { // super(message); // } // // public RestAPIException(Exception e) { // ...
import org.scrutmydocs.webapp.api.common.RestAPIException; import org.scrutmydocs.webapp.api.common.data.RestResponse;
/* * Licensed to scrutmydocs.org (the "Author") under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Author licenses this * file to you under the Apache License, Version 2.0 (the * "License"); you ma...
// Path: src/main/java/org/scrutmydocs/webapp/api/common/RestAPIException.java // public class RestAPIException extends Exception { // private static final long serialVersionUID = 1L; // // public RestAPIException(String message) { // super(message); // } // // public RestAPIException(Exception e) { // ...
public RestResponseIndex(RestAPIException e) {
scrutmydocs/scrutmydocs
src/main/java/org/scrutmydocs/webapp/api/common/facade/WelcomeApi.java
// Path: src/main/java/org/scrutmydocs/webapp/api/common/data/Api.java // public class Api implements Serializable { // private static final long serialVersionUID = 1L; // // private String url = null; // private String method = null; // private String description = null; // // public Api() { // } // ...
import org.scrutmydocs.webapp.api.common.data.Api; import org.scrutmydocs.webapp.api.common.data.RestResponseWelcome; import org.scrutmydocs.webapp.api.common.data.Welcome; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.we...
/* * Licensed to scrutmydocs.org (the "Author") under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Author licenses this * file to you under the Apache License, Version 2.0 (the * "License"); you ma...
// Path: src/main/java/org/scrutmydocs/webapp/api/common/data/Api.java // public class Api implements Serializable { // private static final long serialVersionUID = 1L; // // private String url = null; // private String method = null; // private String description = null; // // public Api() { // } // ...
public Api[] helpApiList() {
Spedge/hangar
hangar-api/src/main/java/com/spedge/hangar/repo/java/index/JavaIndexKey.java
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IndexKey.java // public class IndexKey // { // private String key; // private RepositoryType type = RepositoryType.UNKNOWN; // // public IndexKey(RepositoryType type, String key) // { // this.key = key; // this.type = type; // ...
import com.spedge.hangar.index.IndexKey; import com.spedge.hangar.repo.RepositoryType; import com.spedge.hangar.repo.java.base.JavaGroup; import java.util.Objects;
package com.spedge.hangar.repo.java.index; public class JavaIndexKey extends IndexKey {
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IndexKey.java // public class IndexKey // { // private String key; // private RepositoryType type = RepositoryType.UNKNOWN; // // public IndexKey(RepositoryType type, String key) // { // this.key = key; // this.type = type; // ...
private JavaGroup group;
Spedge/hangar
hangar-api/src/main/java/com/spedge/hangar/repo/java/index/JavaIndexKey.java
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IndexKey.java // public class IndexKey // { // private String key; // private RepositoryType type = RepositoryType.UNKNOWN; // // public IndexKey(RepositoryType type, String key) // { // this.key = key; // this.type = type; // ...
import com.spedge.hangar.index.IndexKey; import com.spedge.hangar.repo.RepositoryType; import com.spedge.hangar.repo.java.base.JavaGroup; import java.util.Objects;
package com.spedge.hangar.repo.java.index; public class JavaIndexKey extends IndexKey { private JavaGroup group; private String artifact = ""; private String version = ""; /** * <p>Creates a Key to be used to register an IndexArtifact with * the Index layer. </p> * * @param type...
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IndexKey.java // public class IndexKey // { // private String key; // private RepositoryType type = RepositoryType.UNKNOWN; // // public IndexKey(RepositoryType type, String key) // { // this.key = key; // this.type = type; // ...
public JavaIndexKey(RepositoryType type, JavaGroup group, String artifact, String version)
Spedge/hangar
hangar-api/src/main/java/com/spedge/hangar/Hangar.java
// Path: hangar-api/src/main/java/com/spedge/hangar/config/HangarConfiguration.java // public class HangarConfiguration extends Configuration // { // // @JsonProperty // private IStorage storage; // // @JsonProperty // private IIndex artifactIndex; // // @NotEmpty // @JsonProperty // priv...
import com.google.inject.Guice; import com.google.inject.Injector; import com.spedge.hangar.config.HangarConfiguration; import com.spedge.hangar.config.HangarInjector; import com.spedge.hangar.repo.IRepository; import com.spedge.hangar.requests.TestRequest; import io.dropwizard.Application; import io.dropwizard.setup.B...
package com.spedge.hangar; /** * The main entry point for the Hangar application. * * @author Spedge * */ public class Hangar extends Application<HangarConfiguration> { public static void main(String[] args) throws Exception {
// Path: hangar-api/src/main/java/com/spedge/hangar/config/HangarConfiguration.java // public class HangarConfiguration extends Configuration // { // // @JsonProperty // private IStorage storage; // // @JsonProperty // private IIndex artifactIndex; // // @NotEmpty // @JsonProperty // priv...
Injector injector = Guice.createInjector(new HangarInjector());
Spedge/hangar
hangar-api/src/main/java/com/spedge/hangar/Hangar.java
// Path: hangar-api/src/main/java/com/spedge/hangar/config/HangarConfiguration.java // public class HangarConfiguration extends Configuration // { // // @JsonProperty // private IStorage storage; // // @JsonProperty // private IIndex artifactIndex; // // @NotEmpty // @JsonProperty // priv...
import com.google.inject.Guice; import com.google.inject.Injector; import com.spedge.hangar.config.HangarConfiguration; import com.spedge.hangar.config.HangarInjector; import com.spedge.hangar.repo.IRepository; import com.spedge.hangar.requests.TestRequest; import io.dropwizard.Application; import io.dropwizard.setup.B...
package com.spedge.hangar; /** * The main entry point for the Hangar application. * * @author Spedge * */ public class Hangar extends Application<HangarConfiguration> { public static void main(String[] args) throws Exception { Injector injector = Guice.createInjector(new HangarInjector()); ...
// Path: hangar-api/src/main/java/com/spedge/hangar/config/HangarConfiguration.java // public class HangarConfiguration extends Configuration // { // // @JsonProperty // private IStorage storage; // // @JsonProperty // private IIndex artifactIndex; // // @NotEmpty // @JsonProperty // priv...
List<IRepository> repos = configuration.getRepositories();
Spedge/hangar
hangar-api/src/main/java/com/spedge/hangar/Hangar.java
// Path: hangar-api/src/main/java/com/spedge/hangar/config/HangarConfiguration.java // public class HangarConfiguration extends Configuration // { // // @JsonProperty // private IStorage storage; // // @JsonProperty // private IIndex artifactIndex; // // @NotEmpty // @JsonProperty // priv...
import com.google.inject.Guice; import com.google.inject.Injector; import com.spedge.hangar.config.HangarConfiguration; import com.spedge.hangar.config.HangarInjector; import com.spedge.hangar.repo.IRepository; import com.spedge.hangar.requests.TestRequest; import io.dropwizard.Application; import io.dropwizard.setup.B...
package com.spedge.hangar; /** * The main entry point for the Hangar application. * * @author Spedge * */ public class Hangar extends Application<HangarConfiguration> { public static void main(String[] args) throws Exception { Injector injector = Guice.createInjector(new HangarInjector()); ...
// Path: hangar-api/src/main/java/com/spedge/hangar/config/HangarConfiguration.java // public class HangarConfiguration extends Configuration // { // // @JsonProperty // private IStorage storage; // // @JsonProperty // private IIndex artifactIndex; // // @NotEmpty // @JsonProperty // priv...
environment.jersey().register(new TestRequest());
Spedge/hangar
hangar-api/src/main/java/com/spedge/hangar/repo/python/PythonStorageTranslator.java
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IndexArtifact.java // public abstract class IndexArtifact implements Serializable // { // private static final long serialVersionUID = -5720959937441417671L; // private String location; // // public IndexArtifact(String location) // { // ...
import java.io.File; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; import java.util.stream.Collectors; import org.apache.commons.lang3.StringUtils; import com.spedge.hangar.index.IndexArtifact; im...
package com.spedge.hangar.repo.python; public class PythonStorageTranslator implements IStorageTranslator { private final String[] delimiters = new String[]{};
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IndexArtifact.java // public abstract class IndexArtifact implements Serializable // { // private static final long serialVersionUID = -5720959937441417671L; // private String location; // // public IndexArtifact(String location) // { // ...
private RepositoryType type;
Spedge/hangar
hangar-api/src/test/java/com/spedge/hangar/index/memory/TestInMemoryIndex.java
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IndexConfictException.java // public class IndexConfictException extends Exception // { // // private static final long serialVersionUID = -4856615780463752787L; // // } // // Path: hangar-api/src/main/java/com/spedge/hangar/index/ReservedArtifact.java //...
import static org.junit.Assert.assertEquals; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import com.spedge.hangar.index.IndexConfictException; import com.spedge.hangar.index.ReservedArtifact; import com.spedge.hangar.storage.StorageException; import com.spedge.hangar.testutils.IndexUtils;
package com.spedge.hangar.index.memory; public class TestInMemoryIndex { InMemoryIndex index; @Before public void setupIndex() { index = new InMemoryIndex(); } @Test
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IndexConfictException.java // public class IndexConfictException extends Exception // { // // private static final long serialVersionUID = -4856615780463752787L; // // } // // Path: hangar-api/src/main/java/com/spedge/hangar/index/ReservedArtifact.java //...
public void testAddArtifact() throws IndexConfictException
Spedge/hangar
hangar-api/src/test/java/com/spedge/hangar/index/memory/TestInMemoryIndex.java
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IndexConfictException.java // public class IndexConfictException extends Exception // { // // private static final long serialVersionUID = -4856615780463752787L; // // } // // Path: hangar-api/src/main/java/com/spedge/hangar/index/ReservedArtifact.java //...
import static org.junit.Assert.assertEquals; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import com.spedge.hangar.index.IndexConfictException; import com.spedge.hangar.index.ReservedArtifact; import com.spedge.hangar.storage.StorageException; import com.spedge.hangar.testutils.IndexUtils;
package com.spedge.hangar.index.memory; public class TestInMemoryIndex { InMemoryIndex index; @Before public void setupIndex() { index = new InMemoryIndex(); } @Test public void testAddArtifact() throws IndexConfictException { // Add an artifact.
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IndexConfictException.java // public class IndexConfictException extends Exception // { // // private static final long serialVersionUID = -4856615780463752787L; // // } // // Path: hangar-api/src/main/java/com/spedge/hangar/index/ReservedArtifact.java //...
index.addArtifact(IndexUtils.TEST1.getKey(), IndexUtils.TEST1.getArtifact());
Spedge/hangar
hangar-api/src/test/java/com/spedge/hangar/index/memory/TestInMemoryIndex.java
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IndexConfictException.java // public class IndexConfictException extends Exception // { // // private static final long serialVersionUID = -4856615780463752787L; // // } // // Path: hangar-api/src/main/java/com/spedge/hangar/index/ReservedArtifact.java //...
import static org.junit.Assert.assertEquals; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import com.spedge.hangar.index.IndexConfictException; import com.spedge.hangar.index.ReservedArtifact; import com.spedge.hangar.storage.StorageException; import com.spedge.hangar.testutils.IndexUtils;
package com.spedge.hangar.index.memory; public class TestInMemoryIndex { InMemoryIndex index; @Before public void setupIndex() { index = new InMemoryIndex(); } @Test public void testAddArtifact() throws IndexConfictException { // Add an artifact. index.addArtifact(IndexUtils.TEST1.getKey(), Index...
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IndexConfictException.java // public class IndexConfictException extends Exception // { // // private static final long serialVersionUID = -4856615780463752787L; // // } // // Path: hangar-api/src/main/java/com/spedge/hangar/index/ReservedArtifact.java //...
public void testReservedArtifact() throws StorageException, IndexConfictException
Spedge/hangar
hangar-api/src/test/java/com/spedge/hangar/index/memory/TestInMemoryIndex.java
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IndexConfictException.java // public class IndexConfictException extends Exception // { // // private static final long serialVersionUID = -4856615780463752787L; // // } // // Path: hangar-api/src/main/java/com/spedge/hangar/index/ReservedArtifact.java //...
import static org.junit.Assert.assertEquals; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import com.spedge.hangar.index.IndexConfictException; import com.spedge.hangar.index.ReservedArtifact; import com.spedge.hangar.storage.StorageException; import com.spedge.hangar.testutils.IndexUtils;
package com.spedge.hangar.index.memory; public class TestInMemoryIndex { InMemoryIndex index; @Before public void setupIndex() { index = new InMemoryIndex(); } @Test public void testAddArtifact() throws IndexConfictException { // Add an artifact. index.addArtifact(IndexUtils.TEST1.getKey(), Index...
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IndexConfictException.java // public class IndexConfictException extends Exception // { // // private static final long serialVersionUID = -4856615780463752787L; // // } // // Path: hangar-api/src/main/java/com/spedge/hangar/index/ReservedArtifact.java //...
ReservedArtifact ra = index.addReservationKey(IndexUtils.TEST2.getKey());
Spedge/hangar
hangar-api/src/main/java/com/spedge/hangar/index/IndexKey.java
// Path: hangar-api/src/main/java/com/spedge/hangar/repo/RepositoryType.java // public enum RepositoryType // { // RELEASE_JAVA(RepositoryLanguage.JAVA), // SNAPSHOT_JAVA(RepositoryLanguage.JAVA), // PROXY_JAVA(RepositoryLanguage.JAVA), // PROXY_PYTHON(RepositoryLanguage.PYTHON), // UNKNOWN(Repos...
import com.spedge.hangar.repo.RepositoryType;
package com.spedge.hangar.index; public class IndexKey { private String key;
// Path: hangar-api/src/main/java/com/spedge/hangar/repo/RepositoryType.java // public enum RepositoryType // { // RELEASE_JAVA(RepositoryLanguage.JAVA), // SNAPSHOT_JAVA(RepositoryLanguage.JAVA), // PROXY_JAVA(RepositoryLanguage.JAVA), // PROXY_PYTHON(RepositoryLanguage.PYTHON), // UNKNOWN(Repos...
private RepositoryType type = RepositoryType.UNKNOWN;
Spedge/hangar
hangar-api/src/main/java/com/spedge/hangar/storage/IStorageTranslator.java
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IndexArtifact.java // public abstract class IndexArtifact implements Serializable // { // private static final long serialVersionUID = -5720959937441417671L; // private String location; // // public IndexArtifact(String location) // { // ...
import java.nio.file.Path; import java.util.List; import com.spedge.hangar.index.IndexArtifact; import com.spedge.hangar.index.IndexException; import com.spedge.hangar.index.IndexKey; import com.spedge.hangar.repo.RepositoryType; import com.spedge.hangar.storage.local.LocalStorageException;
package com.spedge.hangar.storage; public interface IStorageTranslator { String[] getDelimiters();
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IndexArtifact.java // public abstract class IndexArtifact implements Serializable // { // private static final long serialVersionUID = -5720959937441417671L; // private String location; // // public IndexArtifact(String location) // { // ...
IndexKey generateIndexKey(String prefixPath, String prefix) throws IndexException;
Spedge/hangar
hangar-api/src/main/java/com/spedge/hangar/storage/IStorageTranslator.java
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IndexArtifact.java // public abstract class IndexArtifact implements Serializable // { // private static final long serialVersionUID = -5720959937441417671L; // private String location; // // public IndexArtifact(String location) // { // ...
import java.nio.file.Path; import java.util.List; import com.spedge.hangar.index.IndexArtifact; import com.spedge.hangar.index.IndexException; import com.spedge.hangar.index.IndexKey; import com.spedge.hangar.repo.RepositoryType; import com.spedge.hangar.storage.local.LocalStorageException;
package com.spedge.hangar.storage; public interface IStorageTranslator { String[] getDelimiters();
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IndexArtifact.java // public abstract class IndexArtifact implements Serializable // { // private static final long serialVersionUID = -5720959937441417671L; // private String location; // // public IndexArtifact(String location) // { // ...
IndexKey generateIndexKey(String prefixPath, String prefix) throws IndexException;
Spedge/hangar
hangar-api/src/main/java/com/spedge/hangar/storage/IStorageTranslator.java
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IndexArtifact.java // public abstract class IndexArtifact implements Serializable // { // private static final long serialVersionUID = -5720959937441417671L; // private String location; // // public IndexArtifact(String location) // { // ...
import java.nio.file.Path; import java.util.List; import com.spedge.hangar.index.IndexArtifact; import com.spedge.hangar.index.IndexException; import com.spedge.hangar.index.IndexKey; import com.spedge.hangar.repo.RepositoryType; import com.spedge.hangar.storage.local.LocalStorageException;
package com.spedge.hangar.storage; public interface IStorageTranslator { String[] getDelimiters(); IndexKey generateIndexKey(String prefixPath, String prefix) throws IndexException;
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IndexArtifact.java // public abstract class IndexArtifact implements Serializable // { // private static final long serialVersionUID = -5720959937441417671L; // private String location; // // public IndexArtifact(String location) // { // ...
IndexArtifact generateIndexArtifact(IndexKey key, String uploadPath) throws IndexException;
Spedge/hangar
hangar-api/src/main/java/com/spedge/hangar/storage/IStorageTranslator.java
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IndexArtifact.java // public abstract class IndexArtifact implements Serializable // { // private static final long serialVersionUID = -5720959937441417671L; // private String location; // // public IndexArtifact(String location) // { // ...
import java.nio.file.Path; import java.util.List; import com.spedge.hangar.index.IndexArtifact; import com.spedge.hangar.index.IndexException; import com.spedge.hangar.index.IndexKey; import com.spedge.hangar.repo.RepositoryType; import com.spedge.hangar.storage.local.LocalStorageException;
package com.spedge.hangar.storage; public interface IStorageTranslator { String[] getDelimiters(); IndexKey generateIndexKey(String prefixPath, String prefix) throws IndexException; IndexArtifact generateIndexArtifact(IndexKey key, String uploadPath) throws IndexException;
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IndexArtifact.java // public abstract class IndexArtifact implements Serializable // { // private static final long serialVersionUID = -5720959937441417671L; // private String location; // // public IndexArtifact(String location) // { // ...
RepositoryType getType();
Spedge/hangar
hangar-api/src/main/java/com/spedge/hangar/storage/IStorageTranslator.java
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IndexArtifact.java // public abstract class IndexArtifact implements Serializable // { // private static final long serialVersionUID = -5720959937441417671L; // private String location; // // public IndexArtifact(String location) // { // ...
import java.nio.file.Path; import java.util.List; import com.spedge.hangar.index.IndexArtifact; import com.spedge.hangar.index.IndexException; import com.spedge.hangar.index.IndexKey; import com.spedge.hangar.repo.RepositoryType; import com.spedge.hangar.storage.local.LocalStorageException;
package com.spedge.hangar.storage; public interface IStorageTranslator { String[] getDelimiters(); IndexKey generateIndexKey(String prefixPath, String prefix) throws IndexException; IndexArtifact generateIndexArtifact(IndexKey key, String uploadPath) throws IndexException; RepositoryType getType()...
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IndexArtifact.java // public abstract class IndexArtifact implements Serializable // { // private static final long serialVersionUID = -5720959937441417671L; // private String location; // // public IndexArtifact(String location) // { // ...
List<IndexKey> getLocalStorageKeys(Path sourcePath) throws LocalStorageException;
Spedge/hangar
hangar-api/src/main/java/com/spedge/hangar/storage/Storage.java
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IndexArtifact.java // public abstract class IndexArtifact implements Serializable // { // private static final long serialVersionUID = -5720959937441417671L; // private String location; // // public IndexArtifact(String location) // { // ...
import java.io.IOException; import java.util.HashMap; import org.hibernate.validator.constraints.NotEmpty; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.fasterxml.jackson.annotation.JsonProperty; import com.spedge.hangar.index.IndexArtifact; import com.spedge.hangar.index.IndexException; import co...
package com.spedge.hangar.storage; public abstract class Storage implements IStorage { protected final Logger logger = LoggerFactory.getLogger(Storage.class); private HashMap<String, IStorageTranslator> paths = new HashMap<String, IStorageTranslator>(); @NotEmpty private String path; @Json...
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IndexArtifact.java // public abstract class IndexArtifact implements Serializable // { // private static final long serialVersionUID = -5720959937441417671L; // private String location; // // public IndexArtifact(String location) // { // ...
public IndexArtifact getIndexArtifact(IndexKey key, String uploadPath) throws IndexException
Spedge/hangar
hangar-api/src/main/java/com/spedge/hangar/storage/Storage.java
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IndexArtifact.java // public abstract class IndexArtifact implements Serializable // { // private static final long serialVersionUID = -5720959937441417671L; // private String location; // // public IndexArtifact(String location) // { // ...
import java.io.IOException; import java.util.HashMap; import org.hibernate.validator.constraints.NotEmpty; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.fasterxml.jackson.annotation.JsonProperty; import com.spedge.hangar.index.IndexArtifact; import com.spedge.hangar.index.IndexException; import co...
package com.spedge.hangar.storage; public abstract class Storage implements IStorage { protected final Logger logger = LoggerFactory.getLogger(Storage.class); private HashMap<String, IStorageTranslator> paths = new HashMap<String, IStorageTranslator>(); @NotEmpty private String path; @Json...
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IndexArtifact.java // public abstract class IndexArtifact implements Serializable // { // private static final long serialVersionUID = -5720959937441417671L; // private String location; // // public IndexArtifact(String location) // { // ...
public IndexArtifact getIndexArtifact(IndexKey key, String uploadPath) throws IndexException
Spedge/hangar
hangar-api/src/main/java/com/spedge/hangar/storage/Storage.java
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IndexArtifact.java // public abstract class IndexArtifact implements Serializable // { // private static final long serialVersionUID = -5720959937441417671L; // private String location; // // public IndexArtifact(String location) // { // ...
import java.io.IOException; import java.util.HashMap; import org.hibernate.validator.constraints.NotEmpty; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.fasterxml.jackson.annotation.JsonProperty; import com.spedge.hangar.index.IndexArtifact; import com.spedge.hangar.index.IndexException; import co...
package com.spedge.hangar.storage; public abstract class Storage implements IStorage { protected final Logger logger = LoggerFactory.getLogger(Storage.class); private HashMap<String, IStorageTranslator> paths = new HashMap<String, IStorageTranslator>(); @NotEmpty private String path; @Json...
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IndexArtifact.java // public abstract class IndexArtifact implements Serializable // { // private static final long serialVersionUID = -5720959937441417671L; // private String location; // // public IndexArtifact(String location) // { // ...
public IndexArtifact getIndexArtifact(IndexKey key, String uploadPath) throws IndexException
Spedge/hangar
hangar-api/src/main/java/com/spedge/hangar/repo/python/PythonIndexKey.java
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IndexKey.java // public class IndexKey // { // private String key; // private RepositoryType type = RepositoryType.UNKNOWN; // // public IndexKey(RepositoryType type, String key) // { // this.key = key; // this.type = type; // ...
import com.spedge.hangar.index.IndexKey; import com.spedge.hangar.repo.RepositoryType;
package com.spedge.hangar.repo.python; public class PythonIndexKey extends IndexKey { private String artifact; private String filename; /** * Saves the main details for identifying a package within Pip. * @param type RepositoryType this index item is from * @param artifact Name of the ...
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IndexKey.java // public class IndexKey // { // private String key; // private RepositoryType type = RepositoryType.UNKNOWN; // // public IndexKey(RepositoryType type, String key) // { // this.key = key; // this.type = type; // ...
public PythonIndexKey(RepositoryType type, String artifact, String filename)
Spedge/hangar
hangar-api/src/test/java/com/spedge/hangar/index/zookeeper/TestZookeeperIndex.java
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IndexConfictException.java // public class IndexConfictException extends Exception // { // // private static final long serialVersionUID = -4856615780463752787L; // // } // // Path: hangar-api/src/main/java/com/spedge/hangar/index/ReservedArtifact.java //...
import static org.junit.Assert.assertEquals; import org.apache.curator.test.TestingServer; import org.apache.curator.utils.CloseableUtils; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import com.spedge.hangar.index.IndexConfictException; import com.spedge.hangar.index.ReservedArtifact; impor...
package com.spedge.hangar.index.zookeeper; public class TestZookeeperIndex { ZooKeeperIndex index; @Before public void setupIndex() throws Exception { index = new ZooKeeperIndex(); } @Test public void testAddArtifact() throws Exception { TestingServer testingServer = new TestingServer(); index.st...
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IndexConfictException.java // public class IndexConfictException extends Exception // { // // private static final long serialVersionUID = -4856615780463752787L; // // } // // Path: hangar-api/src/main/java/com/spedge/hangar/index/ReservedArtifact.java //...
index.addArtifact(IndexUtils.TEST1.getKey(), IndexUtils.TEST1.getArtifact());
Spedge/hangar
hangar-api/src/test/java/com/spedge/hangar/index/zookeeper/TestZookeeperIndex.java
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IndexConfictException.java // public class IndexConfictException extends Exception // { // // private static final long serialVersionUID = -4856615780463752787L; // // } // // Path: hangar-api/src/main/java/com/spedge/hangar/index/ReservedArtifact.java //...
import static org.junit.Assert.assertEquals; import org.apache.curator.test.TestingServer; import org.apache.curator.utils.CloseableUtils; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import com.spedge.hangar.index.IndexConfictException; import com.spedge.hangar.index.ReservedArtifact; impor...
TestingServer testingServer = new TestingServer(); index.startClient(testingServer.getConnectString()); try { // Add an artifact. index.addArtifact(IndexUtils.TEST1.getKey(), IndexUtils.TEST1.getArtifact()); // Is there an artifact? Assert.assertTrue(index.isArtifact(IndexUtils.TEST1.getKey()...
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IndexConfictException.java // public class IndexConfictException extends Exception // { // // private static final long serialVersionUID = -4856615780463752787L; // // } // // Path: hangar-api/src/main/java/com/spedge/hangar/index/ReservedArtifact.java //...
ReservedArtifact ra = index.addReservationKey(IndexUtils.TEST2.getKey());
Spedge/hangar
hangar-api/src/test/java/com/spedge/hangar/index/zookeeper/TestZookeeperIndex.java
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IndexConfictException.java // public class IndexConfictException extends Exception // { // // private static final long serialVersionUID = -4856615780463752787L; // // } // // Path: hangar-api/src/main/java/com/spedge/hangar/index/ReservedArtifact.java //...
import static org.junit.Assert.assertEquals; import org.apache.curator.test.TestingServer; import org.apache.curator.utils.CloseableUtils; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import com.spedge.hangar.index.IndexConfictException; import com.spedge.hangar.index.ReservedArtifact; impor...
// Get the artifact. assertEquals(IndexUtils.TEST1.getArtifact(), index.getArtifact(IndexUtils.TEST1.getKey())); } finally { CloseableUtils.closeQuietly(testingServer); } } @Test public void testReservedArtifact() throws Exception { TestingServer testingServer = new TestingServer(); i...
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IndexConfictException.java // public class IndexConfictException extends Exception // { // // private static final long serialVersionUID = -4856615780463752787L; // // } // // Path: hangar-api/src/main/java/com/spedge/hangar/index/ReservedArtifact.java //...
catch(IndexConfictException ice){}
Spedge/hangar
hangar-api/src/main/java/com/spedge/hangar/config/HangarConfiguration.java
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IIndex.java // @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "index") // @JsonSubTypes( // { // @JsonSubTypes.Type(value = InMemoryIndex.class, name = "in-memory"), // @JsonSubTypes.Type(value = ZooKeeperIndex.class, name = "zookeeper...
import com.fasterxml.jackson.annotation.JsonProperty; import com.spedge.hangar.index.IIndex; import com.spedge.hangar.repo.IRepository; import com.spedge.hangar.storage.IStorage; import io.dropwizard.Configuration; import org.hibernate.validator.constraints.NotEmpty; import java.util.List;
package com.spedge.hangar.config; public class HangarConfiguration extends Configuration { @JsonProperty
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IIndex.java // @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "index") // @JsonSubTypes( // { // @JsonSubTypes.Type(value = InMemoryIndex.class, name = "in-memory"), // @JsonSubTypes.Type(value = ZooKeeperIndex.class, name = "zookeeper...
private IStorage storage;
Spedge/hangar
hangar-api/src/main/java/com/spedge/hangar/config/HangarConfiguration.java
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IIndex.java // @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "index") // @JsonSubTypes( // { // @JsonSubTypes.Type(value = InMemoryIndex.class, name = "in-memory"), // @JsonSubTypes.Type(value = ZooKeeperIndex.class, name = "zookeeper...
import com.fasterxml.jackson.annotation.JsonProperty; import com.spedge.hangar.index.IIndex; import com.spedge.hangar.repo.IRepository; import com.spedge.hangar.storage.IStorage; import io.dropwizard.Configuration; import org.hibernate.validator.constraints.NotEmpty; import java.util.List;
package com.spedge.hangar.config; public class HangarConfiguration extends Configuration { @JsonProperty private IStorage storage; @JsonProperty
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IIndex.java // @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "index") // @JsonSubTypes( // { // @JsonSubTypes.Type(value = InMemoryIndex.class, name = "in-memory"), // @JsonSubTypes.Type(value = ZooKeeperIndex.class, name = "zookeeper...
private IIndex artifactIndex;
Spedge/hangar
hangar-api/src/main/java/com/spedge/hangar/config/HangarConfiguration.java
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IIndex.java // @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "index") // @JsonSubTypes( // { // @JsonSubTypes.Type(value = InMemoryIndex.class, name = "in-memory"), // @JsonSubTypes.Type(value = ZooKeeperIndex.class, name = "zookeeper...
import com.fasterxml.jackson.annotation.JsonProperty; import com.spedge.hangar.index.IIndex; import com.spedge.hangar.repo.IRepository; import com.spedge.hangar.storage.IStorage; import io.dropwizard.Configuration; import org.hibernate.validator.constraints.NotEmpty; import java.util.List;
package com.spedge.hangar.config; public class HangarConfiguration extends Configuration { @JsonProperty private IStorage storage; @JsonProperty private IIndex artifactIndex; @NotEmpty @JsonProperty
// Path: hangar-api/src/main/java/com/spedge/hangar/index/IIndex.java // @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "index") // @JsonSubTypes( // { // @JsonSubTypes.Type(value = InMemoryIndex.class, name = "in-memory"), // @JsonSubTypes.Type(value = ZooKeeperIndex.class, name = "zookeeper...
private List<IRepository> repositories;
henrysher/bootchart
src/org/bootchart/parser/linux/ProcPsParser.java
// Path: src/org/bootchart/common/CPUSample.java // public class CPUSample extends Sample { // /** User load. */ // public double user; // /** System load. */ // public double sys; // /** The percentage of CPU time spent waiting on disk I/O. */ // public double io; // // /** // * Creates a new sample. // * ...
import org.bootchart.common.CPUSample; import org.bootchart.common.Common; import org.bootchart.common.Process; import org.bootchart.common.ProcessSample; import org.bootchart.common.PsStats; import org.bootchart.common.Sample; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; impor...
/* * Bootchart -- Boot Process Visualization * * Copyright (C) 2004 Ziga Mahkovec <ziga.mahkovec@klika.si> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the Li...
// Path: src/org/bootchart/common/CPUSample.java // public class CPUSample extends Sample { // /** User load. */ // public double user; // /** System load. */ // public double sys; // /** The percentage of CPU time spent waiting on disk I/O. */ // public double io; // // /** // * Creates a new sample. // * ...
public static PsStats parseLog(InputStream is, Map pidNameMap, Map forkMap)
henrysher/bootchart
src/org/bootchart/parser/linux/ProcPsParser.java
// Path: src/org/bootchart/common/CPUSample.java // public class CPUSample extends Sample { // /** User load. */ // public double user; // /** System load. */ // public double sys; // /** The percentage of CPU time spent waiting on disk I/O. */ // public double io; // // /** // * Creates a new sample. // * ...
import org.bootchart.common.CPUSample; import org.bootchart.common.Common; import org.bootchart.common.Process; import org.bootchart.common.ProcessSample; import org.bootchart.common.PsStats; import org.bootchart.common.Sample; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; impor...
Process proc = (Process)processMap.get(new Integer(pid)); if (proc == null) { int ppid = Integer.parseInt(data[1]); proc = new Process(pid, cmd); proc.ppid = ppid; proc.startTime = new Date(Math.min(Integer.parseInt(data[19]) * 10, time.getTime())); processMap.put(new Integer(pid), proc...
// Path: src/org/bootchart/common/CPUSample.java // public class CPUSample extends Sample { // /** User load. */ // public double user; // /** System load. */ // public double sys; // /** The percentage of CPU time spent waiting on disk I/O. */ // public double io; // // /** // * Creates a new sample. // * ...
CPUSample procCpuSample = new CPUSample(null, userCpuLoad, sysCpuLoad, 0.0);
henrysher/bootchart
src/org/bootchart/parser/linux/ProcPsParser.java
// Path: src/org/bootchart/common/CPUSample.java // public class CPUSample extends Sample { // /** User load. */ // public double user; // /** System load. */ // public double sys; // /** The percentage of CPU time spent waiting on disk I/O. */ // public double io; // // /** // * Creates a new sample. // * ...
import org.bootchart.common.CPUSample; import org.bootchart.common.Common; import org.bootchart.common.Process; import org.bootchart.common.ProcessSample; import org.bootchart.common.PsStats; import org.bootchart.common.Sample; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; impor...
if (proc == null) { int ppid = Integer.parseInt(data[1]); proc = new Process(pid, cmd); proc.ppid = ppid; proc.startTime = new Date(Math.min(Integer.parseInt(data[19]) * 10, time.getTime())); processMap.put(new Integer(pid), proc); } else { proc.cmd = cmd; } int state ...
// Path: src/org/bootchart/common/CPUSample.java // public class CPUSample extends Sample { // /** User load. */ // public double user; // /** System load. */ // public double sys; // /** The percentage of CPU time spent waiting on disk I/O. */ // public double io; // // /** // * Creates a new sample. // * ...
ProcessSample procSample =
henrysher/bootchart
src/org/bootchart/parser/linux/ProcDiskStatParser.java
// Path: src/org/bootchart/common/DiskTPutSample.java // public class DiskTPutSample extends Sample { // /** Read throughput (KB/s). */ // public double read; // /** Write throughput (KB/s). */ // public double write; // // /** // * Creates a new sample. // * // * @param time sample time // * @param r...
import org.bootchart.common.DiskTPutSample; import org.bootchart.common.DiskUtilSample; import org.bootchart.common.Sample; import org.bootchart.common.Stats; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.util.Date; import java.util.HashMap; import java.util.Iterator...
/* * Bootchart -- Boot Process Visualization * * Copyright (C) 2004 Ziga Mahkovec <ziga.mahkovec@klika.si> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the Li...
// Path: src/org/bootchart/common/DiskTPutSample.java // public class DiskTPutSample extends Sample { // /** Read throughput (KB/s). */ // public double read; // /** Write throughput (KB/s). */ // public double write; // // /** // * Creates a new sample. // * // * @param time sample time // * @param r...
public static Stats parseLog(InputStream is, int numCpu)
henrysher/bootchart
src/org/bootchart/parser/linux/ProcDiskStatParser.java
// Path: src/org/bootchart/common/DiskTPutSample.java // public class DiskTPutSample extends Sample { // /** Read throughput (KB/s). */ // public double read; // /** Write throughput (KB/s). */ // public double write; // // /** // * Creates a new sample. // * // * @param time sample time // * @param r...
import org.bootchart.common.DiskTPutSample; import org.bootchart.common.DiskUtilSample; import org.bootchart.common.Sample; import org.bootchart.common.Stats; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.util.Date; import java.util.HashMap; import java.util.Iterator...
} if (ltime != null) { sample.changes[0] = rsect - sample.values[0]; sample.changes[1] = wsect - sample.values[1]; sample.changes[2] = use - sample.values[2]; } sample.values = new long[]{rsect, wsect, use}; line = reader.readLine(); } if (ltime != null) { long interval = ti...
// Path: src/org/bootchart/common/DiskTPutSample.java // public class DiskTPutSample extends Sample { // /** Read throughput (KB/s). */ // public double read; // /** Write throughput (KB/s). */ // public double write; // // /** // * Creates a new sample. // * // * @param time sample time // * @param r...
DiskTPutSample tputSample = new DiskTPutSample(time, readTPut, writeTPut);
henrysher/bootchart
src/org/bootchart/parser/linux/ProcNetDevParser.java
// Path: src/org/bootchart/common/DiskTPutSample.java // public class DiskTPutSample extends Sample { // /** Read throughput (KB/s). */ // public double read; // /** Write throughput (KB/s). */ // public double write; // // /** // * Creates a new sample. // * // * @param time sample time // * @param r...
import org.bootchart.common.NetDevTPutSample; import org.bootchart.common.Stats; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.util.Date; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.logging.Logger; import org.bootchart....
/* * Bootchart -- Boot Process Visualization * * Copyright (C) 2006 Ziga Mahkovec <ziga.mahkovec@klika.si> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the Li...
// Path: src/org/bootchart/common/DiskTPutSample.java // public class DiskTPutSample extends Sample { // /** Read throughput (KB/s). */ // public double read; // /** Write throughput (KB/s). */ // public double write; // // /** // * Creates a new sample. // * // * @param time sample time // * @param r...
public static Stats parseLog(InputStream is)
henrysher/bootchart
src/org/bootchart/parser/linux/ProcNetDevParser.java
// Path: src/org/bootchart/common/DiskTPutSample.java // public class DiskTPutSample extends Sample { // /** Read throughput (KB/s). */ // public double read; // /** Write throughput (KB/s). */ // public double write; // // /** // * Creates a new sample. // * // * @param time sample time // * @param r...
import org.bootchart.common.NetDevTPutSample; import org.bootchart.common.Stats; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.util.Date; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.logging.Logger; import org.bootchart....
long tbytes = Long.parseLong(tokens[9]); NetDevSample sample = (NetDevSample)diskStatMap.get(iface); if (sample == null) { sample = new NetDevSample(); diskStatMap.put(iface, sample); } if (ltime != null) { sample.changes[0] = rbytes - sample.values[0]; sample.changes[1] = tbytes...
// Path: src/org/bootchart/common/DiskTPutSample.java // public class DiskTPutSample extends Sample { // /** Read throughput (KB/s). */ // public double read; // /** Write throughput (KB/s). */ // public double write; // // /** // * Creates a new sample. // * // * @param time sample time // * @param r...
NetDevTPutSample tputSample = new NetDevTPutSample(time, readTPut, writeTPut);