public class ResourceLockRequestResponse
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static int |
LOCK_NOT_AVAILABLE |
static int |
LOCK_OBTAINED |
static int |
LOCK_OBTAINED_BUT_PROTECTED |
static int |
PROTECTED_PERMISSION_DENIED |
static int |
RESOURCE_OUT_OF_DATE |
Modifier and Type | Method and Description |
---|---|
static ResourceLockRequestResponse |
createLockNotAvailable(java.lang.String lockOwner,
java.lang.String lockHost) |
static ResourceLockRequestResponse |
createLockObtained() |
static ResourceLockRequestResponse |
createLockObtainedButProtected() |
static ResourceLockRequestResponse |
createResourceOutOfDate() |
static ResourceLockRequestResponse |
createResourceProtectedPermissionDenied() |
java.lang.String |
getLockHost() |
java.lang.String |
getLockOwner() |
int |
getResponseType() |
public static final int LOCK_OBTAINED
public static final int LOCK_NOT_AVAILABLE
public static final int RESOURCE_OUT_OF_DATE
public static final int LOCK_OBTAINED_BUT_PROTECTED
public static final int PROTECTED_PERMISSION_DENIED
public static ResourceLockRequestResponse createLockObtained()
public static ResourceLockRequestResponse createResourceOutOfDate()
public static ResourceLockRequestResponse createLockObtainedButProtected()
public static ResourceLockRequestResponse createResourceProtectedPermissionDenied()
public static ResourceLockRequestResponse createLockNotAvailable(java.lang.String lockOwner, java.lang.String lockHost)
public java.lang.String getLockOwner()
public java.lang.String getLockHost()
public int getResponseType()