com.hazelcast.spi.impl.proxyservice.impl
Class ProxyRegistry

java.lang.Object
  extended by com.hazelcast.spi.impl.proxyservice.impl.ProxyRegistry

public final class ProxyRegistry
extends Object

A ProxyRegistry contains all proxies for a given service. For example, it contains all proxies for the IMap.


Method Summary
 DistributedObjectFuture createProxy(String name, boolean publishEvent, boolean initialize)
          Creates a DistributedObject proxy if it is not created yet
 Collection<String> getDistributedObjectNames()
           
 void getDistributedObjects(Collection<DistributedObject> result)
          Gets the DistributedObjects in this registry.
 int getProxyCount()
          Returns the number of proxies for this ProxyRegistry.
 void getProxyInfos(Collection<ProxyInfo> result)
          Gets the ProxyInfo of all proxies in this registry.
 String getServiceName()
          Returns the name of the service for this ProxyRegistry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getServiceName

public String getServiceName()
Returns the name of the service for this ProxyRegistry.

Returns:
The name of the service for this ProxyRegistry.

getProxyCount

public int getProxyCount()
Returns the number of proxies for this ProxyRegistry.

Returns:
The number of proxies for this ProxyRegistry.

getDistributedObjectNames

public Collection<String> getDistributedObjectNames()

getProxyInfos

public void getProxyInfos(Collection<ProxyInfo> result)
Gets the ProxyInfo of all proxies in this registry. The result is written into 'result'.

Parameters:
result - The ProxyInfo of all proxies in this registry.

getDistributedObjects

public void getDistributedObjects(Collection<DistributedObject> result)
Gets the DistributedObjects in this registry. The result is written into 'result'.

Parameters:
result - The DistributedObjects in this registry.

createProxy

public DistributedObjectFuture createProxy(String name,
                                           boolean publishEvent,
                                           boolean initialize)
Creates a DistributedObject proxy if it is not created yet

Parameters:
name - The name of the istributedObject proxy object.
publishEvent - true if a DistributedObjectEvent should be fired.
initialize - true if he DistributedObject proxy object should be initialized.
Returns:
The DistributedObject instance if it is created by this method, null otherwise.


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.