public class Hosting extends Object implements NodeCapabilities, Startable, PipelineExtension
NodeCapabilities.NodeState, NodeCapabilities.NodeTypeEnumactorSupported_no, actorSupported_noneSupported, actorSupported_yes| Constructor and Description |
|---|
Hosting() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetObserverReference, pingclose, disconnect, getAfterHandlerName, getBeforeHandlerName, getName, onEventTriggered, onExceptionCaught, onInactive, onRegisteredpublic long getTimeToWaitForServersMillis()
public void setTimeToWaitForServersMillis(long timeToWaitForServersMillis)
public void setStage(Stage stage)
public void setNodeType(NodeCapabilities.NodeTypeEnum nodeType)
public List<NodeAddress> getAllNodes()
public List<NodeAddress> getServerNodes()
public Task<?> notifyStateChange()
public NodeAddress getNodeAddress()
public Task<Integer> canActivate(String interfaceName)
NodeCapabilitiescanActivate 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 void setClusterPeer(ClusterPeer clusterPeer)
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 HandlerExceptionprotected Task<?> writeInvocation(HandlerContext ctx, Invocation invocation)
public void cleanup()
public int getMaxLocalAddressCacheCount()
public void setMaxLocalAddressCacheCount(int maxLocalAddressCacheCount)
Copyright © 2016 Electronic Arts Inc. All rights reserved.