Search in sources :

Example 71 with HazelcastProperties

use of com.hazelcast.spi.properties.HazelcastProperties in project hazelcast-jet by hazelcast.

the class JobCoordinationService method init.

public void init() {
    InternalExecutionService executionService = nodeEngine.getExecutionService();
    HazelcastProperties properties = new HazelcastProperties(config.getProperties());
    long jobScanPeriodInMillis = properties.getMillis(JOB_SCAN_PERIOD);
    executionService.register(COORDINATOR_EXECUTOR_NAME, 2, Integer.MAX_VALUE, CACHED);
    executionService.scheduleWithRepetition(COORDINATOR_EXECUTOR_NAME, this::scanJobs, jobScanPeriodInMillis, jobScanPeriodInMillis, MILLISECONDS);
}
Also used : HazelcastProperties(com.hazelcast.spi.properties.HazelcastProperties) InternalExecutionService(com.hazelcast.spi.impl.executionservice.InternalExecutionService)

Aggregations

HazelcastProperties (com.hazelcast.spi.properties.HazelcastProperties)71 Config (com.hazelcast.config.Config)31 QuickTest (com.hazelcast.test.annotation.QuickTest)29 Test (org.junit.Test)29 ParallelJVMTest (com.hazelcast.test.annotation.ParallelJVMTest)25 ILogger (com.hazelcast.logging.ILogger)15 Address (com.hazelcast.cluster.Address)11 JoinConfig (com.hazelcast.config.JoinConfig)8 MulticastConfig (com.hazelcast.config.MulticastConfig)8 InetAddress (java.net.InetAddress)8 InetSocketAddress (java.net.InetSocketAddress)8 MulticastSocket (java.net.MulticastSocket)8 Before (org.junit.Before)8 ExecutionService (com.hazelcast.spi.impl.executionservice.ExecutionService)7 Properties (java.util.Properties)7 Node (com.hazelcast.instance.impl.Node)4 LoggingService (com.hazelcast.logging.LoggingService)4 MapConfig (com.hazelcast.config.MapConfig)3 TcpServerConnectionChannelErrorHandler (com.hazelcast.internal.server.tcp.TcpServerConnectionChannelErrorHandler)3 ClientConfig (com.hazelcast.client.config.ClientConfig)2