private void encode(GrowingByteBuffer buf, ConfigurationServerSync configurationSync) { int option = 0; ByteBuffer confSchemaBody = configurationSync.getConfSchemaBody(); ByteBuffer confDeltaBody = configurationSync.getConfDeltaBody(); boolean confSchemaPresent = confSchemaBody != null && confSchemaBody.hasArray()
private static ConfigurationServerSync deepCopy(ConfigurationServerSync source) { if (source == null) { return null; } ConfigurationServerSync copy = new ConfigurationServerSync(); copy.setResponseStatus(source.getResponseStatus()); copy.setConfDeltaBody(source.getConfDeltaBody()); copy.setConfSchemaBody(source.getConfSchemaBody()); return copy; }
private static ConfigurationSyncResponse convert(ConfigurationServerSync source) { if (source == null) { return null; } ConfigurationSyncResponse sync = new ConfigurationSyncResponse(); sync.setConfDeltaBody(source.getConfDeltaBody()); sync.setConfSchemaBody(source.getConfSchemaBody()); sync.setResponseStatus(convert(source.getResponseStatus())); return sync; }