public class LightningRequest
extends java.lang.Object
implements java.io.Serializable
LightningRequest
class defines the interface for the task agreed by the client and core.LightningResponse
,
Serialized FormConstructor and Description |
---|
LightningRequest(java.lang.String sessionId) |
LightningRequest(java.lang.String sessionId,
java.util.List<Task> tasks,
ReservationReceipt reservationReciept) |
Modifier and Type | Method and Description |
---|---|
RequestConfig |
getRequestconfig()
Get the task execution configuration parameters.
|
int |
getRequestSize()
Get the size of the task list.
|
java.lang.String |
getRequestType()
Get the request type.
|
ReservationReceipt |
getReservationReciept()
Get the reservation receipt.
|
java.lang.String |
getServingHostIp()
Get the host executing the task.
|
java.lang.String |
getSessionId()
Get the sessionId of the request.
|
java.util.List<Task> |
getTasks()
Get the list of task to be executed.
|
void |
setRequestconfig(RequestConfig requestconfig)
Set the task execution configuration parameters.
|
void |
setRequestType(java.lang.String requestType)
Set the request type.
|
void |
setReservationReciept(ReservationReceipt reservationReciept)
Set the reservation receipt.
|
void |
setServingHostIp(java.lang.String servingHostIp)
Set the host executing the task.
|
void |
setSessionId(java.lang.String sessionId)
Set the sessionId of the request.
|
void |
setTasks(java.util.List<Task> tasks)
Set the list of task to be executed.
|
public LightningRequest(java.lang.String sessionId)
public LightningRequest(java.lang.String sessionId, java.util.List<Task> tasks, ReservationReceipt reservationReciept)
public java.lang.String getSessionId()
public void setSessionId(java.lang.String sessionId)
sessionId
- the sessionId to setpublic java.util.List<Task> getTasks()
public void setTasks(java.util.List<Task> tasks)
tasks
- the task to be executedpublic java.lang.String getRequestType()
public void setRequestType(java.lang.String requestType)
requestType
- the request typepublic int getRequestSize()
public ReservationReceipt getReservationReciept()
public void setReservationReciept(ReservationReceipt reservationReciept)
reservationReciept
- the reservation receiptpublic java.lang.String getServingHostIp()
public void setServingHostIp(java.lang.String servingHostIp)
servingHostIp
- the host executing the taskpublic RequestConfig getRequestconfig()
public void setRequestconfig(RequestConfig requestconfig)
requestconfig
- the task execution configuration parameters