Package org.wso2.carbon.ntask.core
Class TaskServiceContext
- java.lang.Object
-
- org.wso2.carbon.ntask.core.TaskServiceContext
-
public class TaskServiceContext extends Object
This class represents a runtime context of the task service.
-
-
Constructor Summary
Constructors Constructor Description TaskServiceContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InetSocketAddress
getServerAddress(int index)
int
getServerCount()
String
getServerIdentifier(int index)
List<TaskInfo>
getTasks()
String
getTaskType()
int
getTenantId()
-
-
-
Method Detail
-
getTenantId
public int getTenantId()
-
getTaskType
public String getTaskType()
-
getTasks
public List<TaskInfo> getTasks() throws org.wso2.carbon.ntask.common.TaskException
- Throws:
org.wso2.carbon.ntask.common.TaskException
-
getServerCount
public int getServerCount()
-
getServerAddress
public InetSocketAddress getServerAddress(int index)
-
getServerIdentifier
public String getServerIdentifier(int index)
-
-