Examples of TenantDataBean


Examples of org.apache.stratos.tenant.activity.beans.TenantDataBean

    private List<TenantDataBean> tenants = new ArrayList<TenantDataBean>();

    public void execute(ConfigurationContext configurationContext) throws ClusteringFault {
        try {
            for (Tenant tenant : TenantAxisUtils.getActiveTenants(configurationContext)) {
                TenantDataBean tb = new TenantDataBean();
                tb.setDomain(tenant.getDomain());
                tenants.add(tb);
            }
        } catch (Exception e) {
            String msg = "Cannot get Active tenants";
            log.error(msg, e);
View Full Code Here

Examples of org.apache.stratos.tenant.activity.beans.TenantDataBean

    private List<TenantDataBean> getAllActiveTenantList() throws Exception {
       // ClusterMgtUtil cm = new ClusterMgtUtil();
        List<TenantDataBean> list = new ArrayList<TenantDataBean>();
        //This will add current node active tenants list to tenant list
        for (Tenant tenant : TenantAxisUtils.getActiveTenants(Util.getConfigurationContextService().getServerConfigContext())) {
            TenantDataBean tb = new TenantDataBean();
            tb.setDomain(tenant.getDomain());
            list.add(tb);
        }
        //if there are multiple nodes in clusters get active tenants from there as well
        for (TenantDataBean tenantDataBean : TenantActivityUtil.getActiveTenantsInCluster()) {
            if (TenantActivityUtil.indexOfTenantInList(list, tenantDataBean) < 0) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.