Hitachi

In-Memory Data Grid Hitachi Elastic Application Data Store


18.2.9 Group interface

Organization of this subsection

(1) Description

This interface manipulates the group belonging to the EADS server that is executing a user function.

The method cannot manipulate a key that does not belong to the group specified.

(2) Interface name

com.hitachi.software.xeads.func.store.Group

(3) List of methods

The following table lists and describes the methods provided by the Group interface:

Method name

Description

toString()

Acquires the group name.

equals()

Evaluates whether a specified object is the Group instance indicating this group.

getPosition()

Acquires the position (hash group) that corresponds to the group.

createKey()

Creates a key that is to belong to this group.

createGroup()

Creates a hierarchy group immediately below the specified group.

firstKey()

Acquires the first key in order of ASCII codes of all the keys that are stored and belong to the specified group.

lastKey()

Acquires the last key in order of ASCII codes of all the keys that are stored and belong to the specified group.

keyIterator()

Acquires an iterator that accesses the keys belonging to the specified group in ascending order based on their ASCII code values.

The start position of the iterator is the first key in the group.

keyIterator() (Key interface specification)

Acquires an iterator that accesses the keys belonging to the specified group in ascending order based on their ASCII code values.

The start position of the iterator is the key immediately following a specified key in ascending order based on its ASCII code value of all the keys that belong to the group.

descendingKeyIterator()

Acquires an iterator that accesses the keys belonging to the specified group in descending order based on their ASCII code values.

The start position of the iterator is the last key in the group.

descendingKeyIterator() (Key interface specification)

Acquires an iterator that accesses the keys belonging to the specified group in descending order based on their ASCII code values.

The start position of the iterator is the key immediately following a specified key in descending order based on its ASCII code value of all the keys that belong to the group.

[Deprecated] higherKeyIterator()

[Deprecated] Acquires an iterator that accesses the keys belonging to the specified group in ascending order based on their ASCII code values.

The start position of the iterator is the key that immediately follows a specified key in ascending order based on its ASCII code value.

[Deprecated] lowerDescendingKeyIterator()

[Deprecated] Acquires an iterator that accesses the keys belonging to the specified group in descending order based on their ASCII code values.

The start position of the iterator is the key that immediately follows a specified key in descending order based on its ASCII code value.

[Deprecated] put() (character string specification)

[Deprecated] Associates a value with a key, and then stores it.

[Deprecated] put() (Key interface specification)

[Deprecated] Associates a value with a key, and then stores it.

[Deprecated] create()

[Deprecated] Associates a value with a key, and then stores it only if a new key is stored.

[Deprecated] update() (character string specification)

[Deprecated] Associates a value with a key, and then stores it only if a specified key has already been stored (updates the value).

[Deprecated] update() (Key interface specification)

[Deprecated] Associates a value with a key, and then stores it only if a specified key has already been stored (updates the value).

[Deprecated] replace() (character string specification)

[Deprecated] Compares the value associated with a specified key with a value (comparativeValue) specified as a condition. Only if the values match, this method associates the value with the key, and then stores it (replaces the value).

[Deprecated] replace() (Key interface specification)

[Deprecated] Compares the value associated with a specified key with a value (comparativeValue) specified as a condition. Only if the values match, this method associates the value with the key, and then stores it (replaces the value).

[Deprecated] get() (character string specification)

[Deprecated] Acquires the value associated with a specified key.

[Deprecated] get() (Key interface specification)

[Deprecated] Acquires the value associated with a specified key.

[Deprecated] remove() (character string specification)

[Deprecated] Deletes a specified key and the value associated with that key.

[Deprecated] remove() (Key interface specification)

[Deprecated] Deletes a specified key and the value associated with that key.

[Deprecated] getLastUpdateTime() (character string specification)

[Deprecated] Acquires the last update time of the value associated with a specified key.

[Deprecated] getLastUpdateTime() (Key interface specification)

