Top Description Inners Fields Constructors Methods
org.eclipse.jgit.transport

public abstract Class DaemonService

extends Object
Class Inheritance
Imports
java.io.IOException, java.util.Collection, org.eclipse.jgit.annotations.Nullable, org.eclipse.jgit.lib.Config, .Config.SectionParser, .Repository, org.eclipse.jgit.transport.resolver.ServiceNotAuthorizedException, .ServiceNotEnabledException

A service exposed by org.eclipse.jgit.transport.Daemon over anonymous git://.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private final String
private final Config.SectionParser<DaemonService.ServiceConfig>
private boolean
private boolean

Constructor Summary

AccessConstructor and Description
pack-priv
DaemonService(String cmdName, String cfgName)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
execute(DaemonClient client, String commandLine, Collection<String> extraParameters)

pack-priv abstract void
execute(DaemonClient client, Repository db, Collection<String> extraParameters)

public String

Returns:

name of the command requested by clients.
getCommandName
()

Get name of the command requested by clients.

public boolean

Returns:

true if this command can accept the given command line.
handles
(String
input line from the client.
commandLine
)

Determine if this service can handle the requested command.

public boolean

Returns:

whether this service is enabled for invocation.
isEnabled
()

Whether this service is enabled for invocation.

private boolean
public boolean

Returns:

whether this service can be configured in the repository config file
isOverridable
()

Whether this service can be configured in the repository config file

public void
setEnabled(boolean
true to allow this service to be used; false to deny it.
on
)

Set if it is allowed to use this service

public void
setOverridable(boolean
true to permit repositories to override this service's enabled state with the daemon.servicename config setting.
on
)

Whether to permit repositories to override this service's enabled state with the daemon.servicename config setting.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

commandback to summary
private final String command
configKeyback to summary
private final Config.SectionParser<DaemonService.ServiceConfig> configKey
enabledback to summary
private boolean enabled
overridableback to summary
private boolean overridable

Constructor Detail

DaemonServiceback to summary
pack-priv DaemonService(String cmdName, String cfgName)

Method Detail

executeback to summary
pack-priv void execute(DaemonClient client, String commandLine, Collection<String> extraParameters) throws IOException, ServiceNotEnabledException, ServiceNotAuthorizedException
executeback to summary
pack-priv abstract void execute(DaemonClient client, Repository db, Collection<String> extraParameters) throws IOException, ServiceNotEnabledException, ServiceNotAuthorizedException
getCommandNameback to summary
public String getCommandName()

Get name of the command requested by clients.

Returns:String

name of the command requested by clients.

handlesback to summary
public boolean handles(String commandLine)

Determine if this service can handle the requested command.

Parameters
commandLine:String

input line from the client.

Returns:boolean

true if this command can accept the given command line.

isEnabledback to summary
public boolean isEnabled()

Whether this service is enabled for invocation.

Returns:boolean

whether this service is enabled for invocation.

isEnabledForback to summary
private boolean isEnabledFor(Repository db)
isOverridableback to summary
public boolean isOverridable()

Whether this service can be configured in the repository config file

Returns:boolean

whether this service can be configured in the repository config file

setEnabledback to summary
public void setEnabled(boolean on)

Set if it is allowed to use this service

Parameters
on:boolean

true to allow this service to be used; false to deny it.

setOverridableback to summary
public void setOverridable(boolean on)

Whether to permit repositories to override this service's enabled state with the daemon.servicename config setting.

Parameters
on:boolean

true to permit repositories to override this service's enabled state with the daemon.servicename config setting.

org.eclipse.jgit.transport back to summary

private Class DaemonService.ServiceConfig

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final boolean

Constructor Summary

AccessConstructor and Description
pack-priv
ServiceConfig(final DaemonService service, final Config cfg, final String name)

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

enabledback to summary
pack-priv final boolean enabled

Constructor Detail

ServiceConfigback to summary
pack-priv ServiceConfig(final DaemonService service, final Config cfg, final String name)