package love.distributedrebirth.bassboonyd.jmx; import java.util.HashMap; import java.util.Map; import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinNailʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnPhaseBarrierʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnSpiderEgg注; import love.distributedrebirth.bassboonyd.DefaultEnumBaseʸᴰ; import love.distributedrebirth.bassboonyd.info.BãßBȍőnAnnotation注; import love.distributedrebirth.bassboonyd.info.BãßBȍőnAuthor注; import love.distributedrebirth.bassboonyd.info.BãßBȍőnName注; import love.distributedrebirth.bassboonyd.sinit.BãßBȍőnꝐŕḯṿª₮ḕ; import love.distributedrebirth.bassboonyd.sinit.BãßBȍőnꝐŕḯṿª₮ḕInit注; @BãßBȍőnAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") @BãßBȍőnAnnotation注(required = {BãßBȍőnName注.class}) public interface DefaultEnumBaseᴶᴹˣ extends DefaultEnumBaseʸᴰ { public static class Ꝑŕḯṿª₮ḕ implements BãßBȍőnꝐŕḯṿª₮ḕ { private static final String GHOST_KEY_JMX = "JMX"; @BãßBȍőnꝐŕḯṿª₮ḕInit注(dependencies = {BãßBȍőnPhaseBarrierʸᴰ.Ꝑŕḯṿª₮ḕPhaseBoonBereshit.class}) private static void init(DefaultEnumBaseᴶᴹˣ boon) { boon.toBBC().UNHOLY(Ꝑŕḯṿª₮ḕ.class).PUT_GHOST(Ꝑŕḯṿª₮ḕ.GHOST_KEY_JMX, new HashMap<>()); } private static X buildJmxGhost(DefaultEnumBaseᴶᴹˣ boon, String name, X result) { boon.toBBC().UNHOLY(Ꝑŕḯṿª₮ḕ.class).GHOST_MAP_OBJ(Ꝑŕḯṿª₮ḕ.GHOST_KEY_JMX).put(name, result); return result; } @BãßBȍőnSpiderEgg注() private static CounterGuageᴶᴹˣ buildGuageCounter(DefaultEnumBaseᴶᴹˣ boon, String name, String description) { return buildJmxGhost(boon, name, new CounterGuageᴶᴹˣ(name, description)); } @BãßBȍőnSpiderEgg注() private static AttributeStringᴶᴹˣ buildStringAttribute(DefaultEnumBaseᴶᴹˣ boon, String name, String description) { return buildJmxGhost(boon, name, new AttributeStringᴶᴹˣ(name, description)); } @BãßBȍőnSpiderEgg注() private static AttributeBooleanᴶᴹˣ buildBooleanAttribute(DefaultEnumBaseᴶᴹˣ boon, String name, String description) { return buildJmxGhost(boon, name, new AttributeBooleanᴶᴹˣ(name, description)); } @BãßBȍőnSpiderEgg注() private static AttributeIntegerᴶᴹˣ buildIntegerAttribute(DefaultEnumBaseᴶᴹˣ boon, String name, String description) { return buildJmxGhost(boon, name, new AttributeIntegerᴶᴹˣ(name, description)); } @BãßBȍőnSpiderEgg注() private static AttributeLongᴶᴹˣ buildLongAttribute(DefaultEnumBaseᴶᴹˣ boon, String name, String description) { return buildJmxGhost(boon, name, new AttributeLongᴶᴹˣ(name, description)); } } public static Map jmxGhosts(BãßBȍőnCoffinʸᴰ BBC) { return BBC.UNHOLY(Ꝑŕḯṿª₮ḕ.class).GHOST_MAP_OBJ(Ꝑŕḯṿª₮ḕ.GHOST_KEY_JMX); } }