
com.cisco.oss.foundation.cluster.utils.MasterSlaveMultiplicity Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of master-slave Show documentation
Show all versions of master-slave Show documentation
This project is a multi data center supported master slave cluster manager library
The newest version!
package com.cisco.oss.foundation.cluster.utils;
/**
* Created by Yair Ogen (yaogen) on 09/02/2016.
*/
public enum MasterSlaveMultiplicity {
SINGLE("single"),
MULTI("multi");
private String multiplicity = "single";
MasterSlaveMultiplicity(String multiplicity){
this.multiplicity = multiplicity;
}
public String multiplicity(){
return multiplicity;
}
public static MasterSlaveMultiplicity newInstance(String multiplicity){
switch (multiplicity){
case "multi":
return MULTI;
default:
return SINGLE;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy