public class SelfRequest
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
FAILED
Constant identifying the failed status.
|
static int |
IN_PROCESS
Constant identifying the in-process status.
|
static int |
NOT_STARTED
Constant identifying the not-started status.
|
static int |
SUCCEEDED
Constant identifying the successfully completed status.
|
static int |
WARNING
Constant identifying the warning status.
|
| Constructor and Description |
|---|
SelfRequest(PlatformContext platform,
javax.security.auth.Subject subject,
long id)
Constructs with a platform, userId, and request id.
|
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Aborts the request.
|
long |
getID()
Returns the ID of the request.
|
int |
getStatus()
Returns the status of the request.
|
public static final int NOT_STARTED
public static final int IN_PROCESS
public static final int SUCCEEDED
public static final int FAILED
public static final int WARNING
public SelfRequest(PlatformContext platform, javax.security.auth.Subject subject, long id)
platform - PlatformContext holding platform connection information.subject - Authenticated user.id - Unique id of the request.public long getID()
public int getStatus()
throws java.rmi.RemoteException,
ApplicationException
java.rmi.RemoteException - Thrown if unable to communicate with platform.ApplicationException - Thrown if no request exists with the
given ID.public void abort()
throws java.rmi.RemoteException,
ApplicationException
java.rmi.RemoteException - Thrown if unable to communicate with platform.ApplicationException - Thrown if no request exists with the
given ID.