[Deprecated] Acquires the last update time of the value associated with a specified key.

getKeyCount()

Acquires the number of keys that belong to this group.

getGroupCount()

Acquires the number of groups in the hierarchy immediately below this group.

getGroupNames()

Acquires a list of group names in the hierarchy immediately below this group.

The group names are listed in ascending order based on their ASCII code values.

getGroupLayerNames()

Acquires a list of group hierarchy names in the hierarchy immediately below this group.

The group hierarchy names are listed in ascending order based on their ASCII code values.

[Deprecated] getGroupNameSet()

[Deprecated] Acquires a list of group names in ascending order based on their ASCII code values.

[Deprecated] getValueUsageSize() (character string specification)

[Deprecated] Acquires the size of the memory usage for the value associated with a specified key.

[Deprecated] getValueUsageSize() (Key interface specification)

[Deprecated] Acquires the size of the memory usage for the value associated with a specified key.

[Deprecated] getValueUsageSize()

[Deprecated] Acquires the total size of the memory usage for all values belonging to the group including the groups in the lower hierarchies.

(4) toString()

(a) Description

This method acquires the group name.

(b) Format

public String toString()

(c) Return value

This method returns the group name.

(5) equals()

(a) Description

This method evaluates whether a specified object is the Group instance indicating this group.

(b) Format

public boolean equals(Object obj)

(c) Parameters

obj

Specifies the object to be compared.

(d) Return value

true

The specified object is the Group instance indicating this group.

false

The specified object is not the Group instance indicating this group.

(6) getPosition()

(a) Description

This method acquires the position (hash group) that corresponds to the group.

(b) Format

public int getPosition()
                throws EADsStoreException

(c) Return value

This method returns the position (hash group) that corresponds to the group.

(d) Exceptions

  • UserOperationException (illegal user operation)

  • EADsStoreException (unexpected error)

(7) createKey()

(a) Description

This method creates a key that is to belong to this group.

(b) Format

public Key createKey(String element)
              throws EADsStoreException

(c) Parameters

element

Specifies an element name to be concatenated with the group name.

This parameter is invalid in the following cases:

(d) Return value

This method returns a Key instance.

(e) Exceptions

  • UserOperationException (illegal user operation)

  • EADsStoreException (unexpected error)

(8) createGroup()

(a) Description

This method creates a hierarchy group immediately below the specified group.

(b) Format

public Group createGroup(String groupLayerName)
                  throws EADsStoreException

(c) Parameters

groupLayerName

Specifies a group hierarchy name.

This parameter is invalid in the following cases:

(d) Return value

This method returns the instance needed for accessing the specified group.

(e) Exceptions

  • UserOperationException (illegal user operation)

  • EADsStoreException (unexpected error)

(9) firstKey()

(a) Description

This method acquires the first key in order of ASCII codes of all the keys that are stored and belong to the specified group.

(b) Format

public Key firstKey()
             throws EADsStoreException

(c) Return value

This method returns the first key in order of ASCII codes of all the keys that are stored and belong to the specified group.

If no keys belong to the specified group, the method returns null.

(d) Exceptions

  • InternalServerException (EADS server internal error)

  • EADsStoreException (unexpected error)

(10) lastKey()

(a) Description

This method acquires the last key in order of ASCII codes of all the keys that are stored and belong to the specified group.

(b) Format

public Key lastKey()
            throws EADsStoreException

(c) Return value

This method returns the last key in order of ASCII codes of all the keys that are stored and belong to the specified group.

If no keys belong to the specified group, the method returns null.

(d) Exceptions

  • InternalServerException (EADS server internal error)

  • EADsStoreException (unexpected error)

(11) keyIterator()

(a) Description

This method acquires an iterator that accesses the keys belonging to the specified group in ascending order based on their ASCII code values.

The start position of the iterator is the first key in the group.

(b) Format

