Interface ThreadedServiceObserver
public interface ThreadedServiceObserver
This interface is used by Objects wishing to determine when a background threaded service process (E.g., Export or Validation)
has completed and to perform additional processing at that time.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIndicates that indexing was aborted by requeststatic final intIndicates that one or more of the indexing directories does not existstatic final intIndicates that indexing completed with a severe errorstatic final intIndicates that indexing completed normally -
Method Summary
Modifier and TypeMethodDescriptionvoidserviceCompleted(int status, String message) This method is called when the service is complete.
-
Field Details
-
SERVICE_COMPLETED_SUCCESS
static final int SERVICE_COMPLETED_SUCCESSIndicates that indexing completed normally- See Also:
-
SERVICE_COMPLETED_ABORTED
static final int SERVICE_COMPLETED_ABORTEDIndicates that indexing was aborted by request- See Also:
-
SERVICE_COMPLETED_ERROR
static final int SERVICE_COMPLETED_ERRORIndicates that indexing completed with a severe error- See Also:
-
SERVICE_COMPLETED_DIR_DOES_NOT_EXIST
static final int SERVICE_COMPLETED_DIR_DOES_NOT_EXISTIndicates that one or more of the indexing directories does not exist- See Also:
-
-
Method Details
-
serviceCompleted
This method is called when the service is complete. This method may then do additional processing that is required after indexing and will execute within the same indexing thread, thus blocking all other indexing operations until this method is returned.- Parameters:
status- The status code upon completionmessage- A message describing how the indexer completed
-