/** * 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 */ static public NetMember newNetMember(InetAddress i, int p) { NetMember result = services.newNetMember(i, p); return result; }
/** * currently this is a test method but it ought to be used by InternalLocator * to create the peer location TcpHandler */ static public NetLocator newLocatorHandler(InetAddress bindAddress, File stateFile, String locatorString, boolean usePreferredCoordinators, boolean networkPartitionDetectionEnabled, LocatorStats stats) { return services.newLocatorHandler(bindAddress, stateFile, locatorString, usePreferredCoordinators, networkPartitionDetectionEnabled, stats); }
/** * Create a new MembershipManager. Be sure to send the manager a postConnect() message * before you start using it. * * @param listener the listener to notify for callbacks * @param config the configuration of connection to distributed system * @param transport holds configuration information that can be used by the manager to configure itself * @param stats are used for recording statistical communications information * @return a MembershipManager */ static public MembershipManager newMembershipManager(DistributedMembershipListener listener, DistributionConfig config, RemoteTransportConfig transport, DMStats stats) { return services.newMembershipManager(listener, config, transport, stats); }
/** * Create a new MembershipManager. Be sure to send the manager a postConnect() message * before you start using it. * * @param logger the logger to use * @param securityLogger the security logger to use * @param listener the listener to notify for callbacks * @param config the configuration of connection to distributed system * @param transport holds configuration information that can be used by the manager to configure itself * @param stats are used for recording statistical communications information * @return a MembershipManager */ static public MembershipManager newMembershipManager(LogWriterI18n logger, LogWriterI18n securityLogger, DistributedMembershipListener listener, DistributionConfig config, RemoteTransportConfig transport, DMStats stats) { return services.newMembershipManager(logger, securityLogger, listener, config, transport, stats); } }
/** * Return a blank NetMember (used by externalization) * @return the new NetMember */ static public NetMember newNetMember() { return services.newNetMember(); }
/** * 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 */ static public 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 */ static public NetMember newNetMember(String s, int p) { return services.newNetMember(s, p); }
/** * 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 */ static public 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 */ static public NetMember newNetMember(InetAddress i, int p, boolean splitBrainEnabled, boolean canBeCoordinator, short version, MemberAttributes payload) { return services.newNetMember(i, p, splitBrainEnabled, canBeCoordinator, payload, version); }
/** * 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 */ static public NetMember newNetMember(InetAddress i, int p, boolean splitBrainEnabled, boolean canBeCoordinator, MemberAttributes payload) { return services.newNetMember(i, p, splitBrainEnabled, canBeCoordinator, payload); }