com.gigaspaces.grid.space
Class SpaceAssociationManagement

java.lang.Object
  extended by org.jini.rio.associations.AssociationMgmt
      extended by com.gigaspaces.grid.space.SpaceAssociationManagement
All Implemented Interfaces:
org.jini.rio.core.AssociationManagement

public class SpaceAssociationManagement
extends org.jini.rio.associations.AssociationMgmt

The SpaceAssociationManagement class provides customized association handling for a GigaSpaces cluster. GigaSpace cluster association handling is addressed in the following manner:

If the discovered Association is a GigaSpaces service proxy, and the proxy is a clustered proxy, the Asscoiation transitions will be limited to :

Additionally, when using an association with the ClassName attribute:

 <Association Type="uses" Name="Cache"
              Property="dataSpace"
              ClassName="com.j_spaces.core.IJSpace"/>
 
The fault detection handler defaults to AdminFaultDetectionHandler (this is the default processing handled by the Rio parser). If the association is a GigaSpace, and the fault detection handler is AdminFaultDetectionHandler, always create the GigaSpacesFaultDetectionHandler with default configuration properties set to:
 retryCount=0, invocationDelay=5000
 
This class is created by the GSContext class


Nested Class Summary
 class SpaceAssociationManagement.SpaceAssociationHandler
          The AssociationHandler handle an Association created from AssociationDescriptor.
 
Nested classes/interfaces inherited from class org.jini.rio.associations.AssociationMgmt
org.jini.rio.associations.AssociationMgmt.AssociationHandler
 
Constructor Summary
SpaceAssociationManagement()
          Create a SpaceAssociationManagement instance.
SpaceAssociationManagement(java.lang.ClassLoader cl)
          Create a SpaceAssociationManagement instance.
 
Method Summary
protected  org.jini.rio.associations.AssociationMgmt.AssociationHandler createAssociationHandler(org.jini.rio.core.AssociationDescriptor aDesc)
          Override parent's createAssociationHandler method and return a SpaceAssociationHandler
 
Methods inherited from class org.jini.rio.associations.AssociationMgmt
addAssociationDescriptor, getAssociatedServices, getAssociationListeners, getAssociations, getAssociations, getAssociations, getServiceName, notifyOnBroken, notifyOnChange, notifyOnDiscovery, register, remove, setBackend, setServiceBeanContainer, setServiceBeanContext, setServiceBeanControl, setUnadvertiseOnBroken, terminate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpaceAssociationManagement

public SpaceAssociationManagement()
Create a SpaceAssociationManagement instance. Uses the current thread's context class loader to provide the caller/client with properly annotated proxies for associated services


SpaceAssociationManagement

public SpaceAssociationManagement(java.lang.ClassLoader cl)
Create a SpaceAssociationManagement instance. Uses the specified class loader to provide the caller/client with properly annotated proxies for associated services, or the current thread's context class loader if cl is null.

Parameters:
cl - The class loader to provide the caller/client with a properly
Method Detail

createAssociationHandler

protected org.jini.rio.associations.AssociationMgmt.AssociationHandler createAssociationHandler(org.jini.rio.core.AssociationDescriptor aDesc)
Override parent's createAssociationHandler method and return a SpaceAssociationHandler

Overrides:
createAssociationHandler in class org.jini.rio.associations.AssociationMgmt
Parameters:
aDesc - The AssociationDescriptor to create a SpaceAssociationHandler for
Returns:
An SpaceAssociationHandler for the AssociationDescriptor. A new SpaceAssociationHandler is created each time this method is called
Throws:
java.lang.NullPointerException - if the AssociationDescriptor is null


Copyright (c) 2007 GigaSpaces Technologies, Inc.
All Rights Reserved.