Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.1.0

E22843-01


com.tangosol.net.events
Interface PartitionedServiceDispatcher.TransferEvent

All Superinterfaces:
Event
Enclosing interface:
PartitionedServiceDispatcher

public static interface PartitionedServiceDispatcher.TransferEvent
extends Event

A PartitionedServiceDispatcher.TransferEvent captures information concerning the transfer of a partition for a storage enabled member. Transfer events are raised against the set of BinaryEntrys that are being transferred.

Note: PartitionedServiceDispatcher.TransferEvents are dispatched to interceptors while holding a lock on the partition for being transferred, blocking any operations for the partition.


Nested Class Summary
static class PartitionedServiceDispatcher.TransferEvent.Type
          The PartitionedServiceDispatcher.TransferEvent types.

 

Method Summary
 java.lang.String getCacheName()
          Return the cache name associated with this event.
 java.util.Set getEntrySet()
          Return an immutable Set of read-only BinaryEntrys associated with this PartitionedServiceDispatcher.TransferEvent.
 Member getLocalMember()
          Return the local Member associated with this transfer operation.
 int getPartitionId()
          Return the ID of the partition being transferred.
 PartitionedService getPartitionService()
          Return the PartitionedService on which this PartitionedServiceDispatcher.TransferEvent occurred.
 Member getRemoteMember()
          Return the remote Member associated with this transfer operation.

 

Methods inherited from interface com.tangosol.net.events.Event
getType, nextInterceptor

 

Method Detail

getPartitionId

int getPartitionId()
Return the ID of the partition being transferred.
Returns:
the ID of the partition being transferred

getPartitionService

PartitionedService getPartitionService()
Return the PartitionedService on which this PartitionedServiceDispatcher.TransferEvent occurred.
Returns:
the service on which this event occurred

getLocalMember

Member getLocalMember()
Return the local Member associated with this transfer operation. For the DEPARTING event this is the member the entries are being transferred from. For the ARRIVED event, this is the member that is receiving the entries.
Returns:
the local Member associated with this event

getRemoteMember

Member getRemoteMember()
Return the remote Member associated with this transfer operation. For the DEPARTING event this is the member the entries are being transferred to. For the ARRIVED event, this is the member that the entries are being transferred from.

In the case the ARRIVED event, the returned member could be null, indicating a "partition restore" operation.

Returns:
the remote Member associated with this event

getCacheName

java.lang.String getCacheName()
Return the cache name associated with this event.
Returns:
the cache name associated with this event

getEntrySet

java.util.Set getEntrySet()
Return an immutable Set of read-only BinaryEntrys associated with this PartitionedServiceDispatcher.TransferEvent.
Returns:
the Set of entries associated with this event

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.1.0

E22843-01


Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.