Use setter and getter in native HamaPeer methods