Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## jet.server.api.cluster
Interface Member

All Superinterfaces:
  PropertiesCreator

All Known Subinterfaces:
  ReportMember

    public interface Member

extends PropertiesCreator

A interface which represent a member in a cluster.

Since:
  5.0

Method Summary
`boolean` | `equals(Member mem)` Deprecated. As of JREntServer version 5.1
`boolean` | `equals(java.lang.Object obj)` Compare member to specified member.
`int` | `getBackupPriority()` Get backup priority, If admin server was crashed, server that has highest priority in active backup servers will promote itself to admin server, priority value is a non-negative integer, "0" represent the highest priority, value "0" is reserved for admin server(if admin server was crashed, and before it restart, a backup server has promoted to admin server, original admin server has to start as backup server, it need a backup priority).
`java.lang.String` | `getHost()` Returns the host name or IP address of the member server.
`java.lang.String` | `getPort()` Returns the port number of the member server.
`java.lang.String` | `getServerName()` Returns the member server name.
`boolean` | `isAdmin()` Checks if this is admin server.
`boolean` | `isBackupAdmin()` Checks if this is backup admin server.

Methods inherited from interface jet.server.api.PropertiesCreator
`toProperties`

Method Detail

### equals

    boolean equals(java.lang.Object obj)

  Compare member to specified member. The result is true if and only if the argument is not null and is a Member object that has the same host and port as this member.

  Overrides:
    `equals` in class `java.lang.Object`
  Parameters:
    `obj` - the Member object to compare this Member.
  Returns:
    true if two member are equal, false otherwise.
  Since:

### equals

    boolean equals(Member mem)

  Deprecated. As of JREntServer version 5.1

  Compare member to specified member. The result is true if and only if the argument is not null and is a Member object that has the same host and port as this member.

  Parameters:
    `mem` - the Member object to compare this Member.
  Returns:
    true if two member are equal, false otherwise.
  Since:

### isAdmin

    boolean isAdmin()

  Checks if this is admin server.

  Returns:
    if this is admin server.
  Since:

### isBackupAdmin

    boolean isBackupAdmin()

  Checks if this is backup admin server.

  Returns:
    if this is backup admin server.
  Since:

### getBackupPriority

    int getBackupPriority()

  Get backup priority, If admin server was crashed, server that has highest priority in active backup servers will promote itself to admin server, priority value is a non-negative integer, "0" represent the highest priority, value "0" is reserved for admin server(if admin server was crashed, and before it restart, a backup server has promoted to admin server, original admin server has to start as backup server, it need a backup priority).

  Returns:
    backup priority, if server is not a backup server or admin server, return -1.

### getServerName

    java.lang.String getServerName()

  Returns the member server name.

  Returns:
    the member server name.
  Since:

### getHost

    java.lang.String getHost()

  Returns the host name or IP address of the member server.

  Returns:
    the host name or IP address of the member server.
  Since:

### getPort

    java.lang.String getPort()

  Returns the port number of the member server.

  Returns:
    the port number of the member server.
  Since:

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD