public class RepositoryConnection extends java.lang.Object implements IRepositoryConnection
Modifier and Type | Class and Description |
---|---|
protected static class |
RepositoryConnection.ThrottleItem
Throttle item class.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
_rcsid |
protected java.lang.String |
authorityName |
protected java.lang.String |
className |
protected ConfigParams |
configParams |
protected java.lang.String |
description |
protected boolean |
isNew |
protected int |
maxCount |
protected java.lang.String |
name |
protected java.util.HashMap |
throttles |
Constructor and Description |
---|
RepositoryConnection()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addThrottleValue(java.lang.String match,
java.lang.String description,
float throttle)
Add a throttle value.
|
void |
clearThrottleValues()
Clear all throttle values.
|
void |
deleteThrottleValue(java.lang.String match)
Delete a throttle.
|
RepositoryConnection |
duplicate()
Clone this object.
|
java.lang.String |
getACLAuthority()
Get the ACL authority name.
|
java.lang.String |
getClassName()
Get the class name.
|
ConfigParams |
getConfigParams()
Get the configuration parameters.
|
java.lang.String |
getDescription()
Get description.
|
boolean |
getIsNew()
Get 'isnew' condition.
|
int |
getMaxConnections()
Get the maximum size of the connection pool.
|
java.lang.String |
getName()
Get name.
|
java.lang.Float |
getThrottle()
Get the maximum number of document fetches per millisecond.
|
java.lang.String |
getThrottleDescription(java.lang.String match)
Get the description for a throttle.
|
java.lang.String[] |
getThrottles()
Get throttles.
|
float |
getThrottleValue(java.lang.String match)
Get the throttle value for a throttle.
|
void |
setACLAuthority(java.lang.String authorityName)
Set the ACL authority name.
|
void |
setClassName(java.lang.String className)
Set the class name.
|
void |
setDescription(java.lang.String description)
Set description.
|
void |
setIsNew(boolean isnew)
Set 'isnew' condition.
|
void |
setMaxConnections(int maxCount)
Set the maximum size of the connection pool.
|
void |
setName(java.lang.String name)
Set name.
|
void |
setThrottle(java.lang.Float rate)
Set the maximum number of document fetches per millisecond.
|
public static final java.lang.String _rcsid
protected boolean isNew
protected java.lang.String name
protected java.lang.String description
protected java.lang.String className
protected java.lang.String authorityName
protected ConfigParams configParams
protected int maxCount
protected java.util.HashMap throttles
public RepositoryConnection duplicate()
public void setIsNew(boolean isnew)
setIsNew
in interface IRepositoryConnection
isnew
- true if this is a new instance.public boolean getIsNew()
getIsNew
in interface IRepositoryConnection
public void setName(java.lang.String name)
setName
in interface IRepositoryConnection
name
- is the name.public java.lang.String getName()
getName
in interface IRepositoryConnection
public void setDescription(java.lang.String description)
setDescription
in interface IRepositoryConnection
description
- is the description.public java.lang.String getDescription()
getDescription
in interface IRepositoryConnection
public void setClassName(java.lang.String className)
setClassName
in interface IRepositoryConnection
className
- is the class name.public java.lang.String getClassName()
getClassName
in interface IRepositoryConnection
public void setACLAuthority(java.lang.String authorityName)
setACLAuthority
in interface IRepositoryConnection
authorityName
- is the ACL authority name.public java.lang.String getACLAuthority()
getACLAuthority
in interface IRepositoryConnection
public ConfigParams getConfigParams()
getConfigParams
in interface IRepositoryConnection
public void setMaxConnections(int maxCount)
setMaxConnections
in interface IRepositoryConnection
maxCount
- is the maximum connection count per JVM.public int getMaxConnections()
getMaxConnections
in interface IRepositoryConnection
public void clearThrottleValues()
clearThrottleValues
in interface IRepositoryConnection
public void addThrottleValue(java.lang.String match, java.lang.String description, float throttle)
addThrottleValue
in interface IRepositoryConnection
description
- is the throttle description.match
- is the regexp to be applied to the bin names.throttle
- is the fetch rate to use, in fetches per millisecond.public void deleteThrottleValue(java.lang.String match)
deleteThrottleValue
in interface IRepositoryConnection
match
- is the regexp describing the throttle to be removed.public java.lang.String[] getThrottles()
getThrottles
in interface IRepositoryConnection
public java.lang.String getThrottleDescription(java.lang.String match)
getThrottleDescription
in interface IRepositoryConnection
match
- describes the throttle.public float getThrottleValue(java.lang.String match)
getThrottleValue
in interface IRepositoryConnection
match
- describes the throttle.public void setThrottle(java.lang.Float rate)
setThrottle
in interface IRepositoryConnection
rate
- is the rate, in fetches/millisecond.public java.lang.Float getThrottle()
getThrottle
in interface IRepositoryConnection