messif.buckets
Class BucketErrorCode

java.lang.Object
  extended by messif.utility.ErrorCode
      extended by messif.buckets.BucketErrorCode
All Implemented Interfaces:
java.io.Serializable

public class BucketErrorCode
extends ErrorCode

Represents an error code that can be returned by bucket operations. Standard error codes are instantiated as static constants. Other error codes can be using constructor, but there is no guarantee they will have the same code when used in distributed environment.

See Also:
Serialized Form

Field Summary
static BucketErrorCode HARDCAPACITY_EXCEEDED
          Object was not inserted because the hard-capacity has been exceeded.
static BucketErrorCode LOWOCCUPATION_EXCEEDED
          Object has been deleted but the current capacity is less than the minimal required one (low-occupation has been reached).
static BucketErrorCode OBJECT_DELETED
          Object has been deleted successfully.
static BucketErrorCode OBJECT_DUPLICATE
          Object was not inserted because its copy is already present.
static BucketErrorCode OBJECT_INSERTED
          Object has been successfully inserted causing no capacity overflow.
static BucketErrorCode OBJECT_NOT_FOUND
          Object cannot be deleted because it is not present.
static BucketErrorCode OBJECT_REFUSED
          Object cannot be inserted due to some limits of structure.
static BucketErrorCode SOFTCAPACITY_EXCEEDED
          Object has been inserted but the soft-capacity has been reached.
static BucketErrorCode STORAGE_FAILURE
          Object has not been stored, removed or read due to lower layer storage exception.
 
Fields inherited from class messif.utility.ErrorCode
NOT_SET, UNKNOWN_ERROR
 
Constructor Summary
BucketErrorCode(java.lang.String text)
          Creates a new instance of BucketErrorCode, i.e. a new error code.
 
Method Summary
 
Methods inherited from class messif.utility.ErrorCode
equals, hashCode, isSet, isUnknownError, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

OBJECT_INSERTED

public static BucketErrorCode OBJECT_INSERTED
Object has been successfully inserted causing no capacity overflow.


OBJECT_REFUSED

public static BucketErrorCode OBJECT_REFUSED
Object cannot be inserted due to some limits of structure.


OBJECT_DUPLICATE

public static BucketErrorCode OBJECT_DUPLICATE
Object was not inserted because its copy is already present.


SOFTCAPACITY_EXCEEDED

public static BucketErrorCode SOFTCAPACITY_EXCEEDED
Object has been inserted but the soft-capacity has been reached. Overflow of the hard-capacity is reported as a CapacityFullException exception.


HARDCAPACITY_EXCEEDED

public static BucketErrorCode HARDCAPACITY_EXCEEDED
Object was not inserted because the hard-capacity has been exceeded. This is usually reported as a CapacityFullException exception, but it can caught, so this error code allows it to be reported.


OBJECT_DELETED

public static BucketErrorCode OBJECT_DELETED
Object has been deleted successfully.


OBJECT_NOT_FOUND

public static BucketErrorCode OBJECT_NOT_FOUND
Object cannot be deleted because it is not present.


LOWOCCUPATION_EXCEEDED

public static BucketErrorCode LOWOCCUPATION_EXCEEDED
Object has been deleted but the current capacity is less than the minimal required one (low-occupation has been reached).


STORAGE_FAILURE

public static BucketErrorCode STORAGE_FAILURE
Object has not been stored, removed or read due to lower layer storage exception.

Constructor Detail

BucketErrorCode

public BucketErrorCode(java.lang.String text)
Creates a new instance of BucketErrorCode, i.e. a new error code.

Parameters:
text - error message for this error code