Package com.sun.nfs
Class NfsHandler
java.lang.Object
com.sun.rpc.RpcHandler
com.sun.nfs.NfsHandler
This handler is implemented by the NFS application
if it wishes to be notifed of retransmissions.
A good example is an NFS client that displays
"NFS Server not responding" and "NFS server OK"
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NfsHandler
public NfsHandler()
-
-
Method Details
-
timeout
Called when an NFS request has timed out The RPC code will retransmit NFS requests until the server responds. The initial retransmission timeout is set by the NFS code and increases exponentially with each retransmission until an upper bound of 30 seconds is reached, e.g. timeouts will be 1, 2, 4, 8, 16, 30, 30, ... sec.An instance of the NfsHandler class is registered with the setHandler method of the NFS XFileExtensionAccessor.
- Overrides:
timeout
in classRpcHandler
- Parameters:
server
- The name of the server to which the request was sent.retries
- The number of times the request has been retransmitted. After the first timeout retries will be zero.wait
- Total time since first call in milliseconds (cumulative value of all retransmission timeouts).- Returns:
- false if retransmissions are to continue. If the method returns true, the RPC layer will abort the retransmissions and return an InterruptedIOException to the application.
-
ok
Called when a server reply is recieved after a timeout.- Overrides:
ok
in classRpcHandler
- Parameters:
server
- The name of the server that returned the reply.
-