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 IRepositoryConnectionisnew - true if this is a new instance.public boolean getIsNew()
getIsNew in interface IRepositoryConnectionpublic void setName(String name)
setName in interface IRepositoryConnectionname - is the name.public String getName()
getName in interface IRepositoryConnectionpublic void setDescription(String description)
setDescription in interface IRepositoryConnectiondescription - is the description.public String getDescription()
getDescription in interface IRepositoryConnectionpublic void setClassName(String className)
setClassName in interface IRepositoryConnectionclassName - is the class name.public String getClassName()
getClassName in interface IRepositoryConnectionpublic void setACLAuthority(String authorityName)
setACLAuthority in interface IRepositoryConnectionauthorityName - is the ACL authority name.public String getACLAuthority()
getACLAuthority in interface IRepositoryConnectionpublic ConfigParams getConfigParams()
getConfigParams in interface IRepositoryConnectionpublic void setMaxConnections(int maxCount)
setMaxConnections in interface IRepositoryConnectionmaxCount - is the maximum connection count per JVM.public int getMaxConnections()
getMaxConnections in interface IRepositoryConnectionpublic void clearThrottleValues()
clearThrottleValues in interface IRepositoryConnectionpublic void addThrottleValue(String match, String description, float throttle)
addThrottleValue in interface IRepositoryConnectiondescription - 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 IRepositoryConnectionmatch - is the regexp describing the throttle to be removed.public String[] getThrottles()
getThrottles in interface IRepositoryConnectionpublic String getThrottleDescription(String match)
getThrottleDescription in interface IRepositoryConnectionmatch - describes the throttle.public float getThrottleValue(String match)
getThrottleValue in interface IRepositoryConnectionmatch - describes the throttle.public void setThrottle(Float rate)
setThrottle in interface IRepositoryConnectionrate - is the rate, in fetches/millisecond.public Float getThrottle()
getThrottle in interface IRepositoryConnection