Top Inners Fields Constructors Methods
org.eclipse.jgit.pgm.debug

pack-priv Class LfsStore

extends TextBuiltin
Class Inheritance
Annotations
@Command
common:true
usage:usage_runLfsStore
Imports
java.io.File, .IOException, java.net.InetAddress, .URI, .URISyntaxException, .UnknownHostException, java.nio.file.Path, .Paths, java.text.MessageFormat, org.eclipse.jetty.server.Connector, .HttpConfiguration, .HttpConnectionFactory, .Server, .ServerConnector, org.eclipse.jetty.server.handler.ContextHandlerCollection, org.eclipse.jetty.ee10.servlet.ServletContextHandler, .ServletHolder, org.eclipse.jgit.errors.ConfigInvalidException, org.eclipse.jgit.lfs.server.LargeFileRepository, .LfsProtocolServlet, org.eclipse.jgit.lfs.server.fs.FileLfsRepository, .FileLfsServlet, org.eclipse.jgit.lfs.server.s3.S3Config, .S3Repository, org.eclipse.jgit.pgm.Command, .TextBuiltin, org.eclipse.jgit.pgm.internal.CLIText, org.eclipse.jgit.storage.file.FileBasedConfig, org.eclipse.jgit.util.FS, org.kohsuke.args4j.Argument, .Option

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
LfsStore.AppServer

Tiny web application server for testing

private static enum
private static enum

Field Summary

Modifier and TypeField and Description
pack-priv String
pack-priv String
pack-priv String
pack-priv boolean
pack-priv int
private static final String
pack-priv int
private static final String
pack-priv String
pack-priv String
pack-priv String
pack-priv LfsStore.StorageClass
private static final String
pack-priv LfsStore.StoreType
pack-priv String
Inherited from org.eclipse.jgit.pgm.TextBuiltin:
argWalkdberrserrwgitdirinsoutsoutw

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private void
private String
private String
getStoreUrl(URI baseURI)

private void
protected boolean
requiresRepository()

Overrides org.eclipse.jgit.pgm.TextBuiltin.requiresRepository.

If this command requires a repository.

protected void
run()

Implements abstract org.eclipse.jgit.pgm.TextBuiltin.run.

Perform the actions of this command.

Inherited from org.eclipse.jgit.pgm.TextBuiltin:
containsHelpdiediediedieexecutegetErrorWritergetOutputWritergetRepositorygetResourceBundleinitinitRawparseArgumentsprintUsageprintUsageAndExitprintUsageAndExit

Field Detail

accessKeyback to summary
pack-priv String accessKey
bucketback to summary
pack-priv String bucket
Annotations
@Option
name:--bucket
aliases:-b
metaVar:metaVar_s3Bucket
usage:usage_S3Bucket
directoryback to summary
pack-priv String directory
Annotations
@Argument
required:false
metaVar:metaVar_directory
usage:usage_LFSDirectory
disableSslVerifyback to summary
pack-priv boolean disableSslVerify
Annotations
@Option
name:--no-ssl-verify
usage:usage_S3NoSslVerify
expirationSecondsback to summary
pack-priv int expirationSeconds
Annotations
@Option
name:--expire
aliases:-e
metaVar:metaVar_seconds
usage:usage_S3Expiration
OBJECTSback to summary
private static final String OBJECTS
portback to summary
pack-priv int port
Annotations
@Option
name:--port
aliases:-p
metaVar:metaVar_port
usage:usage_LFSPort
PROTOCOL_PATHback to summary
private static final String PROTOCOL_PATH
protocolUrlback to summary
pack-priv String protocolUrl
regionback to summary
pack-priv String region
Annotations
@Option
name:--region
aliases:-r
metaVar:metaVar_s3Region
usage:usage_S3Region
secretKeyback to summary
pack-priv String secretKey
storageClassback to summary
pack-priv LfsStore.StorageClass storageClass
Annotations
@Option
name:--storage-class
aliases:-c
metaVar:metaVar_s3StorageClass
usage:usage_S3StorageClass
STORE_PATHback to summary
private static final String STORE_PATH
storeTypeback to summary
pack-priv LfsStore.StoreType storeType
Annotations
@Option
name:--store
metaVar:metaVar_lfsStorage
usage:usage_LFSRunStore
storeUrlback to summary
pack-priv String storeUrl
Annotations
@Option
name:--store-url
aliases:-u
metaVar:metaVar_url
usage:usage_LFSStoreUrl