public java.util.Iterator<Key> keyIterator()
                                    throws EADsStoreException

(c) Return value

This method returns an iterator that accesses the keys belonging to the group in ascending order based on their ASCII code values.

(d) Exceptions

  • EADsStoreException (unexpected error)

(e) Notes

Depending on the timing, the value associated with a key obtained by the iterator might have been deleted.

(12) keyIterator()

(a) Description

This method acquires an iterator that accesses the keys belonging to the specified group in ascending order based on their ASCII code values.

The start position of the iterator is the key immediately following a specified key in ascending order based on its ASCII code value of all the keys that belong to the group.

(b) Format

public java.util.Iterator<Key> keyIterator(Key previousKey)
                                    throws EADsStoreException

(c) Parameters

previousKey

Specifies the immediately preceding key that indicates the start position of the iterator.

This parameter is invalid in the following cases:

  • null is specified.

  • The specified object of the Key interface is invalid.

(d) Return value

This method returns an iterator that accesses the keys belonging to the specified group in ascending order based on their ASCII code values.

(e) Exceptions

  • UserOperationException (illegal user operation)

  • EADsStoreException (unexpected error)

(f) Notes

Depending on the timing, the value associated with a key obtained by the iterator might have been deleted.

(13) descendingKeyIterator()

(a) Description

This method acquires an iterator that accesses the keys belonging to the specified group in descending order based on their ASCII code values.

The start position of the iterator is the last key in the group.

(b) Format

public java.util.Iterator<Key> descendingKeyIterator()
                               throws EADsStoreException

(c) Return value

This method returns an iterator that accesses the keys belonging to the group in descending order based on their ASCII code values.

(d) Exceptions

  • EADsStoreException (unexpected error)

(e) Notes

Depending on the timing, the value associated with a key obtained by the iterator might have been deleted.

(14) descendingKeyIterator()

(a) Description

This method acquires an iterator that accesses the keys belonging to the specified group in descending order based on their ASCII code values.

The start position of the iterator is the key immediately following a specified key in descending order based on its ASCII code value of all the keys that belong to the group.

(b) Format

public java.util.Iterator<Key> descendingKeyIterator(Key previousKey)
                                              throws EADsStoreException

(c) Parameters

previousKey

Specifies the immediately preceding key that indicates the start position of the iterator.

This parameter is invalid in the following cases:

  • null is specified.

  • The specified object of the Key interface is invalid.

(d) Return value

This method returns an iterator that accesses the keys belonging to the specified group in descending order based on their ASCII code values.

(e) Exceptions

  • UserOperationException (illegal user operation)

  • EADsStoreException (unexpected error)

(f) Notes

Depending on the timing, the value associated with a key obtained by the iterator might have been deleted.

(15) [Deprecated] higherKeyIterator()

Reference note

This method is deprecated. Instead, use keyIterator() (Key interface specification).

(a) Description

This method acquires an iterator that accesses the keys belonging to the specified group in ascending order based on their ASCII code values.

The start position of the iterator is the key that immediately follows a specified key in ascending order based on its ASCII code value.

(b) Format

public java.util.Iterator<Key> higherKeyIterator(java.lang.String key)
           throws EADsStoreException

(c) Parameters

key

Specifies a key.

For details about the data types that can be specified, see 15.2.2(1) Data types that can be specified as keys.

(d) Return value

This method returns an iterator that accesses the keys belonging to the group in ascending order based on their ASCII code values.

(e) Exceptions

  • UserOperationException (illegal user operation)

  • EADsStoreException (unexpected error)

(f) Notes

Depending on the timing, the value associated with a key obtained by the iterator might have been deleted.

(16) [Deprecated] lowerDescendingKeyIterator()

Reference note

This method is deprecated. Instead, use descendingKeyIterator() (Key interface specification).

(a) Description

This method acquires an iterator that accesses the keys belonging to the specified group in descending order based on their ASCII code values.

