public abstract class NodeComponent extends org.hobbit.core.components.AbstractCommandReceivingComponent implements AbstractNodeComponent
| Modifier and Type | Field and Description |
|---|---|
protected String |
accessUriTemplate |
protected org.dice_research.ldcbench.rabbit.ObjectStreamFanoutExchangeConsumer<org.dice_research.ldcbench.data.NodeMetadata[]> |
bcBroadcastConsumer |
protected org.apache.jena.rdf.model.Model |
benchmarkParamModel |
protected com.google.common.util.concurrent.SettableFuture<Integer> |
cloudNodeId |
protected Semaphore |
dataGenerationFinished |
protected boolean |
dockerized |
protected org.hobbit.core.rabbit.SimpleFileReceiver |
fileReceiver |
protected GraphHandler |
graphHandler |
protected List<org.dice_research.ldcbench.graph.Graph> |
graphs |
private static org.slf4j.Logger |
LOGGER |
protected Semaphore |
nodeAcked |
protected org.dice_research.ldcbench.data.NodeMetadata[] |
nodeMetadata |
protected String |
nodeURI |
protected org.hobbit.core.rabbit.DataReceiver |
receiver |
protected String |
resourceUriTemplate
Must be set during initBeforeDataGeneration, would be used as a hostname by
which this node should be accessed by the benchmarked system instead of node
container's hostname.
|
protected org.dice_research.ldcbench.generate.SeedGenerator |
seedGenerator |
| Constructor and Description |
|---|
NodeComponent() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected Thread |
createReceiverThread()
A method that creates a thread for receiving the data of from the data
generator.
|
protected void |
handleBCMessage(org.dice_research.ldcbench.data.NodeMetadata[] nodeMetadata) |
void |
init() |
protected void |
joinReceiverThread(Thread receiverThread)
Method that triggers the receiver thread to terminate, waits for it to finish
its work and checks the received data.
|
void |
receiveCommand(byte command,
byte[] data) |
void |
run() |
String |
toString() |
addCommandHeaderId, createContainer, createContainer, createContainer, createContainerAsync, createContainerAsync, extendContainerEnvVariables, getCmdResponseTimeout, handleCmd, handleCmd, sendToCmdQueue, sendToCmdQueue, sendToCmdQueue, setCmdResponseTimeout, stopContainercreateConnection, generateSessionQueueName, getHobbitSessionIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddResults, initAfterDataGeneration, initBeforeDataGenerationprivate static final org.slf4j.Logger LOGGER
protected org.apache.jena.rdf.model.Model benchmarkParamModel
protected org.dice_research.ldcbench.generate.SeedGenerator seedGenerator
protected Semaphore dataGenerationFinished
protected Semaphore nodeAcked
protected com.google.common.util.concurrent.SettableFuture<Integer> cloudNodeId
protected String nodeURI
protected boolean dockerized
protected String resourceUriTemplate
protected String accessUriTemplate
protected org.hobbit.core.rabbit.DataReceiver receiver
protected org.hobbit.core.rabbit.SimpleFileReceiver fileReceiver
protected GraphHandler graphHandler
protected org.dice_research.ldcbench.rabbit.ObjectStreamFanoutExchangeConsumer<org.dice_research.ldcbench.data.NodeMetadata[]> bcBroadcastConsumer
protected org.dice_research.ldcbench.data.NodeMetadata[] nodeMetadata
protected List<org.dice_research.ldcbench.graph.Graph> graphs
public void init()
throws Exception
init in interface org.hobbit.core.components.Componentinit in class org.hobbit.core.components.AbstractCommandReceivingComponentExceptionprotected Thread createReceiverThread() throws IOException
IOExceptionprotected void joinReceiverThread(Thread receiverThread) throws InterruptedException
receiverThread - InterruptedExceptionpublic void receiveCommand(byte command,
byte[] data)
receiveCommand in interface org.hobbit.core.components.CommandReceivingComponentprotected void handleBCMessage(org.dice_research.ldcbench.data.NodeMetadata[] nodeMetadata)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.hobbit.core.components.AbstractCommandReceivingComponentIOExceptionpublic void run()
throws Exception
run in interface org.hobbit.core.components.ComponentExceptionCopyright © 2019–2020. All rights reserved.