Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

ReplicationPolicy.getGatewaysPolicy() method does not exist anymore (Migration from XAP 10.2.1 to 12.3.0))

In this new version there is a method that we were using for WAN Gateway Replication that does not exist anymore.

Class: com.j_spaces.core.cluster.ReplicationPolicy Method: getGatewaysPolicy()

Code that is failing for us:

replicationPolicy.getGatewaysPolicy().getLocalSiteName()
replicationPolicy.getGatewaysPolicy().getDefaultGatewayPolicy().getMaxRedoLogCapacity()
replicationPolicy.getGatewaysPolicy().getGatewayPolicies()

asked 2018-06-11 06:57:02 -0500

jkairos gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

Hi,

As part of the refactoring we did for supporting open source version we moved this methods to: com.gigaspaces.internal.cluster.node.impl.gateway.GatewaysPolicy

Regards,

Yuval

answered 2018-06-13 02:27:58 -0500

Yuval gravatar image
edit flag offensive delete link more

Comments

Thanks Yuval,

In our code (we were using the premium version and now migrating to the commercial version in 12.3.0) we accessed the GatewaysPolicy object from ReplicationPolicy, see the code below:

replicationPolicy.getGatewaysPolicy().getLocalSiteName() replicationPolicy.getGatewaysPolicy().getDefaultGatewayPolicy().getMaxRedoLogCapacity() replicationPolicy.getGatewaysPolicy().getGatewayPolicies()

However there is no getGatewaysPolicy() anymore. How could we get a reference of GatewaysPolicy object from the ReplicationPolicy class?

jkairos gravatar imagejkairos ( 2018-06-13 08:54:11 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2018-06-11 06:57:02 -0500

Seen: 70 times

Last updated: Jun 13