Dashboard > Appistry EAF v3.8 > ... > Java FAM API > FAM_space.java
Log In   View a printable version of the current page.  
  FAM_space.java

Package: com.appistry.fam

Class FAM_Space

Methods

FAM_Space

FAM_Space(String spaceName)

This is the FAM_Space object constructor.

Parameters
String space name
Return Value
FAM_Space FAM_Space object instance
Exceptions NullPointerException

create

void create(int spaceMaxSize,
            FAM_Space.Parity spaceParity)

This method creates the FAM space in the fabric with the indicated parity scheme, and size in kilobytes.

Parameters
int the maximum size, in kilobytes, of the FAM space
FAM_Space.Parity the parity scheme for the space;
ONE_ONE indicates (1,1) parity,
TWO_ONE indicates (2,1) parity, and
TWO_ONE_QUORUMLESS_READ indicates (2,1) with quorumless read parity
Exceptions FAM_Exception
FAM_SpaceException
IllegalArgumentException

delete

void delete()

This method deletes the FAM space from the fabric.

Exceptions FAM_Exception
FAM_SpaceException

exists

boolean exists()

This method verifies the FAM space exists in the fabric.

Return Value
boolean true indicates the space exists, false indicates the space does not exist

queryKeys

Collection<String> queryKeys(FAM_Session famSession)

This method returns a list of keys accessed in the current session for this FAM space.

Parameters
FAM_Session FAM session object
Return Value
Collection keys

setTimeout

void setTimeout(int timeout)

This method sets the amount of time the FAM_Space object waits for a request to the FAM to complete.

Parameters
int maximum amount of time, in milliseconds, the FAM_Space object wait for a request to complete

getTimeout

int getTimeout()

This method returns the amount of time the FAM_Space object waits for a request to the FAM to complete.

Return Value
int maximum amount of time, in milliseconds, the FAM_Space object waits for a request to complete

setMaxRetries

void setMaxRetries(int retries)

This method sets the maximum number of times the FAM space will retry a request.

Parameters
int maximum number of times the FAM will retry a request

getMaxRetries

int getMaxRetries()
Return Value

This method returns the maximum number of times the FAM space will retry a request.

int maximum number of times the FAM will retry a request