|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.connectivity.framework.performancecounters.ConnectivityPerformanceCounterHelperBase<AgentType>
AgentType - real agent classpublic abstract class ConnectivityPerformanceCounterHelperBase<AgentType extends ConnectivityPerformanceAgent>
The Class ConnectivityPerformanceCounterHelperBase.
| Field Summary | |
|---|---|
protected java.lang.Class<AgentType> |
_agentClass
The _agent class. |
protected CrawlerControllerPerformanceAgent |
_controllerAgent
The _controller agent. |
protected AgentType |
_instanceAgent
The _instance agent. |
protected Log |
_log
The _log. |
protected AgentType |
_typeAgent
The _type agent. |
| Constructor Summary | |
|---|---|
ConnectivityPerformanceCounterHelperBase(DataSourceConnectionConfig configuration,
int hashCode,
java.lang.Class<AgentType> agentClass)
Instantiates a new crawler performance counter helper. |
|
| Method Summary | |
|---|---|
void |
addCriticalException(java.lang.Throwable ex)
Adds the critical exception. |
void |
addException(java.lang.Throwable ex)
Adds the exception. |
void |
addException(java.lang.Throwable exception,
boolean isCritical)
Adds the exception. |
protected abstract java.lang.String |
getdateConnectionIdSuffix()
|
AgentType |
getInstanceAgent()
|
protected abstract java.lang.String |
getPerformanceAgentCategory()
|
protected abstract java.lang.String |
getPerformanceAgentLocation()
Sets the crawler start date. |
void |
increment(java.lang.String name)
Increment. |
void |
incrementAttachmentBytes(long value)
Increment attachment bytes. |
void |
incrementBy(java.lang.String name,
long value)
Increment by. |
void |
incrementDeltaIndices()
Increment delta indices. |
void |
incrementDeltaIndicesBy(long value)
Increment delta indices by. |
void |
incrementRecords()
Increment records. |
void |
incrementRecordsBy(long value)
Increment records by. |
protected abstract AgentType |
initAgent(ManagementAgentLocation location)
Inits the agent. |
void |
setEndDate(java.util.Date endDate)
Sets the end date. |
void |
setImportRunId(java.lang.String importRunId)
|
void |
setJobName(java.lang.String jobName)
Sets the jobName. |
void |
setStartDate(java.util.Date date)
Sets the start date. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Log _log
protected CrawlerControllerPerformanceAgent _controllerAgent
protected final AgentType extends ConnectivityPerformanceAgent _typeAgent
protected final AgentType extends ConnectivityPerformanceAgent _instanceAgent
protected final java.lang.Class<AgentType extends ConnectivityPerformanceAgent> _agentClass
| Constructor Detail |
|---|
public ConnectivityPerformanceCounterHelperBase(DataSourceConnectionConfig configuration,
int hashCode,
java.lang.Class<AgentType> agentClass)
configuration - the configurationhashCode - the hash codeagentClass - the agent class| Method Detail |
|---|
public AgentType getInstanceAgent()
protected abstract java.lang.String getPerformanceAgentLocation()
protected abstract java.lang.String getPerformanceAgentCategory()
protected abstract java.lang.String getdateConnectionIdSuffix()
public void setStartDate(java.util.Date date)
date - the new start datepublic void setJobName(java.lang.String jobName)
jobName - the new job Namepublic void setEndDate(java.util.Date endDate)
endDate - the new end dateprotected abstract AgentType initAgent(ManagementAgentLocation location)
location - the location
public void incrementDeltaIndices()
public void incrementDeltaIndicesBy(long value)
value - the valuepublic void incrementAttachmentBytes(long value)
value - the valuepublic void incrementRecords()
public void incrementRecordsBy(long value)
value - the valuepublic void increment(java.lang.String name)
name - the name
public void incrementBy(java.lang.String name,
long value)
name - the namevalue - the valuepublic void addException(java.lang.Throwable ex)
ex - the expublic void addCriticalException(java.lang.Throwable ex)
ex - the ex
public void addException(java.lang.Throwable exception,
boolean isCritical)
exception - the exceptionisCritical - the is criticalpublic void setImportRunId(java.lang.String importRunId)
importRunId - the importRunId to set.
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||