@Singleton public class AggregatorImpl extends Object implements AggregatorBackend
| Constructor and Description |
|---|
AggregatorImpl() |
AggregatorImpl(DataSource ds,
Path dataDir) |
| Modifier and Type | Method and Description |
|---|---|
void |
addOrReplaceResult(int requestId,
int nodeId,
javax.ws.rs.core.MediaType mediaType,
InputStream content) |
void |
clearDataDirectory()
Delete all files in the data directory.
|
String[] |
getDistinctResultTypes(int requestId) |
DateDataSource |
getResult(int requestId,
int nodeId) |
List<ResultInfo> |
listResults(int requestId) |
void |
setBrokerDB(DataSource ds) |
void |
setDataDirectory(Path dataDir) |
public AggregatorImpl()
throws IOException
IOExceptionpublic AggregatorImpl(DataSource ds, Path dataDir) throws IOException
IOExceptionpublic void setDataDirectory(Path dataDir) throws IOException
IOExceptionpublic void setBrokerDB(DataSource ds)
setBrokerDB in interface AggregatorBackendpublic void clearDataDirectory()
throws IOException
AggregatorBackendclearDataDirectory in interface AggregatorBackendIOException - IO errorpublic List<ResultInfo> listResults(int requestId) throws SQLException
listResults in interface AggregatorSQLExceptionpublic DateDataSource getResult(int requestId, int nodeId) throws SQLException
getResult in interface AggregatorSQLExceptionpublic void addOrReplaceResult(int requestId,
int nodeId,
javax.ws.rs.core.MediaType mediaType,
InputStream content)
throws SQLException
addOrReplaceResult in interface AggregatorBackendSQLExceptionpublic String[] getDistinctResultTypes(int requestId) throws SQLException
getDistinctResultTypes in interface AggregatorSQLExceptionCopyright © 2014–2019 Uniklinik RWTH Aachen. All rights reserved.