Tabnine Logo
InternalDistributedMember.defaultToCurrentHost
Code IndexAdd Tabnine to your IDE (free)

How to use
defaultToCurrentHost
method
in
com.gemstone.gemfire.distributed.internal.membership.InternalDistributedMember

Best Java code snippets using com.gemstone.gemfire.distributed.internal.membership.InternalDistributedMember.defaultToCurrentHost (Showing top 8 results out of 315)

origin: org.apache.geode/gemfire-core

/**
 * Create a InternalDistributedMember referring to the current host (as defined by the given
 * string).<p>
 *
 * <b>
 * THIS METHOD IS FOR TESTING ONLY.  DO NOT USE IT TO CREATE IDs FOR
 * USE IN THE PRODUCT.  IT DOES NOT PROPERLY INITIALIZE ATTRIBUTES NEEDED
 * FOR P2P FUNCTIONALITY.
 * </b>
 **/
public InternalDistributedMember(String i, int p, Version version, NetMember netMember) throws UnknownHostException {
 netMbr = netMember;
 defaultToCurrentHost();
 this.vmKind = DistributionManager.NORMAL_DM_TYPE;
 this.versionObj = version;
}
origin: org.apache.geode/gemfire-core

/**
 * Create a InternalDistributedMember  referring to the current host (as defined by the given
 * address).<p>
 *
 * <b>
 * [bruce]THIS METHOD IS FOR TESTING ONLY.  DO NOT USE IT TO CREATE IDs FOR
 * USE IN THE PRODUCT.  IT DOES NOT PROPERLY INITIALIZE ATTRIBUTES NEEDED
 * FOR P2P FUNCTIONALITY.
 * </b>
 *
 * 
 * @param i
 *          the hostname, must be for the current host
 * @param p
 *          the membership listening port
 */
public InternalDistributedMember(InetAddress i, int p) {
 netMbr = MemberFactory.newNetMember(i, p);
 defaultToCurrentHost();
}
origin: io.snappydata/gemfire-core

/**
 * Create a InternalDistributedMember  referring to the current host (as defined by the given
 * address).<p>
 *
 * <b>
 * [bruce]THIS METHOD IS FOR TESTING ONLY.  DO NOT USE IT TO CREATE IDs FOR
 * USE IN THE PRODUCT.  IT DOES NOT PROPERLY INITIALIZE ATTRIBUTES NEEDED
 * FOR P2P FUNCTIONALITY.
 * </b>
 *
 * 
 * @param i
 *          the hostname, must be for the current host
 * @param p
 *          the membership listening port
 */
public InternalDistributedMember(InetAddress i, int p) {
 ipAddr = (JGroupMember)MemberFactory.newNetMember(i, p);
 defaultToCurrentHost();
}
origin: org.apache.geode/gemfire-core

/**
 * Create a InternalDistributedMember as defined by the given address.
 * <p>
 * 
 * <b>
 * [bruce]THIS METHOD IS FOR TESTING ONLY.  DO NOT USE IT TO CREATE IDs FOR
 * USE IN THE PRODUCT.  IT DOES NOT PROPERLY INITIALIZE ATTRIBUTES NEEDED
 * FOR P2P FUNCTIONALITY.
 * </b>
 * 
 * @param addr 
 *        address of the server
 * @param p
 *        the listening port of the server
 * @param isCurrentHost
 *        true if the given host refers to the current host (bridge and
 *        gateway use false to create a temporary id for the OTHER side of a
 *        connection)
 */
public InternalDistributedMember(InetAddress addr,
                 int p,
                 boolean isCurrentHost) {
 netMbr = MemberFactory.newNetMember(addr, p);
 if (isCurrentHost) {
  defaultToCurrentHost();
 }
}
origin: io.snappydata/gemfire-core

/**
 * Create a InternalDistributedMember as defined by the given address.
 * <p>
 * 
 * <b>
 * [bruce]THIS METHOD IS FOR TESTING ONLY.  DO NOT USE IT TO CREATE IDs FOR
 * USE IN THE PRODUCT.  IT DOES NOT PROPERLY INITIALIZE ATTRIBUTES NEEDED
 * FOR P2P FUNCTIONALITY.
 * </b>
 * 
 * @param addr 
 *        address of the server
 * @param p
 *        the listening port of the server
 * @param isCurrentHost
 *        true if the given host refers to the current host (bridge and
 *        gateway use false to create a temporary id for the OTHER side of a
 *        connection)
 */
