T - The type of data that this server is dealing with (can be a
link between between a local computer and a server on the internet, or
a person, etc.).public interface ServerInterface<T extends Subject>
| Modifier and Type | Method and Description |
|---|---|
void |
addEvidence(Evidence evidence) |
void |
addRawData(RawData<T> data)
Add raw data to the datastore and eventually trigger analysis.
|
RawData[] |
findData(org.bson.Document query)
Search for data with a custom filter (don't forget to mention a label,
for example).
|
Evidence<T>[] |
findEvidence(String label)
Find evidence of given label, for all subjects.
|
Evidence<T>[] |
findEvidence(String label,
T subject) |
Evidence<T> |
findEvidenceById(String id)
Get a single evidence by id.
|
Evidence<T>[] |
findLastEvidences(String label,
T subject)
Find the evidences according to a pattern (that start with provided
pattern), and if multiple evidences are found with same label, return
the most recent one.
|
RawData<T>[] |
findRawData(String type,
T subject) |
URL |
getURL() |
String |
test() |
void |
testString(String data) |
void testString(String data) throws Throwable
data - Throwable - if request failsvoid addRawData(RawData<T> data) throws Throwable
data - Throwable - if request failsvoid addEvidence(Evidence evidence) throws Throwable
evidence - Throwable - if request failsRawData<T>[] findRawData(String type, T subject) throws Throwable
type - subject - Throwable - if request failsEvidence<T>[] findEvidence(String label, T subject) throws Throwable
label - subject - Throwable - if request failsEvidence<T>[] findEvidence(String label) throws Throwable
label - Throwable - if request failsEvidence<T> findEvidenceById(String id) throws Throwable
id - Throwable - if request failsURL getURL()
Evidence<T>[] findLastEvidences(String label, T subject) throws Throwable
label - subject - Throwable - if an error occuredCopyright © 2019. All rights reserved.