public class Hosting extends Object implements NodeCapabilities, Startable, PipelineExtension
NodeCapabilities.NodeState, NodeCapabilities.NodeTypeEnumactorSupported_no, actorSupported_noneSupported, actorSupported_yes| Constructor and Description |
|---|
Hosting(int localAddressCacheMaximumSize,
long localAddressCacheTTL) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetObserverReference, pingclose, disconnect, getAfterHandlerName, getBeforeHandlerName, getName, onEventTriggered, onExceptionCaught, onInactive, onRegisteredpublic Hosting(int localAddressCacheMaximumSize,
long localAddressCacheTTL)
public long getTimeToWaitForServersMillis()
public void setTimeToWaitForServersMillis(long timeToWaitForServersMillis)
public void setStage(Stage stage)
public void setNodeSelector(NodeSelectorExtension nodeSelector)
public void setNodeType(NodeCapabilities.NodeTypeEnum nodeType)
public List<NodeAddress> getAllNodes()
public List<NodeAddress> getServerNodes()
public Task<?> notifyStateChange()
public NodeAddress getNodeAddress()
public Task<String> getPlacementGroup()
getPlacementGroup in interface NodeCapabilitiespublic Task<Integer> canActivate(String interfaceName)
canActivate in interface NodeCapabilitiespublic Task<Void> nodeModeChanged(NodeAddress nodeAddress, NodeCapabilities.NodeState newState)
nodeModeChanged in interface NodeCapabilitiespublic Task<Void> moved(RemoteReference remoteReference, NodeAddress oldAddress, NodeAddress newAddress)
moved in interface NodeCapabilitiespublic Task<Void> remove(RemoteReference<?> remoteReference)
remove in interface NodeCapabilitiespublic void setClusterPeer(ClusterPeer clusterPeer)
public boolean getFlushPlacementGroupCache()
public Hosting setFlushPlacementGroupCache(boolean flushPlacementCache)
public Task<NodeAddress> locateActor(RemoteReference reference, boolean forceActivation)
public void actorDeactivated(RemoteReference remoteReference)
public NodeAddress getConsistentHashOwner(String key)
key - public boolean isConsistentHashOwner(String key)
key - public Task connect(HandlerContext ctx, Object param) throws Exception
connect in interface PipelineExtensionconnect in interface HandlerExceptionpublic void onActive(HandlerContext ctx) throws Exception
onActive in interface PipelineExtensiononActive in interface HandlerExceptionpublic void onRead(HandlerContext ctx, Object msg) throws Exception
onRead in interface PipelineExtensiononRead in interface HandlerExceptionpublic Task write(HandlerContext ctx, Object msg) throws Exception
write in interface PipelineExtensionwrite in interface HandlerExceptionpublic void pulse()
protected Task<?> writeInvocation(HandlerContext ctx, Invocation invocation)
Copyright © 2019 Electronic Arts Inc. All rights reserved.