@Override public ServiceDocument getDocumentTemplate() { ServiceDocument template = super.getDocumentTemplate(); // instruct the index to only keep the most recent 2 versions template.documentDescription.versionRetentionLimit = 4; template.documentDescription.versionRetentionFloor = 2; return template; } }
@Override public ServiceDocument getDocumentTemplate() { ServiceDocument template = super.getDocumentTemplate(); // this service is a target of throughput tests so we set the limit high to avoid grooming // during the tests. Tests can use the example service to verify throughput while grooming // is active template.documentDescription.versionRetentionLimit = VERSION_RETENTION_LIMIT; template.documentDescription.versionRetentionFloor = VERSION_RETENTION_FLOOR; return template; } }
@Override public ServiceDocument getDocumentTemplate() { ServiceDocument template = super.getDocumentTemplate(); ServiceUtils.setRetentionLimit(template); return template; } }
@Override public ServiceDocument getDocumentTemplate() { ServiceDocument td = super.getDocumentTemplate(); ServiceUtils.setRetentionLimit(td); IPAddressState template = (IPAddressState) td; template.id = UUID.randomUUID().toString(); template.name = "ip-address"; return template; }
@Override public ServiceDocument getDocumentTemplate() { ServiceDocument template = super.getDocumentTemplate(); ServiceUtils.setRetentionLimit(template); return template; }
@Override public ServiceDocument getDocumentTemplate() { ServiceDocument template = super.getDocumentTemplate(); com.vmware.photon.controller.model.ServiceUtils.setRetentionLimit(template); return template; }
@Override public ServiceDocument getDocumentTemplate() { ServiceDocument template = super.getDocumentTemplate(); com.vmware.photon.controller.model.ServiceUtils.setRetentionLimit(template); return template; } }
@Override public ServiceDocument getDocumentTemplate() { ServiceDocument template = super.getDocumentTemplate(); ServiceUtils.setRetentionLimit(template); return template; }
@Override public ServiceDocument getDocumentTemplate() { ServiceDocument td = super.getDocumentTemplate(); // enable metadata indexing td.documentDescription.documentIndexingOptions = EnumSet.of(DocumentIndexingOption.INDEX_METADATA); ServiceUtils.setRetentionLimit(td); TagState template = (TagState) td; template.key = "key-1"; template.value = "value-1"; return template; }
@Override public ServiceDocument getDocumentTemplate() { ServiceDocument template = super.getDocumentTemplate(); com.vmware.photon.controller.model.ServiceUtils.setRetentionLimit(template); return template; } }
@Override public ServiceDocument getDocumentTemplate() { ServiceDocument template = super.getDocumentTemplate(); template.documentDescription.serializedStateSizeLimit = MAX_STATE_SIZE; return template; } }
@Override public ServiceDocument getDocumentTemplate() { ServiceDocument template = super.getDocumentTemplate(); // instruct the index to only keep the most recent 2 versions template.documentDescription.versionRetentionLimit = 4; template.documentDescription.versionRetentionFloor = 2; return template; } }
@Override public ServiceDocument getDocumentTemplate() { ServiceDocument template = super.getDocumentTemplate(); com.vmware.photon.controller.model.ServiceUtils.setRetentionLimit(template); return template; }
@Override public ServiceDocument getDocumentTemplate() { ServiceDocument template = super.getDocumentTemplate(); com.vmware.photon.controller.model.ServiceUtils.setRetentionLimit(template); return template; } }
@Override public ServiceDocument getDocumentTemplate() { ServiceDocument template = super.getDocumentTemplate(); com.vmware.photon.controller.model.ServiceUtils.setRetentionLimit(template); return template; }
@Override public ServiceDocument getDocumentTemplate() { ServiceDocument template = super.getDocumentTemplate(); ServiceUtils.setRetentionLimit(template); return template; }
@Override public ServiceDocument getDocumentTemplate() { ServiceDocument template = super.getDocumentTemplate(); com.vmware.photon.controller.model.ServiceUtils.setRetentionLimit(template); return template; }
@Override public ServiceDocument getDocumentTemplate() { ServiceDocument template = super.getDocumentTemplate(); com.vmware.photon.controller.model.ServiceUtils.setRetentionLimit(template); return template; }
@Override public ServiceDocument getDocumentTemplate() { ServiceDocument template = super.getDocumentTemplate(); // enable metadata indexing template.documentDescription.documentIndexingOptions = EnumSet.of(ServiceDocumentDescription.DocumentIndexingOption.INDEX_METADATA); return template; } }
protected void handleOptionsCompletion(Operation options) { if (!options.hasBody()) { options.setBodyNoCloning(getDocumentTemplate()); } processCompletionStagePublishAndComplete(options); }