Search in sources :

Example 1 with AlwaysOnClusterInfo

use of com.zimbra.soap.admin.type.AlwaysOnClusterInfo in project zm-mailbox by Zimbra.

the class SoapProvisioning method getAllAlwaysOnClusters.

@Override
public List<AlwaysOnCluster> getAllAlwaysOnClusters() throws ServiceException {
    ArrayList<AlwaysOnCluster> result = new ArrayList<AlwaysOnCluster>();
    GetAllAlwaysOnClustersResponse resp = invokeJaxb(new GetAllAlwaysOnClustersRequest());
    for (AlwaysOnClusterInfo clusterInfo : resp.getAlwaysOnClusterList()) {
        result.add(new SoapAlwaysOnCluster(clusterInfo, this));
    }
    return result;
}
Also used : AlwaysOnCluster(com.zimbra.cs.account.AlwaysOnCluster) AlwaysOnClusterInfo(com.zimbra.soap.admin.type.AlwaysOnClusterInfo) ArrayList(java.util.ArrayList)

Aggregations

AlwaysOnCluster (com.zimbra.cs.account.AlwaysOnCluster)1 AlwaysOnClusterInfo (com.zimbra.soap.admin.type.AlwaysOnClusterInfo)1 ArrayList (java.util.ArrayList)1