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);
}
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();
}
Aggregations