The start position of the iterator is the key that immediately follows a specified key in descending order based on its ASCII code value.

(b) Format

public java.util.Iterator<Key> lowerDescendingKeyIterator(java.lang.String key)
                    throws EADsStoreException

(c) Parameters

key

Specifies a key.

For details about the data types that can be specified, see 15.2.2(1) Data types that can be specified as keys.

(d) Return value

This method returns an iterator that accesses the keys belonging to the group in descending order based on their ASCII code values.

(e) Exceptions

  • UserOperationException (illegal user operation)

  • EADsStoreException (unexpected error)

(f) Notes

Depending on the timing, the value associated with a key obtained by the iterator might have been deleted.

(17) [Deprecated] put() (character string specification)

Reference note

This method is deprecated. Instead, use put() of the Store interface.

(a) Description

This method associates a value with a key, and then stores it.

If a problem occurs when the value is stored, the method returns EADsStoreException.

(b) Format

public void put(java.lang.String key,
                java.lang.Object value)
         throws EADsStoreException

(c) Parameters

key

Specifies a key to be associated with the value.

For details about the data types that can be specified, see 15.2.2(1) Data types that can be specified as keys.

value

Specifies the value to be stored.

For details about the data types that can be specified, see 15.2.2(3) Data types that can be specified as values.

(d) Exceptions

  • UserOperationException (illegal user operation)

  • InternalServerException (EADS server internal error)

  • EADsStoreException (unexpected error)

(18) [Deprecated] put() (Key interface specification)

Reference note

This method is deprecated. Instead, use put() of the Store interface.

(a) Description

This method associates a value with a key, and then stores it.

If a problem occurs when the value is stored, the method returns EADsStoreException.

(b) Format

public void put(Key key,
                java.lang.Object value)
         throws EADsStoreException

(c) Parameters

key

Specifies a key of the Key interface that is to be associated with the value.

This parameter is invalid in the following cases:

  • null is specified.

  • The specified object of the Key interface is invalid.

value

Specifies the value to be stored.

For details about the data types that can be specified, see 15.2.2(3) Data types that can be specified as values.

(d) Exceptions

  • UserOperationException (illegal user operation)

  • InternalServerException (EADS server internal error)

  • EADsStoreException (unexpected error)

(19) [Deprecated] create()

Reference note

This method is deprecated. Instead, use create() of the Store interface.

(a) Description

This method associates a value with a key, and then stores it only if a new key is stored.

If a problem occurs when the value is stored, the method returns EADsStoreException.

(b) Format

public void create(java.lang.String key,
                   java.lang.Object value)
            throws EADsStoreException

(c) Parameters

key

Specifies a key to be associated with the value.

For details about the data types that can be specified, see 15.2.2(1) Data types that can be specified as keys.

value

Specifies the value to be stored.

For details about the data types that can be specified, see 15.2.2(3) Data types that can be specified as values.

(d) Exceptions

  • UserOperationException (illegal user operation)

  • InternalServerException (EADS server internal error)

  • EADsStoreException (unexpected error)

(20) [Deprecated] update() (character string specification)

Reference note

This method is deprecated. Instead, use update() of the Store interface.

(a) Description

This method associates a value with a key, and then stores it only if a specified key has already been stored (updates the value).

If a problem occurs when the value is stored, the method returns EADsStoreException.

(b) Format

public void update(java.lang.String key,
                   java.lang.Object value)
            throws EADsStoreException

(c) Parameters

key

Specifies a key to be associated with the value.

For details about the data types that can be specified, see 15.2.2(1) Data types that can be specified as keys.

value

Specifies the value to be stored.

For details about the data types that can be specified, see 15.2.2(3) Data types that can be specified as values.

(d) Exceptions

  • UserOperationException (illegal user operation)

  • InternalServerException (EADS server internal error)

  • EADsStoreException (unexpected error)

(21) [Deprecated] update() (Key interface specification)

