The getSelfMember method

When connecting to a metaspace, each application is automatically assigned (or provides) a unique member name within that metaspace. Your application can determine this name by invoking the metaspace’s getSelfMember method, which returns a Member object.

Related reference