NewMasterEvent (Oracle - Berkeley DB Java Edition API)
Date: 2014-12-16

com.sleepycat.je.rep.monitor

## Class NewMasterEvent

- java.lang.Object
- - com.sleepycat.je.rep.monitor.MonitorChangeEvent
  - - com.sleepycat.je.rep.monitor.MemberChangeEvent
    - - com.sleepycat.je.rep.monitor.NewMasterEvent

-     public class NewMasterEvent
      extends MemberChangeEvent

  The event generated upon detecting a new Master. A new instance of this event is generated each time a new master is elected for the group.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `InetSocketAddress` | `getSocketAddress()` Returns the socket address associated with the new master
    `String` | `toString()`

    - ### Methods inherited from class com.sleepycat.je.rep.monitor.MemberChangeEvent

      `getMasterName`

    - ### Methods inherited from class com.sleepycat.je.rep.monitor.MonitorChangeEvent

      `getNodeName`

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

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

- - ### Method Detail

    - #### getSocketAddress

          public InetSocketAddress getSocketAddress()

      Returns the socket address associated with the new master

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright (c) 2004, 2014 Oracle and/or its affiliates. All rights reserved.