public abstract class ProgressLoggerBase<itemType> extends java.lang.Object implements ProgressLogger<itemType>
Constructor and Description |
---|
ProgressLoggerBase(java.lang.String messageBundleName) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup() |
void |
dataIntegrityMessage(java.lang.String msg) |
void |
dataIntegrityMessage(java.lang.String msg,
java.lang.String[] params) |
void |
error(java.lang.String msg) |
void |
error(java.lang.String msg,
java.lang.String[] params) |
void |
exception(java.lang.String pageName,
java.lang.String itemName,
java.lang.String fieldName,
java.lang.Throwable t) |
void |
exception(java.lang.String pageName,
java.lang.String itemName,
java.lang.Throwable t) |
void |
exception(java.lang.Throwable t) |
void |
flush()
Flushes unwritten data to the log
|
static java.lang.String |
formatMessage(java.lang.String msg,
java.lang.String[] params) |
int |
getErrorCount() |
int |
getPercentCompelete() |
int |
getWarningCount() |
void |
itemProcessed()
Increment the number of item processed by one and generate status messages as needed
|
void |
itemProcessed(long count)
Set the number of items processed to count and generate status messages as needed
|
void |
loadComplete() |
void |
message(java.lang.String msg) |
void |
message(java.lang.String msg,
java.lang.String[] params) |
static java.lang.String |
messageFromException(java.lang.Throwable t) |
void |
progressMsg(java.lang.String msg) |
void |
progressMsg(java.lang.String msg,
java.lang.String[] params) |
void |
setItemCount(long count)
Set the total number of items to process
|
void |
setLoader(ModelLoaderBase loader) |
void |
setLogLevel(long level) |
void |
setMaxLogSize(int maxLogSize) |
void |
start(int startStatus)
Initiates logging activity.
|
void |
warning(java.lang.String msg) |
void |
warning(java.lang.String msg,
java.lang.String[] params) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
itemOfIntersetLoaded
public ProgressLoggerBase(java.lang.String messageBundleName) throws java.rmi.RemoteException
java.rmi.RemoteException
public int getErrorCount()
getErrorCount
in interface MessageLogger
public int getWarningCount()
public int getPercentCompelete()
getPercentCompelete
in interface ProgressLogger<itemType>
public void setItemCount(long count)
ProgressLogger
setItemCount
in interface ProgressLogger<itemType>
public void error(java.lang.String msg)
error
in interface MessageLogger
public void error(java.lang.String msg, java.lang.String[] params)
error
in interface MessageLogger
public void exception(java.lang.Throwable t)
exception
in interface MessageLogger
public void exception(java.lang.String pageName, java.lang.String itemName, java.lang.Throwable t)
exception
in interface MessageLogger
public void exception(java.lang.String pageName, java.lang.String itemName, java.lang.String fieldName, java.lang.Throwable t)
exception
in interface MessageLogger
public void message(java.lang.String msg)
message
in interface MessageLogger
public void message(java.lang.String msg, java.lang.String[] params)
message
in interface MessageLogger
public void progressMsg(java.lang.String msg)
progressMsg
in interface MessageLogger
public void progressMsg(java.lang.String msg, java.lang.String[] params)
progressMsg
in interface MessageLogger
public void start(int startStatus) throws java.rmi.RemoteException, MXException
ProgressLogger
start
in interface ProgressLogger<itemType>
startStatus
- Active status for sessionjava.rmi.RemoteException
MXException
public void warning(java.lang.String msg)
warning
in interface MessageLogger
public void warning(java.lang.String msg, java.lang.String[] params)
warning
in interface MessageLogger
public void flush()
ProgressLogger
flush
in interface ProgressLogger<itemType>
public void dataIntegrityMessage(java.lang.String msg)
dataIntegrityMessage
in interface MessageLogger
public void dataIntegrityMessage(java.lang.String msg, java.lang.String[] params)
dataIntegrityMessage
in interface MessageLogger
public void setLoader(ModelLoaderBase loader)
setLoader
in interface ProgressLogger<itemType>
public void cleanup()
cleanup
in interface ProgressLogger<itemType>
public void loadComplete()
loadComplete
in interface ProgressLogger<itemType>
public void itemProcessed(long count)
ProgressLogger
itemProcessed
in interface ProgressLogger<itemType>
public void itemProcessed()
ProgressLogger
itemProcessed
in interface ProgressLogger<itemType>
public void setLogLevel(long level)
setLogLevel
in interface ProgressLogger<itemType>
public void setMaxLogSize(int maxLogSize)
public static java.lang.String formatMessage(java.lang.String msg, java.lang.String[] params)
public static java.lang.String messageFromException(java.lang.Throwable t)