org.apache.jdo.impl.fostore
Interface Request

All Known Subinterfaces:
FieldRequest
All Known Implementing Classes:
AbstractRequest, FetchRequest

interface Request

Represents the ability to send information to the actual file/object store.

Author:
Dave Bristor

Method Summary
 void doRequest()
          Does whatever it is that the kind of request does in actually making a request of the store.
 org.apache.jdo.state.StateManagerInternal getStateManager()
          Get the StateManager associated with this request, null if none.
 void handleReply(Status status, java.io.DataInput in, int length)
          Processes the results of the effect of the request in the store.
 

Method Detail

doRequest

public void doRequest()
               throws java.io.IOException
Does whatever it is that the kind of request does in actually making a request of the store.

Throws:
java.io.IOException - in case of errors with the stream.

handleReply

public void handleReply(Status status,
                        java.io.DataInput in,
                        int length)
                 throws java.io.IOException
Processes the results of the effect of the request in the store. To be invoked after the store has processed the request, and has returned information about that request, such as its status and any accompanying data.

Parameters:
in - the input stream.
length - the length of data in the stream.
status - Indication as to the success, failure, etc. of the request as handled by the store.
Throws:
java.io.IOException - if any problems reading the stream.

getStateManager

public org.apache.jdo.state.StateManagerInternal getStateManager()
Get the StateManager associated with this request, null if none.

Returns:
the StateManager.