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