Reference note

This method is deprecated. Instead, use update() of the Store interface.

(a) Description

This method associates a value with a key, and then stores it only if a specified key has already been stored (updates the value).

If a problem occurs when the value is stored, the method returns EADsStoreException.

(b) Format

public void update(Key key,
                   java.lang.Object value)
            throws EADsStoreException

(c) Parameters

key

Specifies a key of the Key interface that is to be associated with the value.

This parameter is invalid in the following cases:

  • null is specified.

  • The specified object of the Key interface is invalid.

value

Specifies the value to be stored.

For details about the data types that can be specified, see 15.2.2(3) Data types that can be specified as values.

(d) Exceptions

  • UserOperationException (illegal user operation)

  • InternalServerException (EADS server internal error)

  • EADsStoreException (unexpected error)

(22) [Deprecated] replace() (character string specification)

Reference note

This method is deprecated. Instead, use replace() of the Store interface.

(a) Description

This method compares the value associated with a specified key with a value (comparativeValue) specified as a condition. Only if the values match, this method associates the value with the key, and then stores it (replaces the value).

If a problem occurs when the value is replaced, the method returns EADsStoreException.

(b) Format

public void replace(java.lang.String key,
                    java.lang.Object value,
                    java.lang.Object comparativeValue)
             throws EADsStoreException

(c) Parameters

key

Specifies a key that is associated with the value to be replaced.

For details about the data types that can be specified, see 15.2.2(1) Data types that can be specified as keys.

value

Specifies the value to be stored.

For details about the data types that can be specified, see 15.2.2(3) Data types that can be specified as values.

comparativeValue

Specifies the value to be compared.

For details about the data types that can be specified, see 15.2.2(3) Data types that can be specified as values.

(d) Exceptions

  • UserOperationException (illegal user operation)

  • InternalServerException (EADS server internal error)

  • EADsStoreException (unexpected error)

(23) [Deprecated] replace() (Key interface specification)

Reference note

This method is deprecated. Instead, use replace() of the Store interface.

(a) Description

This method compares the value associated with a specified key with a value (comparativeValue) specified as a condition. Only if the values match, this method associates the value with the key, and then stores it (replaces the value).

If a problem occurs when the value is replaced, the method returns EADsStoreException.

(b) Format

public void replace(Key key,
                    java.lang.Object value,
                    java.lang.Object comparativeValue)
             throws EADsStoreException

(c) Parameters

key

Specifies a key of the Key interface that is associated with the value to be replaced.

This parameter is invalid in the following cases:

  • null is specified.

  • The specified object of the Key interface is invalid.

value

Specifies the value to be stored.

For details about the data types that can be specified, see 15.2.2(3) Data types that can be specified as values.

comparativeValue

Specifies the value to be compared.

For details about the data types that can be specified, see 15.2.2(3) Data types that can be specified as values.

(d) Exceptions

  • UserOperationException (illegal user operation)

  • InternalServerException (EADS server internal error)

  • EADsStoreException (unexpected error)

(24) [Deprecated] get() (character string specification)

Reference note

This method is deprecated. Instead, use get() of the Store interface.

(a) Description

This method acquires the value associated with a specified key.

If a problem occurs when the value is acquired, the method returns EADsStoreException.

(b) Format

public java.lang.Object get(java.lang.String key)
                     throws EADsStoreException

(c) Parameters

key

Specifies a key that is associated with the value to be acquired.

For details about the data types that can be specified, see 15.2.2(1) Data types that can be specified as keys.

(d) Return value

This method returns the value associated with the key.

If nothing is associated with the specified key, it returns null.

(e) Exceptions

  • UserOperationException (illegal user operation)

  • InternalServerException (EADS server internal error)

  • EADsStoreException (unexpected error)

(25) [Deprecated] get() (Key interface specification)

Reference note

This method is deprecated. Instead, use get() of the Store interface.

