|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aragost.javahg.RepositoryConfiguration
public class RepositoryConfiguration
Settings for repository and underlying server process
Nested Class Summary | |
---|---|
static class |
RepositoryConfiguration.CachePolicy
|
Field Summary | |
---|---|
static RepositoryConfiguration |
DEFAULT
The default configuration, used in case no explicit configuration is given to a Repository |
protected static Charset |
DEFAULT_ENCODING
The default encoding for the repository |
Constructor Summary | |
---|---|
RepositoryConfiguration()
|
Method Summary | |
---|---|
void |
addExtension(Class<? extends MercurialExtension> extClass)
|
RepositoryConfiguration.CachePolicy |
getCachePolicy()
|
CodingErrorAction |
getCodingErrorAction()
|
int |
getCommandWaitTimeout()
|
int |
getConcurrency()
|
Charset |
getEncoding()
|
Map<String,String> |
getEnvironment()
|
Collection<Class<? extends MercurialExtension>> |
getExtensionClasses()
|
String |
getHgBin()
|
String |
getHgrcPath()
|
int |
getServerIdleTime()
After a command server is idle for this many seconds the server pool may stop it. |
String |
getSshBin()
Returns the custom SSH executable which should be used by Mercurial. |
int |
getStderrBufferSize()
|
boolean |
isEnablePendingChangesets()
|
void |
removeExtension(Class<? extends MercurialExtension> extClass)
|
void |
setCachePolicy(RepositoryConfiguration.CachePolicy cachePolicy)
|
void |
setCodingErrorAction(CodingErrorAction codingErrorAction)
|
void |
setCommandWaitTimeout(int seconds)
Set the maximum number of seconds to wait for a command server instance to become available. |
void |
setConcurrency(int concurrency)
The maximum number of command server processes to use. |
void |
setEnablePendingChangesets(boolean enablePendingChangesets)
|
void |
setEncoding(Charset encoding)
|
void |
setExtensionClasses(Collection<Class<? extends MercurialExtension>> extensionClasses)
|
void |
setHgBin(String hgBin)
|
void |
setHgrcPath(String hgrcPath)
|
void |
setServerIdleTime(int seconds)
After a command server is idle for this many seconds the server pool may stop it. |
void |
setSshBin(String sshBin)
Sets the custom SSH executable which should be used by Mercurial. |
void |
setStderrBufferSize(int stderrBufferSize)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final Charset DEFAULT_ENCODING
public static final RepositoryConfiguration DEFAULT
Repository
Constructor Detail |
---|
public RepositoryConfiguration()
Method Detail |
---|
public boolean isEnablePendingChangesets()
public void setEnablePendingChangesets(boolean enablePendingChangesets)
public String getHgBin()
public void setHgBin(String hgBin)
public String getHgrcPath()
public void setHgrcPath(String hgrcPath)
public RepositoryConfiguration.CachePolicy getCachePolicy()
public void setCachePolicy(RepositoryConfiguration.CachePolicy cachePolicy)
public CodingErrorAction getCodingErrorAction()
public void setCodingErrorAction(CodingErrorAction codingErrorAction)
public int getStderrBufferSize()
public void setStderrBufferSize(int stderrBufferSize)
public Collection<Class<? extends MercurialExtension>> getExtensionClasses()
public void setExtensionClasses(Collection<Class<? extends MercurialExtension>> extensionClasses)
public void addExtension(Class<? extends MercurialExtension> extClass)
public void removeExtension(Class<? extends MercurialExtension> extClass)
public Charset getEncoding()
public void setEncoding(Charset encoding)
public int getConcurrency()
public void setConcurrency(int concurrency)
concurrency
- The maximum number of command server processes to use.public int getCommandWaitTimeout()
public void setCommandWaitTimeout(int seconds)
seconds
- The amount of time to wait for a server to become available in
seconds.public int getServerIdleTime()
Integer.MAX_VALUE
.
public void setServerIdleTime(int seconds)
Integer.MAX_VALUE
.
seconds
- The idle time for a serverpublic String getSshBin()
public void setSshBin(String sshBin)
sshBin
- the custom SSH executablepublic Map<String,String> getEnvironment()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |