|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.sswap.impl.empire.io.ClosureBuilder.DereferenceTask
private class ClosureBuilder.DereferenceTask
A dereference task that is executed in the separate thread.
Field Summary | |
---|---|
private boolean |
byteLimitExceeded
True if byte limit was exceeded |
private java.util.concurrent.ExecutorService |
executorService
The executor service that will execute this task |
private com.hp.hpl.jena.rdf.model.Model |
model
The model retrieved (may be null, if no data could be retrieved) |
private java.lang.String |
url
The URL to be dereferenced |
Constructor Summary | |
---|---|
ClosureBuilder.DereferenceTask(java.lang.String url,
java.util.concurrent.ExecutorService executorService)
Creates a dereferencing task to retrieve the given URL with the specified executor service. |
Method Summary | |
---|---|
ClosureBuilder.DereferenceTask |
call()
The method that will be called by the ExecutorService to actually execute the task in its thread. |
com.hp.hpl.jena.rdf.model.Model |
getModel()
Gets the dereferenced model (if any). |
java.lang.String |
getURL()
Gets the URL that is dereferenced |
boolean |
isByteLimitExceeded()
Checks whether the byte limit was exceeded |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String url
private java.util.concurrent.ExecutorService executorService
private com.hp.hpl.jena.rdf.model.Model model
private boolean byteLimitExceeded
Constructor Detail |
---|
public ClosureBuilder.DereferenceTask(java.lang.String url, java.util.concurrent.ExecutorService executorService)
url
- the URLexecutorService
- the executor serviceMethod Detail |
---|
public ClosureBuilder.DereferenceTask call()
call
in interface java.util.concurrent.Callable<ClosureBuilder.DereferenceTask>
public com.hp.hpl.jena.rdf.model.Model getModel()
public java.lang.String getURL()
public boolean isByteLimitExceeded()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |