public class StorageNode
extends java.lang.Object
Constructor and Description |
---|
StorageNode() |
Modifier and Type | Method and Description |
---|---|
void |
handleQuery(QueryEvent query,
galileo.event.EventContext context)
Handles an internal Query request (from another StorageNode)
|
void |
handleQueryRequest(QueryRequest request,
galileo.event.EventContext context)
Handles a query request from a client.
|
void |
handleQueryResponse(QueryResponse response,
galileo.event.EventContext context) |
void |
handleStorage(StorageEvent store,
galileo.event.EventContext context) |
void |
handleStorageRequest(StorageRequest request,
galileo.event.EventContext context)
Handles a storage request from a client.
|
static void |
main(java.lang.String[] args)
Executable entrypoint for a Galileo DHT Storage Node
|
void |
start()
Begins Server execution.
|
public void start() throws java.lang.Exception
java.lang.Exception
public void handleStorageRequest(StorageRequest request, galileo.event.EventContext context) throws HashException, java.io.IOException, PartitionException
Partitioner
implementation and then
forwarding the data on to its destination.HashException
java.io.IOException
PartitionException
public void handleStorage(StorageEvent store, galileo.event.EventContext context) throws FileSystemException, java.io.IOException
FileSystemException
java.io.IOException
public void handleQueryRequest(QueryRequest request, galileo.event.EventContext context) throws java.io.IOException
java.io.IOException
public void handleQuery(QueryEvent query, galileo.event.EventContext context) throws java.io.IOException
java.io.IOException
public void handleQueryResponse(QueryResponse response, galileo.event.EventContext context) throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args)