Example usage for com.amazonaws.services.cloudsearchv2.model DomainStatus getSearchInstanceCount

List of usage examples for com.amazonaws.services.cloudsearchv2.model DomainStatus getSearchInstanceCount

Introduction

In this page you can find the example usage for com.amazonaws.services.cloudsearchv2.model DomainStatus getSearchInstanceCount.

Prototype


public Integer getSearchInstanceCount() 

Source Link

Document

The number of search instances that are available to process search requests.

Usage

From source file:com.haskins.cloudtrailviewer.dialog.resourcedetail.detailpanels.CsDomainDetail.java

License:Open Source License

private void buildUI(DescribeDomainsResult detail) {

    this.add(primaryScrollPane, BorderLayout.CENTER);

    if (!detail.getDomainStatusList().isEmpty()) {

        List<DomainStatus> domains = detail.getDomainStatusList();
        DomainStatus domain = domains.get(0);

        if (domain.getARN() != null) {
            primaryTableModel.addRow(new Object[] { "Arn", domain.getARN() });
        }/*w ww. ja v a2s .c o  m*/
        if (domain.getCreated() != null) {
            primaryTableModel.addRow(new Object[] { "Created", domain.getCreated() });
        }
        if (domain.getDeleted() != null) {
            primaryTableModel.addRow(new Object[] { "Deleted", domain.getDeleted() });
        }
        if (domain.getDocService() != null) {
            primaryTableModel.addRow(new Object[] { "Document Service", domain.getDocService().getEndpoint() });
        }
        if (domain.getDomainId() != null) {
            primaryTableModel.addRow(new Object[] { "Domain Id", domain.getDomainId() });
        }
        if (domain.getDomainName() != null) {
            primaryTableModel.addRow(new Object[] { "Domain Name", domain.getDomainName() });
        }
        if (domain.getProcessing() != null) {
            primaryTableModel.addRow(new Object[] { "Processing", domain.getProcessing() });
        }
        if (domain.getRequiresIndexDocuments() != null) {
            primaryTableModel.addRow(new Object[] { "Requires Index Document", domain.getProcessing() });
        }
        if (domain.getSearchInstanceCount() != null) {
            primaryTableModel.addRow(new Object[] { "Search Status Cound", domain.getSearchInstanceCount() });
        }
        if (domain.getSearchInstanceType() != null) {
            primaryTableModel.addRow(new Object[] { "Search Instance Type", domain.getSearchInstanceType() });
        }
        if (domain.getSearchPartitionCount() != null) {
            primaryTableModel
                    .addRow(new Object[] { "Search Partition Count", domain.getSearchPartitionCount() });
        }
        if (domain.getSearchService() != null) {
            primaryTableModel
                    .addRow(new Object[] { "Search Service", domain.getSearchService().getEndpoint() });
        }
    }

}