com.emc.mongoose.api.model.concurrent.Daemon Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mongoose-api-model Show documentation
Show all versions of mongoose-api-model Show documentation
Mongoose is a high-load storage performance testing tool
package com.emc.mongoose.api.model.concurrent;
import java.io.Closeable;
import java.rmi.RemoteException;
import java.util.List;
import java.util.concurrent.TimeUnit;
/**
Created on 21.07.16.
A stateful execution entity. Usually contains the list of the concurrent service tasks implemented
as coroutines.
*/
public interface Daemon
extends Closeable {
enum State {
INITIAL, STARTED, SHUTDOWN, INTERRUPTED, CLOSED
}
State getState()
throws RemoteException;
void start()
throws IllegalStateException, RemoteException;
boolean isStarted()
throws RemoteException;
void shutdown()
throws IllegalStateException, RemoteException;
boolean isShutdown()
throws RemoteException;
void await()
throws InterruptedException, RemoteException;
boolean await(final long timeout, final TimeUnit timeUnit)
throws InterruptedException, RemoteException;
void interrupt()
throws IllegalStateException, RemoteException;
boolean isInterrupted()
throws RemoteException;
boolean isClosed()
throws RemoteException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy