|
KIE NIO.2 :: JGIT Impl 6.0.0.CR4-Pre1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kie.commons.java.nio.fs.jgit.util.Daemon
public class Daemon
Basic daemon for the anonymous git:// transport protocol.
| Field Summary | |
|---|---|
static int |
DEFAULT_PORT
9418: IANA assigned port number for Git. |
| Constructor Summary | |
|---|---|
Daemon()
Configure a daemon to listen on any available network port. |
|
Daemon(InetSocketAddress addr)
Configure a new daemon for the specified network address. |
|
| Method Summary | |
|---|---|
InetSocketAddress |
getAddress()
|
org.eclipse.jgit.storage.pack.PackConfig |
getPackConfig()
|
DaemonService |
getService(String name)
Lookup a supported service so it can be reconfigured. |
int |
getTimeout()
|
boolean |
isRunning()
|
void |
setPackConfig(org.eclipse.jgit.storage.pack.PackConfig pc)
Set the configuration used by the pack generator. |
void |
setReceivePackFactory(org.eclipse.jgit.transport.resolver.ReceivePackFactory<DaemonClient> factory)
Set the factory to construct and configure per-request ReceivePack. |
void |
setRepositoryResolver(org.eclipse.jgit.transport.resolver.RepositoryResolver<DaemonClient> resolver)
Set the resolver used to locate a repository by name. |
void |
setTimeout(int seconds)
Set the timeout before willing to abort an IO call. |
void |
setUploadPackFactory(org.eclipse.jgit.transport.resolver.UploadPackFactory<DaemonClient> factory)
Set the factory to construct and configure per-request UploadPack. |
void |
start()
Start this daemon on a background thread. |
void |
stop()
Stop this daemon. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_PORT
| Constructor Detail |
|---|
public Daemon()
public Daemon(InetSocketAddress addr)
addr - address to listen for connections on. If null, any available
port will be chosen on all network interfaces.| Method Detail |
|---|
public InetSocketAddress getAddress()
public DaemonService getService(String name)
name - name of the service; e.g. "receive-pack"/"git-receive-pack" or
"upload-pack"/"git-upload-pack".
public int getTimeout()
public void setTimeout(int seconds)
seconds - number of seconds to wait (with no data transfer occurring)
before aborting an IO read or write operation with the
connected client.public org.eclipse.jgit.storage.pack.PackConfig getPackConfig()
public void setPackConfig(org.eclipse.jgit.storage.pack.PackConfig pc)
pc - configuration controlling packing parameters. If null the
source repository's settings will be used.public void setRepositoryResolver(org.eclipse.jgit.transport.resolver.RepositoryResolver<DaemonClient> resolver)
resolver - the resolver instance.public void setUploadPackFactory(org.eclipse.jgit.transport.resolver.UploadPackFactory<DaemonClient> factory)
factory - the factory. If null upload-pack is disabled.public void setReceivePackFactory(org.eclipse.jgit.transport.resolver.ReceivePackFactory<DaemonClient> factory)
factory - the factory. If null receive-pack is disabled.
public void start()
throws IOException
IOException - the server socket could not be opened.
IllegalStateException - the daemon is already running.public boolean isRunning()
public void stop()
|
KIE NIO.2 :: JGIT Impl 6.0.0.CR4-Pre1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||