Package es.bsc.dataclay.api
Class CallbackEvent
- java.lang.Object
- 
- es.bsc.dataclay.api.CallbackEvent
 
- 
 public final class CallbackEvent extends Object Class that represents an event for a callback that must be handled.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classCallbackEvent.EventTypeEvent types.
 - 
Constructor SummaryConstructors Constructor Description CallbackEvent(String id, CallbackEvent.EventType eventType, Object response, String newclassNameOfMethod, String newOpSignature)Constructor.CallbackEvent(String id, CallbackEvent.EventType eventType, String newMessage)Constructor for results different than SUCCESS.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetClassNameOfMethod()Get the CallbackEvent::classNameOfMethodObjectgetContent()Get the CallbackEvent::contentStringgetMessage()Get the CallbackEvent::messageStringgetOperationSignature()Get the CallbackEvent::operationSignatureStringgetRequestID()Get the CallbackEvent::requestIDCallbackEvent.EventTypegetType()Get the CallbackEvent::typevoidsetClassNameOfMethod(String newclassNameOfMethod)Set the CallbackEvent::classNameOfMethodvoidsetContent(Object newcontent)Set the CallbackEvent::contentvoidsetMessage(String newmessage)Set the CallbackEvent::messagevoidsetOperationSignature(String newoperationSignature)Set the CallbackEvent::operationSignaturevoidsetRequestID(String newrequestID)Set the CallbackEvent::requestIDvoidsetType(CallbackEvent.EventType newtype)Set the CallbackEvent::type
 
- 
- 
- 
Constructor Detail- 
CallbackEventpublic CallbackEvent(String id, CallbackEvent.EventType eventType, Object response, String newclassNameOfMethod, String newOpSignature) Constructor.- Parameters:
- id- id of the execution request related to the callback event.
- eventType- type of the event.
- response- result obtained from the execution request.
- newclassNameOfMethod- name of the class where the original method that produces the response resides.
- newOpSignature- signature of the operation that produced this result
 
 - 
CallbackEventpublic CallbackEvent(String id, CallbackEvent.EventType eventType, String newMessage) Constructor for results different than SUCCESS.- Parameters:
- id- id of the execution request related to the callback event.
- eventType- type of the event.
- newMessage- message of failure
 
 
- 
 - 
Method Detail- 
getRequestIDpublic String getRequestID() Get the CallbackEvent::requestID- Returns:
- the requestID
 
 - 
setRequestIDpublic void setRequestID(String newrequestID) Set the CallbackEvent::requestID- Parameters:
- newrequestID- the requestID to set
 
 - 
getTypepublic CallbackEvent.EventType getType() Get the CallbackEvent::type- Returns:
- the type
 
 - 
setTypepublic void setType(CallbackEvent.EventType newtype) Set the CallbackEvent::type- Parameters:
- newtype- the type to set
 
 - 
getContentpublic Object getContent() Get the CallbackEvent::content- Returns:
- the content
 
 - 
setContentpublic void setContent(Object newcontent) Set the CallbackEvent::content- Parameters:
- newcontent- the content to set
 
 - 
getClassNameOfMethodpublic String getClassNameOfMethod() Get the CallbackEvent::classNameOfMethod- Returns:
- the classNameOfMethod
 
 - 
setClassNameOfMethodpublic void setClassNameOfMethod(String newclassNameOfMethod) Set the CallbackEvent::classNameOfMethod- Parameters:
- newclassNameOfMethod- the classNameOfMethod to set
 
 - 
getMessagepublic String getMessage() Get the CallbackEvent::message- Returns:
- the message
 
 - 
setMessagepublic void setMessage(String newmessage) Set the CallbackEvent::message- Parameters:
- newmessage- the message to set
 
 - 
getOperationSignaturepublic String getOperationSignature() Get the CallbackEvent::operationSignature- Returns:
- the operationSignature
 
 - 
setOperationSignaturepublic void setOperationSignature(String newoperationSignature) Set the CallbackEvent::operationSignature- Parameters:
- newoperationSignature- the operationSignature to set
 
 
- 
 
-