use of com.hazelcast.spi.impl.proxyservice.ProxyService in project hazelcast by hazelcast.
the class AbstractDistributedObject method destroy.
@Override
public final void destroy() {
if (preDestroy()) {
NodeEngine engine = getNodeEngine();
ProxyService proxyService = engine.getProxyService();
UUID source = engine.getLocalMember().getUuid();
proxyService.destroyDistributedObject(getServiceName(), getDistributedObjectName(), source);
postDestroy();
}
}
use of com.hazelcast.spi.impl.proxyservice.ProxyService in project hazelcast by hazelcast.
the class InitializeDistributedObjectOperation method run.
@Override
public void run() throws Exception {
ProxyService proxyService = getNodeEngine().getProxyService();
proxyService.initializeDistributedObject(serviceName, name, getCallerUuid());
}
use of com.hazelcast.spi.impl.proxyservice.ProxyService in project hazelcast by hazelcast.
the class MapFlushMessageTask method call.
@Override
protected Object call() throws Exception {
MapService mapService = getService(SERVICE_NAME);
MapServiceContext mapServiceContext = mapService.getMapServiceContext();
NodeEngine nodeEngine = mapServiceContext.getNodeEngine();
ProxyService proxyService = nodeEngine.getProxyService();
UUID source = endpoint.getUuid();
DistributedObject distributedObject = proxyService.getDistributedObject(SERVICE_NAME, parameters, source);
MapProxyImpl mapProxy = (MapProxyImpl) distributedObject;
mapProxy.flush();
return null;
}
use of com.hazelcast.spi.impl.proxyservice.ProxyService in project hazelcast by hazelcast.
the class CheckAndEvictOperation method run.
@Override
public void run() throws Exception {
final QueueContainer queueContainer = getContainer();
if (queueContainer.isEvictable()) {
NodeEngine nodeEngine = getNodeEngine();
ProxyService proxyService = nodeEngine.getProxyService();
UUID source = nodeEngine.getLocalMember().getUuid();
proxyService.destroyDistributedObject(getServiceName(), name, source);
}
}
use of com.hazelcast.spi.impl.proxyservice.ProxyService in project hazelcast by hazelcast.
the class HazelcastInstanceImpl method removeDistributedObjectListener.
@Override
public boolean removeDistributedObjectListener(@Nonnull UUID registrationId) {
checkNotNull(registrationId, "Registration ID must not be null!");
final ProxyService proxyService = node.getNodeEngine().getProxyService();
return proxyService.removeProxyListener(registrationId);
}
Aggregations