GigaSpaces XAP 9.7.2 API

com.gigaspaces.client.protective
Class ProtectiveMode

java.lang.Object
  extended by com.gigaspaces.client.protective.ProtectiveMode

public class ProtectiveMode
extends Object

Protective mode setup class, holds the current protective mode setup

Since:
9.1
Author:
eitany

Field Summary
static String PRIMITIVE_WITHOUT_NULL_VALUE
           
static String PROTECTIVE_MODE
          System property key to enable/disable protective mode entirely, defaults to true,
static String TYPE_WITHOUT_ID
           
static String WRONG_ENTRY_ROUTING_USAGE
          System property key to enable/disable wrong routing usage when writing/updating an entry in a co-located space.
 
Constructor Summary
ProtectiveMode()
           
 
Method Summary
static boolean isEnabled()
           
static boolean isPrimitiveWithoutNullValueProtectionEnabled()
           
static boolean isTypeWithoutIdProtectionEnabled()
           
static boolean isWrongRoutingUsageProtectionEnabled()
           
static boolean shouldIgnoreTypeWithoutIdProtectiveMode(String typeName)
           
static boolean shouldIgnoreWrongRoutingProtectiveMode(String typeName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROTECTIVE_MODE

public static final String PROTECTIVE_MODE
System property key to enable/disable protective mode entirely, defaults to true,

See Also:
Constant Field Values

WRONG_ENTRY_ROUTING_USAGE

public static final String WRONG_ENTRY_ROUTING_USAGE
System property key to enable/disable wrong routing usage when writing/updating an entry in a co-located space. If an entry is written/updated to/in the co-located space without a routing value or with a routing value which does not match the space, an exception will be thrown. This is done in order to avoid user error that later on when a remote proxy will try to read this object he will not locate it because the routing value is wrong.

See Also:
Constant Field Values

TYPE_WITHOUT_ID

public static final String TYPE_WITHOUT_ID
See Also:
Constant Field Values

PRIMITIVE_WITHOUT_NULL_VALUE

public static final String PRIMITIVE_WITHOUT_NULL_VALUE
See Also:
Constant Field Values
Constructor Detail

ProtectiveMode

public ProtectiveMode()
Method Detail

isEnabled

public static boolean isEnabled()

isWrongRoutingUsageProtectionEnabled

public static boolean isWrongRoutingUsageProtectionEnabled()

shouldIgnoreWrongRoutingProtectiveMode

public static boolean shouldIgnoreWrongRoutingProtectiveMode(String typeName)

isTypeWithoutIdProtectionEnabled

public static boolean isTypeWithoutIdProtectionEnabled()

shouldIgnoreTypeWithoutIdProtectiveMode

public static boolean shouldIgnoreTypeWithoutIdProtectiveMode(String typeName)

isPrimitiveWithoutNullValueProtectionEnabled

public static boolean isPrimitiveWithoutNullValueProtectionEnabled()

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.