[TASK] Generic commit.
This commit is contained in:
parent
762d47ce1f
commit
a06cb5be8d
@ -522,9 +522,9 @@ public class StreamGenerator extends RdfStream implements Runnable {
|
||||
|
||||
Einen StreamGenerator erzeugen (im Konstruktor die IRI für alle generierten Quadrupel), an der Engine registrieren und starten
|
||||
\begin{lstlisting}
|
||||
RdfStream carStreamGenerator = new CarStreamGenerator("http://myexample.org/cars");
|
||||
engine.registerStream(carStreamGenerator);
|
||||
final Thread t = new Thread((Runnable) carStreamGenerator);
|
||||
RdfStream streamGenerator = new StreamGenerator("http://myexample.org/cars");
|
||||
engine.registerStream(streamGenerator);
|
||||
final Thread t = new Thread((Runnable) streamGenerator);
|
||||
t.start();
|
||||
\end{lstlisting}
|
||||
|
||||
@ -561,8 +561,8 @@ engine.unregisterQuery(resultProxy.getId());
|
||||
|
||||
// Jetzt noch den StreamGenerator stoppen und von der Engine abkoppeln, fertig.
|
||||
\begin{lstlisting}
|
||||
((CarStreamGenerator) carStreamGenerator).pleaseStop();
|
||||
engine.unregisterStream(carStreamGenerator.getIRI());
|
||||
((StreamGenerator) streamGenerator).pleaseStop();
|
||||
engine.unregisterStream(streamGenerator.getIRI());
|
||||
\end{lstlisting}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user