public InternalDistributedMember(InetAddress addr,
                 int p,
                 boolean isCurrentHost) {
 ipAddr = (JGroupMember)MemberFactory.newNetMember(addr, p);
 if (isCurrentHost) {
  defaultToCurrentHost();
 }
}
origin: io.snappydata/gemfire-core

/**
 * Create a InternalDistributedMember referring to the current host (as defined by the given
 * string).<p>
 *
 * <b>
 * [bruce]THIS METHOD IS FOR TESTING ONLY.  DO NOT USE IT TO CREATE IDs FOR
 * USE IN THE PRODUCT.  IT DOES NOT PROPERLY INITIALIZE ATTRIBUTES NEEDED
 * FOR P2P FUNCTIONALITY.
 * </b>
 *
 * 
 * @param i
 *          the hostname, must be for the current host
 * @param p
 *          the membership listening port
 * @throws UnknownHostException if the given hostname cannot be resolved
 */
public InternalDistributedMember(String i, int p) throws UnknownHostException {
 ipAddr = (JGroupMember)MemberFactory.newNetMember(i, p);
 defaultToCurrentHost();
 this.vmKind = DistributionManager.NORMAL_DM_TYPE;
 GFJGBasicAdapter.insertDefaultGemFireAttributes(ipAddr.getAddress());
}
origin: io.snappydata/gemfire-core

/**
 * Create a InternalDistributedMember referring to the current host
 * (as defined by the given string) with additional info including optional
 * connection name and an optional unique string. Currently these two
 * optional fields (and this constructor) are only used by the
 * LonerDistributionManager.<p>
 *
 * < b>
 * [bruce]DO NOT USE THIS METHOD TO CREATE ANYTHING OTHER THAN A LONER ID
 * WITHOUT TALKING TO ME FIRST.  IT DOES NOT PROPERLY INITIALIZE THE ID.
 * </b>
 *
 * @param i
 *          the hostname, must be for the current host
 * @param p
 *          the membership listening port
 * @param n
 *          gemfire properties connection name
 * @param u
 *          unique string used make the member more unique
 * @throws UnknownHostException if the given hostname cannot be resolved
 */
public InternalDistributedMember(String i, int p, String n, String u) throws UnknownHostException {
 ipAddr = (JGroupMember)MemberFactory.newNetMember(i, p);
 defaultToCurrentHost();
 GFJGBasicAdapter.insertDefaultGemFireAttributes(ipAddr.getAddress());
 this.name = n;
 this.uniqueTag = u;
}
origin: org.apache.geode/gemfire-core

InetAddress addr = SocketCreator.toInetAddress(host);
netMbr = MemberFactory.newNetMember(addr, p, false, true, Version.CURRENT_ORDINAL, mattr);
defaultToCurrentHost();
this.name = n;
this.uniqueTag = u;
com.gemstone.gemfire.distributed.internal.membershipInternalDistributedMemberdefaultToCurrentHost

Popular methods of InternalDistributedMember

  • <init>
    Construct a InternalDistributedMember. All fields are specified. This, and the following constructor
  • equals
  • toString
  • getHost
  • getId
  • getName
    Returns the name of this member's distributed system connection or null if no name was specified.
  • getPort
    Return the underlying port (membership port)
  • getRoles
    Returns an unmodifiable Set of this member's Roles.
  • getVmKind
    [GemStone] Returns the kind of VM that hosts the distribution manager with this address.
  • hashCode
  • getIpAddress
    Return the underlying host address
  • getProcessId
  • getIpAddress,
  • getProcessId,
  • getVersionObject,
  • fromData,
  • getDirectChannelPort,
  • getGroups,
  • getNetMember,
  • getVmViewId,
  • toData,
  • _readEssentialData

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • requestLocationUpdates (LocationManager)
  • getResourceAsStream (ClassLoader)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • JFileChooser (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now