Search in sources :

Example 1 with ForkJoinStrategy

use of org.platformlayer.forkjoin.ForkJoinStrategy in project platformlayer by platformlayer.

the class FederatedPlatformLayerClient method build.

// public static PlatformLayerClient build(TypedPlatformLayerClient localClient, TypedItemMapper mapper)
// throws OpsException {
// FederationMap federationMap = buildFederationMap(localClient, mapper);
//
// ForkJoinStrategy forkJoinPool = new FakeForkJoinStrategy();
//
// return new FederatedPlatformLayerClient(federationMap, forkJoinPool);
// }
public static PlatformLayerClient build(ProjectId defaultProject, FederationMap federationMap) throws OpsException {
    ForkJoinStrategy forkJoinPool = new FakeForkJoinStrategy();
    TypedItemMapper mapper = null;
    return new FederatedPlatformLayerClient(mapper, defaultProject, federationMap, forkJoinPool);
}
Also used : TypedItemMapper(org.platformlayer.TypedItemMapper) FakeForkJoinStrategy(org.platformlayer.forkjoin.FakeForkJoinStrategy) FakeForkJoinStrategy(org.platformlayer.forkjoin.FakeForkJoinStrategy) ForkJoinStrategy(org.platformlayer.forkjoin.ForkJoinStrategy)

Aggregations

TypedItemMapper (org.platformlayer.TypedItemMapper)1 FakeForkJoinStrategy (org.platformlayer.forkjoin.FakeForkJoinStrategy)1 ForkJoinStrategy (org.platformlayer.forkjoin.ForkJoinStrategy)1