internal CausalClusteringBeanImpl(ManagementData management, bool isMXBean) : base(management, isMXBean) { ClusterStateDirectory = management.ResolveDependency(typeof(ClusterStateDirectory)); RaftMachine = management.ResolveDependency(typeof(RaftMachine)); Fs = management.KernelData.FilesystemAbstraction; }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: private java.io.File createClusterStateDir(org.neo4j.io.fs.FileSystemAbstraction fs) throws org.neo4j.causalclustering.core.state.ClusterStateException private File CreateClusterStateDir(FileSystemAbstraction fs) { File dataDir = new File(_homeDir.toFile(), "data"); ClusterStateDirectory clusterStateDirectory = new ClusterStateDirectory(dataDir, false); clusterStateDirectory.Initialize(fs); return(clusterStateDirectory.Get()); }
private void InitializeInstanceFields() { _clusterStateDirectory = ClusterStateDirectory.withoutInitializing(_dataDir); }
/// /// <param name="platformModule"> </param> /// <param name="discoveryServiceFactory"> </param> /// <param name="clusterStateDirectory"> </param> /// <param name="identityModule"> </param> /// <param name="dependencies"> </param> /// <param name="databaseLayout"> /// @return </param> protected internal virtual ClusteringModule GetClusteringModule(PlatformModule platformModule, DiscoveryServiceFactory discoveryServiceFactory, ClusterStateDirectory clusterStateDirectory, IdentityModule identityModule, Dependencies dependencies, DatabaseLayout databaseLayout) { SslPolicyLoader sslPolicyFactory = ( SslPolicyLoader )dependencies.SatisfyDependency(SslPolicyLoader.create(this.Config, this.LogProvider)); SslPolicy sslPolicy = sslPolicyFactory.GetPolicy(( string )this.Config.get(CausalClusteringSettings.SslPolicy)); if (discoveryServiceFactory is SecureHazelcastDiscoveryServiceFactory) { (( SecureHazelcastDiscoveryServiceFactory )discoveryServiceFactory).SslPolicy = sslPolicy; } return(new ClusteringModule(discoveryServiceFactory, identityModule.Myself(), platformModule, clusterStateDirectory.Get(), databaseLayout)); }