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

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

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

origin: org.apache.geode/gemfire-core

/**
 * update the loner port with an integer that may be more unique than the 
 * default port (zero).  This updates the ID in place and establishes new
 * default settings for the manufacture of new IDs.
 * 
 * @param newPort the new port to use
 */
public void updateLonerPort(int newPort) {
 this.logger.config(LocalizedStrings.LonerDistributionmanager_CHANGING_PORT_FROM_TO,
   new Object[]{this.lonerPort, newPort});
 this.lonerPort = newPort;
 this.getId().setPort(this.lonerPort);
}
public boolean isCurrentMember(InternalDistributedMember p_id) {
origin: io.snappydata/gemfire-core

/**
 * update the loner port with an integer that may be more unique than the 
 * default port (zero).  This updates the ID in place and establishes new
 * default settings for the manufacture of new IDs.
 * 
 * @param newPort the new port to use
 */
public void updateLonerPort(int newPort) {
 this.logger.config(LocalizedStrings.LonerDistributionmanager_CHANGING_PORT_FROM_TO,
   new Object[]{this.lonerPort, newPort});
 this.lonerPort = newPort;
 MemberAttributes.setDefaults(lonerPort,
   MemberAttributes.DEFAULT.getVmPid(),
   DistributionManager.LONER_DM_TYPE,
   -1,
   MemberAttributes.DEFAULT.getName(),
   MemberAttributes.DEFAULT.getGroups(), MemberAttributes.DEFAULT.getDurableClientAttributes());
 this.getId().setPort(this.lonerPort);
}
public boolean isCurrentMember(InternalDistributedMember p_id) {
com.gemstone.gemfire.distributed.internal.membershipInternalDistributedMembersetPort

Javadoc

Set the membership port. This is done in loner systems using client/server connection information to help form a unique ID

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,
  • Best IntelliJ 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