Class DefaultChaosToggleNameMapper

    • Field Detail

      • togglePrefix

        protected final String togglePrefix
    • Constructor Detail

      • DefaultChaosToggleNameMapper

        public DefaultChaosToggleNameMapper​(String togglePrefix)
    • Method Detail

      • mapName

        public String mapName​(ChaosTarget type,
                              String name)
        Specified by:
        mapName in interface ChaosToggleNameMapper
        Parameters:
        type - ChaosType (controller, repository, etc)
        name - Name of item being assaulted (a method class and method name for example)
        Returns:
        the toggle name to be switched