GigaSpaces XAP 7.1 API

org.openspaces.admin.esm.deployment
Class MemorySla

java.lang.Object
  extended by org.openspaces.admin.esm.deployment.MemorySla
All Implemented Interfaces:
SLA

public class MemorySla
extends Object
implements SLA

Memory Service Level Agreement (SLA) specifying the threshold to trigger memory breach. Threshold is breached if memory usage percentage is above or below the specified threshold.

 Disclaimer: This interface and the elastic data grid functionality is provided as a technology preview in XAP 7.1. 
 As such, it is subject to API and behavior changes in the next XAP releases without going through the usual deprecation process 
 of the XAP API.
 


Constructor Summary
MemorySla(String threshold)
          An SLA with a memory threshold percentage and a default moving average subset size of 6 (Six samples five seconds apart, giving a total of a 30 seconds window).
MemorySla(String threshold, int subsetSize)
          An SLA with a memory threshold percentage and a given moving average subset size (samples are five seconds apart, giving a total of a subsetSize*5 seconds window).
 
Method Summary
 int getSubsetSize()
          Returns the moving average subset size.
 int getThreshold()
          Returns the threshold integer value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemorySla

public MemorySla(String threshold)
An SLA with a memory threshold percentage and a default moving average subset size of 6 (Six samples five seconds apart, giving a total of a 30 seconds window).

Parameters:
threshold - A memory usage percentage (e.g. 75%).

MemorySla

public MemorySla(String threshold,
                 int subsetSize)
An SLA with a memory threshold percentage and a given moving average subset size (samples are five seconds apart, giving a total of a subsetSize*5 seconds window).

Parameters:
threshold - A memory usage percentage (e.g. 75%).
subsetSize - A subset size for calculating a moving average of memory statistics.
Method Detail

getThreshold

public int getThreshold()
Returns the threshold integer value.

Returns:
threshold integer value.

getSubsetSize

public int getSubsetSize()
Returns the moving average subset size.

Returns:
a subset site integer value.

GigaSpaces XAP 7.1 API

Copyright © GigaSpaces.