Constructor Detail

LfsStoreback to summary
pack-priv LfsStore()

Method Detail

checkOptionsback to summary
private void checkOptions()
getProtocolUrlback to summary
private String getProtocolUrl(URI baseURI)
getStoreUrlback to summary
private String getStoreUrl(URI baseURI)
readAWSKeysback to summary
private void readAWSKeys() throws IOException, ConfigInvalidException
requiresRepositoryback to summary
protected boolean requiresRepository()

Overrides org.eclipse.jgit.pgm.TextBuiltin.requiresRepository.

Doc from org.eclipse.jgit.pgm.TextBuiltin.requiresRepository.

If this command requires a repository.

Returns:boolean

true if db/getRepository() is required

Annotations
@Override
runback to summary
protected void run() throws Exception

Implements abstract org.eclipse.jgit.pgm.TextBuiltin.run.

Doc from org.eclipse.jgit.pgm.TextBuiltin.run.

Perform the actions of this command.

This method should only be invoked by execute(String[]).

Annotations
@Override
Exceptions
Exception:
an error occurred while processing the command. The main framework will catch the exception and print a message on standard error.
org.eclipse.jgit.pgm.debug back to summary

pack-priv Class LfsStore.AppServer

extends Object
Class Inheritance

Tiny web application server for testing

Field Summary

Modifier and TypeField and Description
private final ServerConnector
private final ContextHandlerCollection
private final Server
private URI

Constructor Summary

AccessConstructor and Description
pack-priv
AppServer(int port)

Method Summary

Modifier and TypeMethod and Description
pack-priv ServletContextHandler

Returns:

the context to add servlets into.
addContext
(String
path of the context; use "/" for the root context if binding to the root is desired.
path
)

Create a new servlet context within the server.

private void
pack-priv URI
pack-priv void
pack-priv void
stop()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

connectorback to summary
private final ServerConnector connector
contextsback to summary
private final ContextHandlerCollection contexts
serverback to summary
private final Server server
uriback to summary
private URI uri

Constructor Detail

AppServerback to summary
pack-priv AppServer(int port)

Method Detail

addContextback to summary
pack-priv ServletContextHandler addContext(String path)

Create a new servlet context within the server.

This method should be invoked before the server is started, once for each context the caller wants to register.

Parameters
path:String

path of the context; use "/" for the root context if binding to the root is desired.

Returns:ServletContextHandler

the context to add servlets into.

assertNotRunningback to summary
private void assertNotRunning()
getURIback to summary
pack-priv URI getURI()
startback to summary
pack-priv void start() throws Exception
stopback to summary
pack-priv void stop() throws Exception
org.eclipse.jgit.pgm.debug back to summary

private final Enum LfsStore.StorageClass

extends Enum<LfsStore.StorageClass>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final LfsStore.StorageClass
public static final LfsStore.StorageClass

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static LfsStore.StorageClass
public static LfsStore.StorageClass[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

REDUCED_REDUNDANCYback to summary
public static final LfsStore.StorageClass REDUCED_REDUNDANCY
STANDARDback to summary
public static final LfsStore.StorageClass STANDARD

Constructor Detail

StorageClassback to summary
private StorageClass()

Method Detail

valueOfback to summary
public static LfsStore.StorageClass valueOf(String name)
valuesback to summary
public static LfsStore.StorageClass[] values()
org.eclipse.jgit.pgm.debug back to summary

private final Enum LfsStore.StoreType

extends Enum<LfsStore.StoreType>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final LfsStore.StoreType
public static final LfsStore.StoreType

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static LfsStore.StoreType
public static LfsStore.StoreType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

FSback to summary
public static final LfsStore.StoreType FS
S3back to summary
public static final LfsStore.StoreType S3

Constructor Detail

StoreTypeback to summary
private StoreType()

Method Detail

valueOfback to summary
public static LfsStore.StoreType valueOf(String name)
valuesback to summary
public static LfsStore.StoreType[] values()