@Test public void testSerializationOfEnvironment() throws Exception { final byte[] bytes = Json.asBytes(STATUS); final TaskStatus read = Json.read(bytes, TaskStatus.class); assertEquals(1, read.getEnv().size()); assertEquals("VALUE", read.getEnv().get("VAR")); }
public Map<String, String> getEnv() { return env; }
TaskStatus extends Descriptor { public Map<String, String> getEnv() { return env; } }
TaskStatus extends Descriptor { public Map<String, String> getEnv() { return env; } TaskStatus(@JsonProperty("job") final Job job,
                    @Nullable @JsonProperty("goal") final Goal goal,
                    @JsonProperty("state") final State state,
                    @Nullable @JsonProperty("containerId") final String containerId,
                    @JsonProperty("throttled") final ThrottleState throttled,
                    @JsonProperty("ports") final Map<String, PortMapping> ports,
                    @Nullable @JsonProperty("env") final Map<String, String> env,
                    @Nullable @JsonProperty("containerError") final String containerError); private  TaskStatus(final Builder builder); }
TaskStatus extends Descriptor { public Map<String, String> getEnv() { return env; } TaskStatus(@JsonProperty("job") final Job job,
                    @Nullable @JsonProperty("goal") final Goal goal,
                    @JsonProperty("state") final State state,
                    @Nullable @JsonProperty("containerId") final String containerId,
                    @JsonProperty("throttled") final ThrottleState throttled,
                    @JsonProperty("ports") final Map<String, PortMapping> ports,
                    @Nullable @JsonProperty("env") final Map<String, String> env,
                    @Nullable @JsonProperty("containerError") final String containerError); private  TaskStatus(final Builder builder); Builder asBuilder(); ThrottleState getThrottled(); @Nullable String getContainerId(); Goal getGoal(); State getState(); Job getJob(); Map<String, PortMapping> getPorts(); Map<String, String> getEnv(); String getContainerError(); @Override String toString(); @Override boolean equals(Object obj); @Override int hashCode(); static Builder newBuilder(); }
TaskStatus extends Descriptor { public Map<String, String> getEnv() { return env; } TaskStatus(@JsonProperty("job") final Job job,
                    @Nullable @JsonProperty("goal") final Goal goal,
                    @JsonProperty("state") final State state,
                    @Nullable @JsonProperty("containerId") final String containerId,
                    @JsonProperty("throttled") final ThrottleState throttled,
                    @JsonProperty("ports") final Map<String, PortMapping> ports,
                    @Nullable @JsonProperty("env") final Map<String, String> env,
                    @Nullable @JsonProperty("containerError") final String containerError); private  TaskStatus(final Builder builder); Builder asBuilder(); ThrottleState getThrottled(); @Nullable String getContainerId(); Goal getGoal(); State getState(); Job getJob(); Map<String, PortMapping> getPorts(); Map<String, String> getEnv(); String getContainerError(); @Override String toString(); @Override boolean equals(Object obj); @Override int hashCode(); static Builder newBuilder();  }