class CacheRebalancingEvent extends EventAdapter {
    /** */
    private static final long serialVersionUID = 0L;

    /** Cache name. */
    private String cacheName;

    /** Partition for the event. */
    private int part;

    /** Discovery node. */
    private ClusterNode discoNode;

    /** Discovery event type. */
    private int discoEvtType;

    /** Discovery event time. */
    private long discoTs;

    /**
     * Constructs cache event.
     *
     * @param cacheName Cache name.
     * @param node Event node.
     * @param msg Event message.
     * @param type Event type.
     * @param part Partition for the event (usually the partition the key belongs to).
     * @param discoNode Node that triggered this rebalancing event.
     * @param discoEvtType Discovery event type that triggered this rebalancing event.
     * @param discoTs Timestamp of discovery event that triggered this rebalancing event.
     */
    public CacheRebalancingEvent(
        String cacheName,
        ClusterNode node,
        String msg,
        int type,
        int part,
        ClusterNode discoNode,
        int discoEvtType,
        long discoTs
    ) {
        super(node, msg, type);
        this.cacheName = cacheName;
        this.part = part;
        this.discoNode = discoNode;
        this.discoEvtType = discoEvtType;
        this.discoTs = discoTs;
    }

    /**
     * Gets cache name.
     *
     * @return Cache name.
     */
    public String cacheName() {
        return cacheName;
    }

    /**
     * Gets partition for the event.
     *
     * @return Partition for the event.
     */
    public int partition() {
        return part;
    }

    /**
     * Gets shadow of the node that triggered this rebalancing event.
     *
     * @return Shadow of the node that triggered this rebalancing event.
     */
    public ClusterNode discoveryNode() {
        return discoNode;
    }

    /**
     * Gets type of discovery event that triggered this rebalancing event.
     *
     * @return Type of discovery event that triggered this rebalancing event.
     * @see DiscoveryEvent#type()
     */
    public int discoveryEventType() {
        return discoEvtType;
    }

    /**
     * Gets name of discovery event that triggered this rebalancing event.
     *
     * @return Name of discovery event that triggered this rebalancing event.
     * @see DiscoveryEvent#name()
     */
    public String discoveryEventName() {
        return U.gridEventName(discoEvtType);
    }

    /**
     * Gets timestamp of discovery event that caused this rebalancing event.
     *
     * @return Timestamp of discovery event that caused this rebalancing event.
     */
    public long discoveryTimestamp() {
        return discoTs;
    }

    /** {@inheritDoc} */
    @Override public String shortDisplay() {<FILL_FUNCTION_BODY>}

    /** {@inheritDoc} */
    @Override public String toString() {
        return S.toString(CacheRebalancingEvent.class, this,
            "discoEvtName", discoveryEventName(),
            "nodeId8", U.id8(node().id()),
            "msg", message(),
            "type", name(),
            "tstamp", timestamp());
    }
}

        return name() + ": cache=" + CU.mask(cacheName) + ", cause=" +
            discoveryEventName();
    
<methods>public void <init>() ,public void <init>(org.apache.ignite.cluster.ClusterNode, java.lang.String, int) ,public int compareTo(org.apache.ignite.events.Event) ,public boolean equals(java.lang.Object) ,public int hashCode() ,public org.apache.ignite.lang.IgniteUuid id() ,public long localOrder() ,public void message(java.lang.String) ,public java.lang.String message() ,public java.lang.String name() ,public void node(org.apache.ignite.cluster.ClusterNode) ,public org.apache.ignite.cluster.ClusterNode node() ,public java.lang.String shortDisplay() ,public long timestamp() ,public java.lang.String toString() ,public void type(int) ,public int type() <variables>private final org.apache.ignite.lang.IgniteUuid id,private long locId,private java.lang.String msg,private org.apache.ignite.cluster.ClusterNode node,private static final long serialVersionUID,private final long tstamp,private int type