/** * Return a new NetMember representing current host * * @param i an InetAddress referring to the current host * @param p the membership port being used * @return the new NetMember */ public static NetMember newNetMember(InetAddress i, int p) { NetMember result = services.newNetMember(i, p); return result; }
/** * Return a new NetMember representing current host * * @param s a String referring to the current host * @param p the membership port being used * @return the new member */ public static NetMember newNetMember(String s, int p) { return services.newNetMember(s, p); }
/** * Return a new NetMember, possibly for a different host * * @param i the name of the host for the specified NetMember, the current host (hopefully) if * there are any problems. * @param p the membership port * @param splitBrainEnabled whether the member has this feature enabled * @param canBeCoordinator whether the member can be membership coordinator * @param payload the payload for this member * @return the new NetMember */ public static NetMember newNetMember(InetAddress i, int p, boolean splitBrainEnabled, boolean canBeCoordinator, short version, MemberAttributes payload) { return services.newNetMember(i, p, splitBrainEnabled, canBeCoordinator, payload, version); }