GigaSpaces XAP 8.0 API

org.openspaces.core
Class DefaultGigaSpaceTypeManager

java.lang.Object
  extended by org.openspaces.core.DefaultGigaSpaceTypeManager
All Implemented Interfaces:
GigaSpaceTypeManager

public class DefaultGigaSpaceTypeManager
extends Object
implements GigaSpaceTypeManager

Default implementation of GigaSpaceTypeManager. This class is intended for internal usage only.

Since:
8.0
Author:
Niv Ingberg

Constructor Summary
DefaultGigaSpaceTypeManager(com.gigaspaces.internal.client.spaceproxy.ISpaceProxy space, ExceptionTranslator exTranslator)
           
 
Method Summary
 AsyncFuture<AddTypeIndexesResult> asyncAddIndex(String typeName, SpaceIndex index)
          Adds the specified index to the specified type.
 AsyncFuture<AddTypeIndexesResult> asyncAddIndex(String typeName, SpaceIndex index, AsyncFutureListener<AddTypeIndexesResult> listener)
          Adds the specified index to the specified type.
 AsyncFuture<AddTypeIndexesResult> asyncAddIndexes(String typeName, SpaceIndex[] indexes, AsyncFutureListener<AddTypeIndexesResult> listener)
          Adds the specified indexes to the specified type.
 SpaceTypeDescriptor getTypeDescriptor(Class<?> type)
          Gets the space type descriptor of the specified type.
 SpaceTypeDescriptor getTypeDescriptor(String typeName)
          Gets the space type descriptor of the specified type.
 void registerTypeDescriptor(Class<?> type)
          Creates a type descriptor for the specified type and registers it in the space.
 void registerTypeDescriptor(SpaceTypeDescriptor typeDescriptor)
          Registers the specified space type descriptor in the space.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultGigaSpaceTypeManager

public DefaultGigaSpaceTypeManager(com.gigaspaces.internal.client.spaceproxy.ISpaceProxy space,
                                   ExceptionTranslator exTranslator)
Method Detail

getTypeDescriptor

public SpaceTypeDescriptor getTypeDescriptor(String typeName)
Description copied from interface: GigaSpaceTypeManager
Gets the space type descriptor of the specified type.

Specified by:
getTypeDescriptor in interface GigaSpaceTypeManager
Parameters:
typeName - Name of type.
Returns:
Type descriptor of the type, if available (if not, returns null).

getTypeDescriptor

public SpaceTypeDescriptor getTypeDescriptor(Class<?> type)
Description copied from interface: GigaSpaceTypeManager
Gets the space type descriptor of the specified type.

Specified by:
getTypeDescriptor in interface GigaSpaceTypeManager
Parameters:
type - Java class.
Returns:
Type descriptor of the type, if available (if not, returns null).

registerTypeDescriptor

public void registerTypeDescriptor(SpaceTypeDescriptor typeDescriptor)
Description copied from interface: GigaSpaceTypeManager
Registers the specified space type descriptor in the space.

Specified by:
registerTypeDescriptor in interface GigaSpaceTypeManager

registerTypeDescriptor

public void registerTypeDescriptor(Class<?> type)
Description copied from interface: GigaSpaceTypeManager
Creates a type descriptor for the specified type and registers it in the space.

Specified by:
registerTypeDescriptor in interface GigaSpaceTypeManager

asyncAddIndex

public AsyncFuture<AddTypeIndexesResult> asyncAddIndex(String typeName,
                                                       SpaceIndex index)
Description copied from interface: GigaSpaceTypeManager
Adds the specified index to the specified type.

Specified by:
asyncAddIndex in interface GigaSpaceTypeManager
Parameters:
typeName - Name of type to enhance.
index - Index to add.
Returns:
A Future to monitor completion of the operation, whose get() method will return the add index result upon completion.

asyncAddIndex

public AsyncFuture<AddTypeIndexesResult> asyncAddIndex(String typeName,
                                                       SpaceIndex index,
                                                       AsyncFutureListener<AddTypeIndexesResult> listener)
Description copied from interface: GigaSpaceTypeManager
Adds the specified index to the specified type.

Specified by:
asyncAddIndex in interface GigaSpaceTypeManager
Parameters:
typeName - Name of type to enhance.
index - Index to add.
listener - A listener to be notified when a result arrives
Returns:
A Future to monitor completion of the operation, whose get() method will return the add index result upon completion.

asyncAddIndexes

public AsyncFuture<AddTypeIndexesResult> asyncAddIndexes(String typeName,
                                                         SpaceIndex[] indexes,
                                                         AsyncFutureListener<AddTypeIndexesResult> listener)
Description copied from interface: GigaSpaceTypeManager
Adds the specified indexes to the specified type.

Specified by:
asyncAddIndexes in interface GigaSpaceTypeManager
Parameters:
typeName - Name of type to enhance.
indexes - Indexes to add.
listener - A listener to be notified when a result arrives.
Returns:
A Future to monitor completion of the operation, whose get() method will return the add index result upon completion.

GigaSpaces XAP 8.0 API

Copyright © GigaSpaces.