gov.nasa.pds.registry.common.connection.aws.CreateIndexRespWrap Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of registry-common Show documentation
Show all versions of registry-common Show documentation
Common code used by Harvest and Registry Manager.
package gov.nasa.pds.registry.common.connection.aws;
import org.opensearch.client.opensearch.indices.CreateIndexResponse;
import gov.nasa.pds.registry.common.Response;
class CreateIndexRespWrap implements Response.CreatedIndex {
final private CreateIndexResponse parent;
CreateIndexRespWrap(CreateIndexResponse parent) {
this.parent = parent;
}
@Override
public boolean acknowledge() {
return this.parent.acknowledged();
}
@Override
public boolean acknowledgeShards() {
return this.parent.shardsAcknowledged();
}
@Override
public String getIndex() {
return this.parent.index();
}
}