Package org.eclipse.jgit.pgm.debug
Class BenchmarkReftable
- java.lang.Object
-
- org.eclipse.jgit.pgm.TextBuiltin
-
- org.eclipse.jgit.pgm.debug.BenchmarkReftable
-
class BenchmarkReftable extends TextBuiltin
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
BenchmarkReftable.Test
-
Nested classes/interfaces inherited from class org.eclipse.jgit.pgm.TextBuiltin
TextBuiltin.TerminatedByHelpException
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
lsRemotePath
private java.lang.String
objectId
private java.lang.String
ref
private java.lang.String
reftablePath
private BenchmarkReftable.Test
test
private int
tries
-
Constructor Summary
Constructors Constructor Description BenchmarkReftable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
byIdCold(ObjectId id)
private void
byIdHot(ObjectId id)
private void
getRefsExcludingWithFilter(java.lang.String prefix)
private void
getRefsExcludingWithSeekPast(java.lang.String prefix)
private void
printf(java.lang.String fmt, java.lang.Object... args)
private RefList<Ref>
readLsRemote()
protected void
run()
Perform the actions of this command.private void
scan()
private void
seekCold(java.lang.String refName)
private void
seekHot(java.lang.String refName)
private void
writeStack()
-
Methods inherited from class org.eclipse.jgit.pgm.TextBuiltin
containsHelp, die, die, die, die, execute, getErrorWriter, getOutputWriter, getRepository, getResourceBundle, init, initRaw, parseArguments, printUsage, printUsageAndExit, printUsageAndExit, requiresRepository
-
-
-
-
Field Detail
-
tries
private int tries
-
test
private BenchmarkReftable.Test test
-
ref
private java.lang.String ref
-
objectId
private java.lang.String objectId
-
lsRemotePath
private java.lang.String lsRemotePath
-
reftablePath
private java.lang.String reftablePath
-
-
Method Detail
-
run
protected void run() throws java.lang.Exception
Perform the actions of this command.This method should only be invoked by
TextBuiltin.execute(String[])
.- Specified by:
run
in classTextBuiltin
- Throws:
java.lang.Exception
- an error occurred while processing the command. The main framework will catch the exception and print a message on standard error.
-
printf
private void printf(java.lang.String fmt, java.lang.Object... args) throws java.io.IOException
- Throws:
java.io.IOException
-
writeStack
private void writeStack() throws java.lang.Exception
- Throws:
java.lang.Exception
-
scan
private void scan() throws java.lang.Exception
- Throws:
java.lang.Exception
-
readLsRemote
private RefList<Ref> readLsRemote() throws java.io.IOException, java.io.FileNotFoundException
- Throws:
java.io.IOException
java.io.FileNotFoundException
-
seekCold
private void seekCold(java.lang.String refName) throws java.lang.Exception
- Throws:
java.lang.Exception
-
seekHot
private void seekHot(java.lang.String refName) throws java.lang.Exception
- Throws:
java.lang.Exception
-
byIdCold
private void byIdCold(ObjectId id) throws java.lang.Exception
- Throws:
java.lang.Exception
-
byIdHot
private void byIdHot(ObjectId id) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getRefsExcludingWithFilter
private void getRefsExcludingWithFilter(java.lang.String prefix) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getRefsExcludingWithSeekPast
private void getRefsExcludingWithSeekPast(java.lang.String prefix) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-