Search in sources :

Example 11 with UpdateAttributesProcessor

use of org.apache.geode.internal.cache.UpdateAttributesProcessor in project geode by apache.

the class GatewaySenderAdvisor method makeSecondary.

public void makeSecondary() {
    if (logger.isDebugEnabled()) {
        logger.debug("{}: Did not obtain the lock on {}. Starting as secondary gateway sender.", this.sender, this.lockToken);
    }
    // Set primary flag to false
    logger.info(LocalizedMessage.create(LocalizedStrings.SerialGatewaySenderImpl_0__STARTING_AS_SECONDARY_BECAUSE_PRIMARY_GATEWAY_SENDER_IS_AVAIALABLE_ON_MEMBER_2, new Object[] { this.sender.getId(), advisePrimaryGatewaySender() }));
    this.isPrimary = false;
    new UpdateAttributesProcessor(this.sender).distribute(false);
}
Also used : UpdateAttributesProcessor(org.apache.geode.internal.cache.UpdateAttributesProcessor)

Example 12 with UpdateAttributesProcessor

use of org.apache.geode.internal.cache.UpdateAttributesProcessor in project geode by apache.

the class GatewaySenderAdvisor method close.

@Override
public void close() {
    new UpdateAttributesProcessor(this.getAdvisee(), true).distribute(false);
    super.close();
}
Also used : UpdateAttributesProcessor(org.apache.geode.internal.cache.UpdateAttributesProcessor)

Aggregations

UpdateAttributesProcessor (org.apache.geode.internal.cache.UpdateAttributesProcessor)12 InternalDistributedSystem (org.apache.geode.distributed.internal.InternalDistributedSystem)6 AsyncEventListener (org.apache.geode.cache.asyncqueue.AsyncEventListener)2 RegionQueue (org.apache.geode.internal.cache.RegionQueue)2 AbstractGatewaySenderEventProcessor (org.apache.geode.internal.cache.wan.AbstractGatewaySenderEventProcessor)2 GatewaySenderConfigurationException (org.apache.geode.internal.cache.wan.GatewaySenderConfigurationException)2 IOException (java.io.IOException)1 List (java.util.List)1 CancelException (org.apache.geode.CancelException)1 GemFireIOException (org.apache.geode.GemFireIOException)1 ServerConnectivityException (org.apache.geode.cache.client.ServerConnectivityException)1 Connection (org.apache.geode.cache.client.internal.Connection)1 ConnectionDestroyedException (org.apache.geode.cache.client.internal.pooling.ConnectionDestroyedException)1 ServerLocation (org.apache.geode.distributed.internal.ServerLocation)1 ConcurrentParallelGatewaySenderEventProcessor (org.apache.geode.internal.cache.wan.parallel.ConcurrentParallelGatewaySenderEventProcessor)1 ConcurrentSerialGatewaySenderEventProcessor (org.apache.geode.internal.cache.wan.serial.ConcurrentSerialGatewaySenderEventProcessor)1 SerialGatewaySenderEventProcessor (org.apache.geode.internal.cache.wan.serial.SerialGatewaySenderEventProcessor)1 SerialGatewaySenderQueue (org.apache.geode.internal.cache.wan.serial.SerialGatewaySenderQueue)1 GemFireSecurityException (org.apache.geode.security.GemFireSecurityException)1