/** * Serialize. Some data structures (e.g output) * may be shared * @return a serialized form for marshalling as JSON */ public ContainerInformation serialize() { ContainerInformation info = new ContainerInformation(); info.containerId = id; info.component = role; info.appVersion = appVersion; info.startTime = startTime; info.createTime = createTime; info.completionTime = completionTime; info.diagnostics = diagnostics; info.state = state; info.host = host; info.hostURL = hostURL; info.released = released ? Boolean.TRUE : null; if (placement != null) { info.placement = placement.toString(); } if (output != null) { info.output = output; } info.logLink = logLink; return info; } }
/** * Serialize. Some data structures (e.g output) * may be shared * @return a serialized form for marshalling as JSON */ public ContainerInformation serialize() { ContainerInformation info = new ContainerInformation(); info.containerId = id; info.component = role; info.appVersion = appVersion; info.startTime = startTime; info.createTime = createTime; info.completionTime = completionTime; info.diagnostics = diagnostics; info.state = state; info.host = host; info.hostURL = hostURL; info.released = released ? Boolean.TRUE : null; if (placement != null) { info.placement = placement.toString(); } if (output != null) { info.output = output; } info.logLink = logLink; return info; } }