use of com.vmware.xenon.common.OperationProcessingChain in project photon-model by vmware.
the class BaseTestCase method createHost.
protected VerificationHost createHost() throws Throwable {
ServiceHost.Arguments args = new ServiceHost.Arguments();
// ask runtime to pick a random storage location
args.sandbox = null;
// ask runtime to pick a random port
args.port = 0;
Map<Class<? extends Service>, Class<? extends OperationProcessingChain>> chains = new HashMap<>();
customizeChains(chains);
VerificationHost h = VerificationHost.initialize(new CustomizationVerificationHost(chains), args);
h.setMaintenanceIntervalMicros(this.getMaintenanceIntervalMillis() * 1000);
h.setTimeoutSeconds(HOST_TIMEOUT_SECONDS);
h.setPeerSynchronizationEnabled(this.getPeerSynchronizationEnabled());
h.start();
return h;
}
Aggregations