public class SQLTableLogger extends GenericService implements DataCollector, Schedulable, LogListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Deprecated.
Class version string
|
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
SQLTableLogger()
Deprecated.
Construct an SQLTableLogger
|
Modifier and Type | Method and Description |
---|---|
void |
addDataItem(java.lang.Object pDataItem)
Deprecated.
Add the given data item to the aggregate
|
void |
doStartService()
Deprecated.
Perform any necessary initializations to startup service.
If a schedule is provided, then it is started. |
void |
doStopService()
Deprecated.
Performs tasks required to shutdown service.
|
void |
flush()
Deprecated.
Flush our data buffer by writing all of the
data to the SQL table and resetting our internal
state accordingly.
|
int |
getBufferSize()
Deprecated.
Get property BufferSize
|
long |
getConnectRetryInterval()
Deprecated.
Get property ConnectRetryInterval
|
java.lang.Object[] |
getDataBuffer()
Deprecated.
Returns property DataBuffer
|
int |
getDataItemCount()
Deprecated.
Returns property DataItemCount
|
int |
getDataItemThreshold()
Deprecated.
Returns property DataItemThreshold
|
java.lang.String |
getInsertSQL()
Deprecated.
Returns property InsertSQL
|
JDBCConnectionPool |
getJDBCConnectionPool()
Deprecated.
Returns property JDBCConnectionPool
|
java.lang.String |
getJobDescription()
Deprecated.
Returns property JobDescription
|
java.lang.String |
getJobName()
Deprecated.
Returns property JobName
|
long |
getLastConnectTime()
Deprecated.
Get property LastConnectTime
|
java.lang.String |
getMetaDataCatalogName()
Deprecated.
Get the catalog name
|
java.lang.String |
getMetaDataSchemaPattern()
Deprecated.
Get the schema name
|
long |
getMinimumErrorReportInterval()
Deprecated.
Get property MinimumErrorReportInterval
|
Schedule |
getSchedule()
Deprecated.
Returns property Schedule
|
Scheduler |
getScheduler()
Deprecated.
Returns property Scheduler
|
SQLColumnMapping[] |
getSQLColumnMappings()
Deprecated.
Returns property SQLColumnMappings
|
java.lang.String |
getTableName()
Deprecated.
Returns property TableName
|
java.lang.String |
getTablePrefix()
Deprecated.
Returns property TablePrefix
|
int |
getTransactionSize()
Deprecated.
Get property TransactionSize
|
protected java.lang.Object[] |
getValueArray(java.lang.Object pDataItem)
Deprecated.
|
boolean |
isBlocking()
Deprecated.
Get property Blocking
|
void |
logEvent(LogEvent pLogEvent)
Deprecated.
Log an event.
|
void |
performScheduledTask(Scheduler pScheduler,
ScheduledJob pJob)
Deprecated.
Callback method for the scheduler.
|
void |
sanitizeSQLColumnMappings()
Deprecated.
Filter out invalid column mappings
|
void |
setBlocking(boolean pBlocking)
Deprecated.
Set property Blocking
|
void |
setBufferSize(int pBufferSize)
Deprecated.
Set property BufferSize, which may cause the buffer
to be flushed and reconstructed.
|
void |
setConnectRetryInterval(long pConnectRetryInterval)
Deprecated.
Set property ConnectRetryInterval
|
void |
setDataItemThreshold(int pDataItemThreshold)
Deprecated.
Sets property DataItemThreshold
|
void |
setJDBCConnectionPool(JDBCConnectionPool pJDBCConnectionPool)
Deprecated.
Sets property JDBCConnectionPool
|
void |
setJobDescription(java.lang.String pJobDescription)
Deprecated.
Sets property JobDescription
|
void |
setJobName(java.lang.String pJobName)
Deprecated.
Sets property JobName
|
void |
setMetaDataCatalogName(java.lang.String pMetaDataCatalogName)
Deprecated.
The name of a catalog
|
void |
setMetaDataSchemaPattern(java.lang.String pMetaDataSchemaPattern)
Deprecated.
Set the schema name
|
void |
setMinimumErrorReportInterval(long pMinimumErrorReportInterval)
Deprecated.
Set property MinimumErrorReportInterval
|
void |
setSchedule(Schedule pSchedule)
Deprecated.
Sets property Schedule
|
void |
setScheduler(Scheduler pScheduler)
Deprecated.
Sets property Scheduler
|
void |
setSQLColumnMappings(SQLColumnMapping[] pSQLColumnMappings)
Deprecated.
Sets property SQLColumnMappings
|
void |
setTableName(java.lang.String pTableName)
Deprecated.
Sets property TableName
|
void |
setTablePrefix(java.lang.String pTablePrefix)
Deprecated.
Sets property TablePrefix
|
void |
setTransactionSize(int pTransactionSize)
Deprecated.
Set property TransactionSize
|
protected void |
startScheduledJob()
Deprecated.
If we have a schedule, start scheduled job
|
addLogListener, createAdminServlet, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public static java.lang.String CLASS_VERSION
public java.lang.String getInsertSQL()
public void setScheduler(Scheduler pScheduler)
public Scheduler getScheduler()
public void setSchedule(Schedule pSchedule)
public Schedule getSchedule()
public void setJobName(java.lang.String pJobName)
public java.lang.String getJobName()
public void setJobDescription(java.lang.String pJobDescription)
public java.lang.String getJobDescription()
public void setJDBCConnectionPool(JDBCConnectionPool pJDBCConnectionPool)
public JDBCConnectionPool getJDBCConnectionPool()
public java.lang.Object[] getDataBuffer()
public int getDataItemCount()
public void setDataItemThreshold(int pDataItemThreshold)
public int getDataItemThreshold()
public void setTableName(java.lang.String pTableName)
public java.lang.String getTableName()
public void setSQLColumnMappings(SQLColumnMapping[] pSQLColumnMappings)
public SQLColumnMapping[] getSQLColumnMappings()
public void setBufferSize(int pBufferSize)
pBufferSize
- new value to setpublic int getBufferSize()
public void setTransactionSize(int pTransactionSize)
pTransactionSize
- new value to setpublic int getTransactionSize()
public void setBlocking(boolean pBlocking)
pBlocking
- new value to setpublic boolean isBlocking()
public void setConnectRetryInterval(long pConnectRetryInterval)
pConnectRetryInterval
- new value to setpublic long getConnectRetryInterval()
public void setMinimumErrorReportInterval(long pMinimumErrorReportInterval)
pMinimumErrorReportInterval
- new value to setpublic long getMinimumErrorReportInterval()
public long getLastConnectTime()
public void setMetaDataCatalogName(java.lang.String pMetaDataCatalogName)
String
- the name of a catalogpublic java.lang.String getMetaDataCatalogName()
public void setMetaDataSchemaPattern(java.lang.String pMetaDataSchemaPattern)
String
- the schema namepublic java.lang.String getMetaDataSchemaPattern()
public void setTablePrefix(java.lang.String pTablePrefix)
public java.lang.String getTablePrefix()
public void logEvent(LogEvent pLogEvent)
logEvent
in interface LogListener
pLogEvent
- the log eventpublic void addDataItem(java.lang.Object pDataItem)
addDataItem
in interface DataListener
pDataItem
- protected java.lang.Object[] getValueArray(java.lang.Object pDataItem)
public void sanitizeSQLColumnMappings()
public void doStartService() throws ServiceException
doStartService
in class GenericService
ServiceException
- if the Service had a problem starting uppublic void doStopService() throws ServiceException
doStopService
in class GenericService
ServiceException
- if the Service had a problem shutting downprotected void startScheduledJob()
public void performScheduledTask(Scheduler pScheduler, ScheduledJob pJob)
performScheduledTask
in interface Schedulable
pScheduler
- calling the jobpJob
- the ScheduledJobpublic void flush()
flush
in interface DataCollector