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.Exceptionpublic 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.HashExceptionjava.io.IOExceptionPartitionExceptionpublic void handleStorage(StorageEvent store, galileo.event.EventContext context) throws FileSystemException, java.io.IOException
FileSystemExceptionjava.io.IOExceptionpublic void handleQueryRequest(QueryRequest request, galileo.event.EventContext context) throws java.io.IOException
java.io.IOExceptionpublic void handleQuery(QueryEvent query, galileo.event.EventContext context) throws java.io.IOException
java.io.IOExceptionpublic void handleQueryResponse(QueryResponse response, galileo.event.EventContext context) throws java.io.IOException
java.io.IOExceptionpublic static void main(java.lang.String[] args)