public class ImportMessageHandlerFeedback extends Object implements ImportFeedback
ImportMessageHandler
s.Constructor and Description |
---|
ImportMessageHandlerFeedback() |
Modifier and Type | Method and Description |
---|---|
void |
addHandler(ImportMessageHandler pHandler) |
void |
finished() |
List<String> |
getContextTypes()
Get all type of contexts handled so far by the current import.
|
int |
getFailureCount(String pContextType)
Get the number of failure imports for a specific type of context.
|
int |
getFinishedCount(String pContextType)
Get the number of finished imports for a specific type of context.
|
List<ImportMessageHandler> |
getHandlers() |
int |
getLineNumber()
Get the number of lines processed so far.
|
int |
getMessageCount()
Get the number of messages of the current import.
|
List<ImportMessage> |
getMessages()
Gets all messages of the current import.
|
int |
getMostSignificantMessageCount(String pContextType,
ImportMessage.Type pType)
Gets the the number of imports for a specific type of context that have a specific type of most significant
message.
|
ImportMessage.Type |
getMostSignificantMessageType()
Gets the most significant message type.
|
long |
getRunningTime()
Get the running time of import.
|
int |
getStartedCount(String pContextType)
Get the number of started imports for a specific type of context.
|
int |
getSuccessCount(String pContextType)
Get the number of successful imports for a specific type of context.
|
boolean |
isRunning()
Gets whether the import is running.
|
boolean |
isStopped() |
void |
removeHandler(ImportMessageHandler pHandler) |
void |
setLocator(Locator pLocator) |
void |
started() |
void |
stop()
Stops the import.
|
public void setLocator(Locator pLocator)
public List<ImportMessageHandler> getHandlers()
public void addHandler(ImportMessageHandler pHandler)
public void removeHandler(ImportMessageHandler pHandler)
public List<ImportMessage> getMessages()
ImportFeedback
getMessages
in interface ImportFeedback
public int getMessageCount()
ImportFeedback
getMessageCount
in interface ImportFeedback
public List<String> getContextTypes()
ImportFeedback
getContextTypes
in interface ImportFeedback
public int getSuccessCount(String pContextType)
ImportFeedback
getSuccessCount
in interface ImportFeedback
pContextType
- the context type.public int getFailureCount(String pContextType)
ImportFeedback
getFailureCount
in interface ImportFeedback
pContextType
- the context type.public int getStartedCount(String pContextType)
ImportFeedback
getStartedCount
in interface ImportFeedback
pContextType
- the context type.public int getFinishedCount(String pContextType)
ImportFeedback
getFinishedCount
in interface ImportFeedback
pContextType
- the context type.public ImportMessage.Type getMostSignificantMessageType()
ImportFeedback
getMostSignificantMessageType
in interface ImportFeedback
public int getMostSignificantMessageCount(String pContextType, ImportMessage.Type pType)
ImportFeedback
getMostSignificantMessageCount
in interface ImportFeedback
pContextType
- the context type.pType
- the message type.public void started()
public void finished()
public boolean isRunning()
ImportFeedback
isRunning
in interface ImportFeedback
public long getRunningTime()
ImportFeedback
getRunningTime
in interface ImportFeedback
public int getLineNumber()
ImportFeedback
getLineNumber
in interface ImportFeedback
public void stop()
ImportFeedback
stop
in interface ImportFeedback
public boolean isStopped()
© 1998- 2021 Escenic AS