Package net.reini.print
Interface VirtualPrintServiceMXBean
-
public interface VirtualPrintServiceMXBean
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidactivate()Resumes the virtual printer, so that it starts accepting jobs.longgetCanceled()Returns the amount of canceled jobs.longgetCompleted()Returns the amount of completed jobs.longgetFailed()Returns the amount of failed jobs.java.lang.StringgetName()Returns the name of the virtual printer.java.lang.StringgetPrinterState()Returns the current state of the virtual printer.intgetRunning()Returns the amount of running jobs.voidremove()Removes the current virtual printervoidsuspend()Suspends the virtual printer, so that it does no longer accepting jobs.
-
-
-
Method Detail
-
getName
java.lang.String getName()
Returns the name of the virtual printer.- Returns:
- virtual printer name
-
getPrinterState
java.lang.String getPrinterState()
Returns the current state of the virtual printer.- Returns:
- current virtual printer name
-
getCanceled
long getCanceled()
Returns the amount of canceled jobs.- Returns:
- total count of canceled jobs
-
getCompleted
long getCompleted()
Returns the amount of completed jobs.- Returns:
- total count of completed jobs
-
getFailed
long getFailed()
Returns the amount of failed jobs.- Returns:
- total count of failed jobs
-
getRunning
int getRunning()
Returns the amount of running jobs.- Returns:
- total count of running jobs
-
suspend
void suspend()
Suspends the virtual printer, so that it does no longer accepting jobs.
-
activate
void activate()
Resumes the virtual printer, so that it starts accepting jobs.
-
remove
void remove()
Removes the current virtual printer
-
-