org.apache.geode.management.membership

## Class UniversalMembershipListenerAdapter.AdaptedMembershipEvent

- java.lang.Object
- - org.apache.geode.management.membership.UniversalMembershipListenerAdapter.AdaptedMembershipEvent

- All Implemented Interfaces:
    MembershipEvent
  Enclosing class:
    UniversalMembershipListenerAdapter

      public static class UniversalMembershipListenerAdapter.AdaptedMembershipEvent
      extends java.lang.Object
      implements MembershipEvent

  Adapts ClientMembershipEvent to look like a MembershipEvent

- - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `AdaptedMembershipEvent(ClientMembershipEvent event)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(java.lang.Object other)`
    `DistributedMember` | `getDistributedMember()` Returns the `DistributedMember` that this event originated in.
    `java.lang.String` | `getMemberId()` Returns the distributed member as a String.
    `int` | `hashCode()`
    `boolean` | `isClient()` Returns true if the member is a client to a CacheServer hosted by this process.
    `java.lang.String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### AdaptedMembershipEvent

          protected AdaptedMembershipEvent(ClientMembershipEvent event)

  - ### Method Detail

    - #### isClient

          public boolean isClient()

      Returns true if the member is a client to a CacheServer hosted by this process. Returns false if the member is a CacheServer that this process is connected to.

    - #### getMemberId

          public java.lang.String getMemberId()

      Description copied from interface: `MembershipEvent`
      Returns the distributed member as a String.
      Specified by:
        `getMemberId` in interface `MembershipEvent`

    - #### getDistributedMember

          public DistributedMember getDistributedMember()

      Description copied from interface: `MembershipEvent`
      Returns the `DistributedMember` that this event originated in.
      Specified by:
        `getDistributedMember` in interface `MembershipEvent`
      Returns:
        the member that performed the operation that originated this event.

    - #### equals

          public boolean equals(java.lang.Object other)

      Overrides:
        `equals` in class `java.lang.Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `java.lang.Object`

    - #### toString

          public java.lang.String toString()

      Overrides:
        `toString` in class `java.lang.Object`