cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus-examples/src/main/java/org/cloudsimplus/examples/HostFaultInjectionExample1.java
private void createFaultInjectionForHosts(Datacenter datacenter) {
        //final long seed = System.currentTimeMillis();
        final long seed = 112717613L;
        this.poisson = new PoissonDistr(MEAN_FAILURE_NUMBER_PER_HOUR, seed);

        fault = new HostFaultInjection(datacenter, poisson);
        fault.setMaxTimeToGenerateFailureInHours(800);

        this.vmList.stream().forEach(vm -> fault.addVmCloner(broker, new VmClonerSimple(this::cloneVm, this::cloneCloudlets)));
    }
/**
     * Creates the fault injection for host
     *
     * @param datacenter
     */
Creates the fault injection for host
@param datacenter
Creates the fault injection for host @param datacenter
private void createFaultInjectionForHosts(Datacenter datacenter) {
        final long seed = 112717613L;
        this.poisson = new PoissonDistr(MEAN_FAILURE_NUMBER_PER_HOUR, seed);
        fault = new HostFaultInjection(datacenter, poisson);
        fault.setMaxTimeToGenerateFailureInHours(800);
        this.vmList.stream().forEach(vm -> fault.addVmCloner(broker, new VmClonerSimple(this::cloneVm, this::cloneCloudlets)));
    }
private void createFaultInjectionForHosts ( Datacenter datacenter ) { final long seed = 112717613L ; this . poisson = new PoissonDistr ( MEAN_FAILURE_NUMBER_PER_HOUR , seed ) ; fault = new HostFaultInjection ( datacenter , poisson ) ; fault . setMaxTimeToGenerateFailureInHours ( 800 ) ; this . vmList . stream ( ) . forEach ( vm -> fault . addVmCloner ( broker , new VmClonerSimple ( this :: cloneVm , this :: cloneCloudlets ) ) ) ; }
Creates the fault injection for host
 @param datacenter
Creates the fault injection for host @param datacenter
//final long seed = System.currentTimeMillis();