Constructor and Description |
---|
StorageNode() |
StorageNode(boolean debug) |
Modifier and Type | Method and Description |
---|---|
void |
handleQuery(QueryEvent request,
EventContext context)
Performs the query versus the data on this Node and replies the results
back to the sender.
|
void |
handleQueryRequest(QueryRequest request,
EventContext context)
Handles a query request from a client.
|
void |
handleQueryResponse(QueryResponse response,
EventContext context)
Forwards all the queries responses from the initial query request back to
the client.
|
void |
handleStorage(StorageEvent store,
EventContext context) |
void |
handleStorageRequest(StorageRequest request,
EventContext context)
Handles a storage request from a client.
|
void |
init()
Begins Server execution.
|
static void |
main(java.lang.String[] args)
Executable to be run on each Mendel storage server.
|
public static void main(java.lang.String[] args)
args
- No argspublic void init() throws java.io.IOException, EventException, java.lang.InterruptedException, SerializationException, HashException, HashTopologyException, PartitionerException, FileSystemException, PartitionException
init
in interface Node
java.io.IOException
EventException
java.lang.InterruptedException
SerializationException
HashException
HashTopologyException
PartitionerException
FileSystemException
PartitionException
public void handleQueryRequest(QueryRequest request, EventContext context) throws java.io.IOException, SerializationException, PartitionException, HashException
java.io.IOException
SerializationException
PartitionException
HashException
public void handleQuery(QueryEvent request, EventContext context) throws java.io.IOException, SerializationException
java.io.IOException
SerializationException
public void handleQueryResponse(QueryResponse response, EventContext context) throws java.io.IOException
java.io.IOException
public void handleStorageRequest(StorageRequest request, 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, EventContext context) throws FileSystemException, java.io.IOException
FileSystemException
java.io.IOException