| | |
| | | } |
| | | |
| | | private Type type; |
| | | private int replicationPort; |
| | | private AuthenticationData authenticationData; |
| | | |
| | | /** |
| | |
| | | { |
| | | case IN_EXISTING_TOPOLOGY: |
| | | authenticationData = (AuthenticationData)args[0]; |
| | | replicationPort = (Integer)args[1]; |
| | | break; |
| | | |
| | | default: |
| | |
| | | if ((args != null) && (args.length > 0)) |
| | | { |
| | | authenticationData = (AuthenticationData)args[0]; |
| | | replicationPort = (Integer)args[1]; |
| | | } |
| | | } |
| | | } |
| | |
| | | { |
| | | return authenticationData; |
| | | } |
| | | |
| | | /** |
| | | * Returns the port that is going to be used for replication. |
| | | * |
| | | * @return the replication that must be used to configure replication. |
| | | */ |
| | | public int getReplicationPort() |
| | | { |
| | | return replicationPort; |
| | | } |
| | | } |
| | | |