private void Start() { try { var configuredListeners = InstantiateConfiguredListenerObjects(); LifecycleService.Start(configuredListeners); InvocationService.Start(); ClusterService.Start(configuredListeners); ConnectionManager.Start(); ClusterService.WaitInitialMemberListFetched(); ConnectionManager.ConnectToAllClusterMembers(); ListenerService.Start(); ProxyManager.Init(ClientConfig); LoadBalancer.Init(((IHazelcastInstance)this).Cluster, ClientConfig); // Statistics.Start(); AddClientConfigAddedListeners(configuredListeners); } catch (Exception e) { try { LifecycleService.Terminate(); } catch (Exception) { //ignore } throw ExceptionUtil.Rethrow(e); } }
public void StartClient() { client = new ListenerService(container, false); client.Start(model.LocalNode.Port); connectionController.Start(); }