@Test public void testAddLaunchAttributes() { app = ApplicationBuilder.newManagedApp(TestApplication.class); SaltConfigs.addLaunchAttributes(app, ImmutableMap.of("k1", "v1")); Map<String, Object> attribs = app.getConfig(SaltConfig.SALT_LAUNCH_ATTRIBUTES); Assert.assertEquals(attribs, ImmutableMap.of("k1", "v1")); }
@SuppressWarnings({ "unchecked", "rawtypes" }) public static void addLaunchAttributes(EntitySpec<?> entity, Map<? extends Object,? extends Object> attributesMap) { entity.configure(SaltConfig.SALT_LAUNCH_ATTRIBUTES, MapModifications.add((Map)attributesMap)); }
SaltConfigs { @SuppressWarnings({ "unchecked", "rawtypes" }) public static void addLaunchAttributes(EntitySpec<?> entity, Map<? extends Object,? extends Object> attributesMap) { entity.configure(SaltConfig.SALT_LAUNCH_ATTRIBUTES, MapModifications.add((Map)attributesMap)); } }
SaltConfigs { @SuppressWarnings({ "unchecked", "rawtypes" }) public static void addLaunchAttributes(EntitySpec<?> entity, Map<? extends Object,? extends Object> attributesMap) { entity.configure(SaltConfig.SALT_LAUNCH_ATTRIBUTES, MapModifications.add((Map)attributesMap)); }  }
SaltConfigs { @SuppressWarnings({ "unchecked", "rawtypes" }) public static void addLaunchAttributes(EntitySpec<?> entity, Map<? extends Object,? extends Object> attributesMap) { entity.configure(SaltConfig.SALT_LAUNCH_ATTRIBUTES, MapModifications.add((Map)attributesMap)); }  static void addToRunList(EntitySpec<?> entity, String...states); static void addToRunList(EntityInternal entity, String...states); static void addToFormuals(EntitySpec<?> entity, String formulaName, String formulaUrl); static void addToFormulas(EntityInternal entity, String formulaName, String formulaUrl); @SuppressWarnings({ "unchecked", "rawtypes" }) static void addLaunchAttributes(EntitySpec<?> entity, Map<? extends Object,? extends Object> attributesMap); @SuppressWarnings({ "unchecked", "rawtypes" }) static void addLaunchAttributes(EntityInternal entity, Map<? extends Object,? extends Object> attributesMap); static void setLaunchAttribute(EntitySpec<?> entity, String rootAttribute, Object value); static void setLaunchAttribute(EntityInternal entity, String rootAttribute, Object value); static T getRequiredConfig(Entity entity, ConfigKey<T> key); }
SaltConfigs { @SuppressWarnings({ "unchecked", "rawtypes" }) public static void addLaunchAttributes(EntitySpec<?> entity, Map<? extends Object,? extends Object> attributesMap) { entity.configure(SaltConfig.SALT_LAUNCH_ATTRIBUTES, MapModifications.add((Map)attributesMap)); }  static void addToRunList(EntitySpec<?> entity, String...states); static void addToRunList(EntityInternal entity, String...states); static void addToFormuals(EntitySpec<?> entity, String formulaName, String formulaUrl); static void addToFormulas(EntityInternal entity, String formulaName, String formulaUrl); @SuppressWarnings({ "unchecked", "rawtypes" }) static void addLaunchAttributes(EntitySpec<?> entity, Map<? extends Object,? extends Object> attributesMap); @SuppressWarnings({ "unchecked", "rawtypes" }) static void addLaunchAttributes(EntityInternal entity, Map<? extends Object,? extends Object> attributesMap); static void setLaunchAttribute(EntitySpec<?> entity, String rootAttribute, Object value); static void setLaunchAttribute(EntityInternal entity, String rootAttribute, Object value); static T getRequiredConfig(Entity entity, ConfigKey<T> key);  }