(a) Description

This method acquires the value associated with a specified key.

If a problem occurs when the value is acquired, the method returns EADsStoreException.

(b) Format

public java.lang.Object get(Key key)
                     throws EADsStoreException

(c) Parameters

key

Specifies a key of the Key interface that is associated with the value to be acquired.

This parameter is invalid in the following cases:

  • null is specified.

  • The specified object of the Key interface is invalid.

(d) Return value

This method returns the value associated with the key.

If nothing is associated with the specified key, it returns null.

(e) Exceptions

  • UserOperationException (illegal user operation)

  • InternalServerException (EADS server internal error)

  • EADsStoreException (unexpected error)

(26) [Deprecated] remove() (character string specification)

Reference note

This method is deprecated. Instead, use remove() of the Store interface.

(a) Description

This method deletes a specified key and the value associated with that key.

If a problem occurs when the value is deleted, the method returns EADsStoreException.

(b) Format

public void remove(java.lang.String key)
            throws EADsStoreException

(c) Parameters

key

Specifies a key that is associated with the value to be deleted.

For details about the data types that can be specified, see 15.2.2(1) Data types that can be specified as keys.

(d) Exceptions

  • UserOperationException (illegal user operation)

  • InternalServerException (EADS server internal error)

  • EADsStoreException (unexpected error)

(27) [Deprecated] remove() (Key interface specification)

Reference note

This method is deprecated. Instead, use remove() of the Store interface.

(a) Description

This method deletes a specified key and the value associated with that key.

If a problem occurs when the value is deleted, the method returns EADsStoreException.

(b) Format

public void remove(Key key)
            throws EADsStoreException

(c) Parameters

key

Specifies a key of the Key interface that is associated with the value to be deleted.

This parameter is invalid in the following cases:

  • null is specified.

  • The specified object of the Key interface is invalid.

(d) Exceptions

  • UserOperationException (illegal user operation)

  • InternalServerException (EADS server internal error)

  • EADsStoreException (unexpected error)

(28) [Deprecated] getLastUpdateTime() (character string specification)

Reference note

This method is deprecated. Instead, use getLastUpdateTime() of the Store interface.

(a) Description

This method acquires the last update time of the value associated with a specified key.

(b) Format

public long getLastUpdateTime(String key)
                       throws EADsStoreException

(c) Parameters

key

Specifies a key.

For details about the data types that can be specified, see 15.2.2(1) Data types that can be specified as keys.

(d) Return value

This method returns the last data update time (absolute time in milliseconds from 1970-01-01 at 00:00:00).

(e) Exceptions

  • UserOperationException (illegal user operation)

  • InternalServerException (EADS server internal error)

  • EADsStoreException (unexpected error)

(29) [Deprecated] getLastUpdateTime() (Key interface specification)

Reference note

This method is deprecated. Instead, use getLastUpdateTime() of the Store interface.

(a) Description

This method acquires the last update time of the value associated with a specified key.

(b) Format

public long getLastUpdateTime(Key key)
                       throws EADsStoreException

(c) Parameters

key

Specifies a key of the Key interface that is associated with the value.

This parameter is invalid in the following cases:

  • null is specified.

  • The specified object of the Key interface is invalid.

(d) Return value

This method returns the last data update time (absolute time in milliseconds from 1970-01-01 at 00:00:00).

(e) Exceptions

  • UserOperationException (illegal user operation)

  • InternalServerException (EADS server internal error)

  • EADsStoreException (unexpected error)

(30) getKeyCount()

(a) Description

This method acquires the number of keys that belong to this group.

(b) Format

public int getKeyCount()
                throws EADsStoreException

(c) Return value

This method returns the number of keys that belong to this group.

(d) Exceptions

  • InternalServerException (EADS server internal error)

  • EADsStoreException (unexpected error)

(31) getGroupCount()

(a) Description

This method acquires the number of groups in the hierarchy immediately below this group.

