public static StormTopology readSupervisorStormCodeGivenPath(String stormCodePath, AdvancedFSOps ops) throws IOException { return Utils.deserialize(ops.slurp(new File(stormCodePath)), StormTopology.class); }
when(ops.slurp(stormcode)).thenReturn(serializedState);
when(ops.slurp(stormcode)).thenReturn(serializedState);
when(ops.slurp(stormcode)).thenReturn(serializedState);
public static StormTopology readSupervisorStormCodeGivenPath(String stormCodePath, AdvancedFSOps ops) throws IOException { return Utils.deserialize(ops.slurp(new File(stormCodePath)), StormTopology.class); }