public enum SessionEventFireTime extends java.lang.Enum<SessionEventFireTime> implements EventFireTime<SessionEventData>
Enum Constant and Description |
---|
AfterEndAndOtherCallbacks
After the scrape finishes and all scripts have been run.
|
AfterEndScripts
After the scrape finishes and all scripts have been run
|
NumDuplicateRecordsSavedModified
When the
ScrapingSession.addToNumDuplicateRecordsScraped(int) is called, this will also be called. |
NumErrorRecordsSavedModified
When the
ScrapingSession.addToNumErrorRecordsScraped(int) is called, this will also be called. |
NumNewRecordsSavedModified
When the
ScrapingSession.addToNumNewRecordsScraped(int) is called, this will also be called. |
NumRecordsSavedModified
When the
ScrapingSession.addToNumRecordsScraped(Object) is called, this will also be called. |
NumUpdatedRecordsSavedModified
When the
ScrapingSession.addToNumUpdatedRecordsScraped(int) is called, this will also be called. |
SessionVariableRetrieved
Called whenever a session variable is retrieved.
|
SessionVariableSet
Called whenever a session variable is set.
|
StopScrapingCalled
When the session is stopped, either by calling the stopScraping method or clicking the stop scraping button in the workbench
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getDefaultReturnValue(SessionEventData data)
Gets the default value to return for this time from the data
|
static SessionEventFireTime |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SessionEventFireTime[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SessionEventFireTime NumRecordsSavedModified
ScrapingSession.addToNumRecordsScraped(Object)
is called, this will also be called. The returned value will be the actual value to add.public static final SessionEventFireTime NumNewRecordsSavedModified
ScrapingSession.addToNumNewRecordsScraped(int)
is called, this will also be called. The returned value will be the actual value to add.public static final SessionEventFireTime NumDuplicateRecordsSavedModified
ScrapingSession.addToNumDuplicateRecordsScraped(int)
is called, this will also be called. The returned value will be the actual value to add.public static final SessionEventFireTime NumUpdatedRecordsSavedModified
ScrapingSession.addToNumUpdatedRecordsScraped(int)
is called, this will also be called. The returned value will be the actual value to add.public static final SessionEventFireTime NumErrorRecordsSavedModified
ScrapingSession.addToNumErrorRecordsScraped(int)
is called, this will also be called. The returned value will be the actual value to add.public static final SessionEventFireTime StopScrapingCalled
public static final SessionEventFireTime AfterEndScripts
@InternalOnly public static final SessionEventFireTime AfterEndAndOtherCallbacks
AfterEndScripts
fire time. This is used internally and should
be avoided by outside code (in theory it can be used externally, but then parent/child scrapes might be notified that a scrape has finished when it
really hasn't. Only the final "Session completed" log message has to be writtenpublic static final SessionEventFireTime SessionVariableSet
public static final SessionEventFireTime SessionVariableRetrieved
public static SessionEventFireTime[] values()
for (SessionEventFireTime c : SessionEventFireTime.values()) System.out.println(c);
public static SessionEventFireTime valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null@Nullable public java.lang.Object getDefaultReturnValue(SessionEventData data)
getDefaultReturnValue
in interface EventFireTime<SessionEventData>
data
- The default value to return