/** * Set the {@link StorageService} back-end to use. * * @param storage the back-end to use */ public void setStorageService(@Nonnull final StorageService storage) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); storageService = Constraint.isNotNull(storage, "StorageService cannot be null"); final StorageCapabilities caps = storageService.getCapabilities(); if (caps instanceof StorageCapabilitiesEx) { Constraint.isTrue(((StorageCapabilitiesEx) caps).isServerSide(), "StorageService cannot be client-side"); if (!((StorageCapabilitiesEx) caps).isClustered()) { log.info("Use of non-clustered storage service will result in per-node lockout behavior"); } } }