
com.idrsolutions.microservice.utils.ProgressTracker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of base-microservice-example Show documentation
Show all versions of base-microservice-example Show documentation
Provides the shared classes used by IDRsolutions microservice examples.
The newest version!
package com.idrsolutions.microservice.utils;
import com.idrsolutions.microservice.db.DBHandler;
import org.jpedal.external.RemoteTracker;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
public class ProgressTracker extends UnicastRemoteObject implements RemoteTracker {
public ProgressTracker(final int port) throws RemoteException {
super(port);
}
@Override
public void finishedPageDecoding(final String uuid, final int rawPage) {
DBHandler.getInstance().setCustomValue(uuid, "pagesConverted", String.valueOf(rawPage));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy