All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bdware.doip.cluster.engine.IdentifierUtil Maven / Gradle / Ivy

The newest version!
package org.bdware.doip.cluster.engine;

import com.google.gson.JsonObject;
import org.bdware.doip.cluster.entity.DDOEntity;

import java.util.List;

public class IdentifierUtil {
    DDOEntity ddoEntity;

    public IdentifierUtil(DDOEntity ddoEntity) {
        this.ddoEntity = ddoEntity;
    }

    public String[] getMembers() {
        return ddoEntity.getBDOList();
    }

    public String getMember(int i) {
        return ddoEntity.getBDOList()[i];
    }

    public int getMembersSize() {
       return ddoEntity.getBDOList().length;
    }

    public boolean isCluster() {
        return getMembersSize() > 0;
    }

    public void setMembers(List doipServers) {
        throw  new IllegalStateException("StubOnly");
    }
    public JsonObject getDDOInfo(){
        return ddoEntity.getDdoInfo();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy