public class ProxyServiceImpl extends Object implements InternalProxyService, PostJoinAwareService, EventPublishingService<DistributedObjectEventPacket,Object>, MetricsProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_NAME |
| Constructor and Description |
|---|
ProxyServiceImpl(NodeEngineImpl nodeEngine) |
public static final String SERVICE_NAME
public ProxyServiceImpl(NodeEngineImpl nodeEngine)
public void provideMetrics(MetricsRegistry registry)
provideMetrics in interface MetricsProviderpublic void init()
public int getProxyCount()
getProxyCount in interface ProxyServicepublic void initializeDistributedObject(String serviceName, String name)
initializeDistributedObject in interface ProxyServicepublic ProxyRegistry getOrCreateRegistry(String serviceName)
public DistributedObject getDistributedObject(String serviceName, String name)
getDistributedObject in interface ProxyServicepublic void destroyDistributedObject(String serviceName, String name)
destroyDistributedObject in interface ProxyServicepublic void destroyLocalDistributedObject(String serviceName, String name, boolean fireEvent)
destroyLocalDistributedObject in interface InternalProxyServicepublic Collection<DistributedObject> getDistributedObjects(String serviceName)
getDistributedObjects in interface ProxyServicepublic Collection<String> getDistributedObjectNames(String serviceName)
getDistributedObjectNames in interface ProxyServicepublic Collection<DistributedObject> getAllDistributedObjects()
getAllDistributedObjects in interface ProxyServicepublic String addProxyListener(DistributedObjectListener distributedObjectListener)
addProxyListener in interface ProxyServicepublic boolean removeProxyListener(String registrationId)
removeProxyListener in interface ProxyServicepublic void dispatchEvent(DistributedObjectEventPacket eventPacket, Object ignore)
EventPublishingServicedispatchEvent in interface EventPublishingService<DistributedObjectEventPacket,Object>eventPacket - the published eventignore - the listener registered for this eventpublic Operation getPostJoinOperation()
PostJoinAwareServiceOperation.getPartitionId() method should return a negative value.
This means that the operations should not implement PartitionAwareOperation.
Post join operations should return response, at least a null response.
getPostJoinOperation in interface PostJoinAwareServicenull.public void shutdown()
Copyright © 2019 Hazelcast, Inc.. All Rights Reserved.