Package org.apache.hadoop.ipc
Class RefreshResponse
java.lang.Object
org.apache.hadoop.ipc.RefreshResponse
Return a response in the handler method for the user to see.
Useful since you may want to display status to a user even though an
error has not occurred.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidsetMessage(String m) voidsetReturnCode(int rc) voidsetSenderName(String name) Optionally set the sender of this RefreshResponse.static RefreshResponseConvenience method to create a response for successful refreshes.toString()
-
Constructor Details
-
RefreshResponse
-
-
Method Details
-
successResponse
Convenience method to create a response for successful refreshes.- Returns:
- void response
-
setSenderName
Optionally set the sender of this RefreshResponse. This helps clarify things when multiple handlers respond.- Parameters:
name- The name of the sender
-
getSenderName
-
getReturnCode
public int getReturnCode() -
setReturnCode
public void setReturnCode(int rc) -
setMessage
-
getMessage
-
toString
-