Top Fields Constructors Methods
org.eclipse.jgit.pgm

pack-priv Class Daemon

extends TextBuiltin
Class Inheritance
Annotations
@Command
common:true
usage:usage_exportRepositoriesOverGit
Imports
java.io.File, .IOException, java.net.InetSocketAddress, java.text.MessageFormat, java.util.ArrayList, .List, java.util.concurrent.Executors, org.eclipse.jgit.errors.ConfigInvalidException, org.eclipse.jgit.lib.StoredConfig, org.eclipse.jgit.pgm.internal.CLIText, org.eclipse.jgit.storage.file.FileBasedConfig, .WindowCacheConfig, org.eclipse.jgit.storage.pack.PackConfig, org.eclipse.jgit.transport.DaemonClient, .DaemonService, org.eclipse.jgit.transport.resolver.FileResolver, org.eclipse.jgit.util.FS, .SystemReader, org.kohsuke.args4j.Argument, .Option

Field Summary

Modifier and TypeField and Description
pack-priv List<String>
pack-priv File
pack-priv List<File>
pack-priv List<String>
pack-priv List<String>
pack-priv boolean
pack-priv List<String>
pack-priv String
pack-priv int
pack-priv int
Inherited from org.eclipse.jgit.pgm.TextBuiltin:
argWalkdberrserrwgitdirinsoutsoutw

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private StoredConfig
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.

private static DaemonService
service(final Daemon d, final String n)

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

Field Detail

canOverrideback to summary
pack-priv List<String> canOverride
Annotations
@Option
name:--allow-override
metaVar:metaVar_service
usage:usage_configureTheServiceInDaemonServicename
configFileback to summary
pack-priv File configFile
Annotations
@Option
name:--config-file
metaVar:metaVar_configFile
usage:usage_configFile
directoryback to summary
pack-priv List<File> directory
Annotations
@Argument
required:true
metaVar:metaVar_directory
usage:usage_directoriesToExport
disableback to summary
pack-priv List<String> disable
Annotations
@Option
name:--disable
metaVar:metaVar_service
usage:usage_disableTheServiceInAllRepositories
enableback to summary
pack-priv List<String> enable
Annotations
@Option
name:--enable
metaVar:metaVar_service
usage:usage_enableTheServiceInAllRepositories
exportAllback to summary
pack-priv boolean exportAll
Annotations
@Option
name:--export-all
usage:usage_exportWithoutGitDaemonExportOk
forbidOverrideback to summary
pack-priv List<String> forbidOverride
Annotations
@Option
name:--forbid-override
metaVar:metaVar_service
usage:usage_configureTheServiceInDaemonServicename
hostback to summary
pack-priv String host
Annotations
@Option
name:--listen
metaVar:metaVar_hostName
usage:usage_hostnameOrIpToListenOn
portback to summary
pack-priv int port
Annotations
@Option
name:--port
metaVar:metaVar_port
usage:usage_portNumberToListenOn
timeoutback to summary
pack-priv int timeout
Annotations
@Option
name:--timeout
metaVar:metaVar_seconds
usage:usage_abortConnectionIfNoActivity

Constructor Detail

Daemonback to summary
pack-priv Daemon()

Method Detail

getUserConfigback to summary
private StoredConfig getUserConfig() throws IOException
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.
serviceback to summary
private static DaemonService service(final Daemon d, final String n)