(b) Format

public int getGroupCount()
                  throws EADsStoreException

(c) Return value

This method returns the number of groups in the hierarchy immediately below this group.

(d) Exceptions

  • InternalServerException (EADS server internal error)

  • EADsStoreException (unexpected error)

(32) getGroupNames()

(a) Description

This method acquires a list of group names in the hierarchy immediately below this group.

The group names are listed in ascending order based on their ASCII code values.

(b) Format

public String[] getGroupNames()
                       throws EADsStoreException

(c) Return value

This method returns a list of group names in the hierarchy immediately below this group.

(d) Exceptions

  • InternalServerException (EADS server internal error)

  • EADsStoreException (unexpected error)

(33) getGroupLayerNames()

(a) Description

This method acquires a list of group hierarchy names in the hierarchy immediately below this group.

The group hierarchy names are listed in ascending order based on their ASCII code values.

(b) Format

public String[] getGroupLayerNames()
                            throws EADsStoreException

(c) Return value

This method returns a list of group hierarchy names in the hierarchy immediately below this group.

(d) Exceptions

  • InternalServerException (EADS server internal error)

  • EADsStoreException (unexpected error)

(34) [Deprecated] getGroupNameSet()

Reference note

This method is deprecated. Instead, use getGroupNames() of the Group interface.

(a) Description

This method acquires a list of group names in ascending order based on their ASCII code values.

(b) Format

public java.util.Set<String> getGroupNameSet()
                            throws EADsStoreException

(c) Return value

This method returns a list of group names in the hierarchy immediately below (in ascending order based on their ASCII code values).

(d) Exceptions

  • InternalServerException (EADS server internal error)

  • EADsStoreException (unexpected error)

(35) [Deprecated] getValueUsageSize() (character string specification)

Reference note

This method is deprecated. Instead, use getEHeapUsageSize() (Key interface specification) of the Store interface.

(a) Description

This method acquires the size of the memory usage for the value associated with a specified key.

(b) Format

public long getValueUsageSize(String key)
                       throws EADsStoreException

(c) Parameters

key

Specifies a key.

For details about the data types that can be specified, see 15.2.2(1) Data types that can be specified as keys.

(d) Return value

This method returns the size of the memory usage (bytes) for the value associated with the specified key.

If the cache does not store values, the method returns 0.

(e) Exceptions

  • UserOperationException (illegal user operation)

  • InternalServerException (EADS server internal error)

  • EADsStoreException (unexpected error)

(36) [Deprecated] getValueUsageSize() (Key interface specification)

Reference note

This method is deprecated. Instead, use getEHeapUsageSize() (Key interface specification) of the Store interface.

(a) Description

This method acquires the size of the memory usage for the value associated with a specified key.

(b) Format

public long getValueUsageSize(Key key)
                       throws EADsStoreException

(c) Parameters

key

Specifies a key of the Key interface that is associated with the value.

This parameter is invalid in the following cases:

  • null is specified.

  • The specified object of the Key interface is invalid.

(d) Return value

This method returns the size of the memory usage (bytes) for the value associated with the specified key.

If the cache does not store values, the method returns 0.

(e) Exceptions

  • UserOperationException (illegal user operation)

  • InternalServerException (EADS server internal error)

  • EADsStoreException (unexpected error)

(37) [Deprecated] getValueUsageSize()

Reference note

This method is deprecated. Instead, use getEHeapUsageSize() (Group interface specification) of the Store interface.

(a) Description

This method acquires the total size of the memory usage for all values belonging to the group including the groups in the lower hierarchies.

(b) Format

public long getValueUsageSize()
                       throws EADsStoreException

(c) Return value

This method returns the total size (bytes) of the memory usage for all values belonging to the group.

If the cache does not store values, the method returns 0.

(d) Exceptions

  • InternalServerException (EADS server internal error)

  • EADsStoreException (unexpected error)