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 Summary
Nested Classes Modifier and Type Class Description static class
CallbackEvent.EventType
Event types.
-
Constructor Summary
Constructors 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getClassNameOfMethod()
Get the CallbackEvent::classNameOfMethodObject
getContent()
Get the CallbackEvent::contentString
getMessage()
Get the CallbackEvent::messageString
getOperationSignature()
Get the CallbackEvent::operationSignatureString
getRequestID()
Get the CallbackEvent::requestIDCallbackEvent.EventType
getType()
Get the CallbackEvent::typevoid
setClassNameOfMethod(String newclassNameOfMethod)
Set the CallbackEvent::classNameOfMethodvoid
setContent(Object newcontent)
Set the CallbackEvent::contentvoid
setMessage(String newmessage)
Set the CallbackEvent::messagevoid
setOperationSignature(String newoperationSignature)
Set the CallbackEvent::operationSignaturevoid
setRequestID(String newrequestID)
Set the CallbackEvent::requestIDvoid
setType(CallbackEvent.EventType newtype)
Set the CallbackEvent::type
-
-
-
Constructor Detail
-
CallbackEvent
public 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
-
CallbackEvent
public 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
-
getRequestID
public String getRequestID()
Get the CallbackEvent::requestID- Returns:
- the requestID
-
setRequestID
public void setRequestID(String newrequestID)
Set the CallbackEvent::requestID- Parameters:
newrequestID
- the requestID to set
-
getType
public CallbackEvent.EventType getType()
Get the CallbackEvent::type- Returns:
- the type
-
setType
public void setType(CallbackEvent.EventType newtype)
Set the CallbackEvent::type- Parameters:
newtype
- the type to set
-
getContent
public Object getContent()
Get the CallbackEvent::content- Returns:
- the content
-
setContent
public void setContent(Object newcontent)
Set the CallbackEvent::content- Parameters:
newcontent
- the content to set
-
getClassNameOfMethod
public String getClassNameOfMethod()
Get the CallbackEvent::classNameOfMethod- Returns:
- the classNameOfMethod
-
setClassNameOfMethod
public void setClassNameOfMethod(String newclassNameOfMethod)
Set the CallbackEvent::classNameOfMethod- Parameters:
newclassNameOfMethod
- the classNameOfMethod to set
-
getMessage
public String getMessage()
Get the CallbackEvent::message- Returns:
- the message
-
setMessage
public void setMessage(String newmessage)
Set the CallbackEvent::message- Parameters:
newmessage
- the message to set
-
getOperationSignature
public String getOperationSignature()
Get the CallbackEvent::operationSignature- Returns:
- the operationSignature
-
setOperationSignature
public void setOperationSignature(String newoperationSignature)
Set the CallbackEvent::operationSignature- Parameters:
newoperationSignature
- the operationSignature to set
-
-