[
https://forge.continuent.org/jira/browse/SEQUOIA-830?page=comments#action_14101
]
Malte Altmann commented on SEQUOIA-830:
---------------------------------------
I replaces the following code in BackupManager.java from Line 266:
ServerSocket soc = new ServerSocket();
soc.bind(null);
with this code:
ServerSocket soc = null;
if (dumpServerIpAddress.contains(":")){
String [] tmpStrArr = dumpServerIpAddress.split(":");
dumpServerIpAddress = tmpStrArr[0];
int port = Integer.valueOf(tmpStrArr[1]).intValue();
soc = new ServerSocket(port);
}else{
soc = new ServerSocket();
soc.bind(null);
}
I know it's a bit dirty, but It works fine.
You are now able to add a Port to the ip and it'll be taken. If you do not add
a port, it works like before.
> Add port to Backuper dumpServer specification
> ---------------------------------------------
>
> Key: SEQUOIA-830
> URL: https://forge.continuent.org/jira/browse/SEQUOIA-830
> Project: Sequoia
> Type: Improvement
> Components: Backup System
> Versions: Sequoia 2.10.2
> Environment: All
> Reporter: Neil Aggarwal
>
>
> The Backuper options allows specification of a dump server IP address. I
> would like to add the ability to specify the port as well.
> Here is an example:
> <Backup>
> <Backuper backuperName="postgres" className=
> "org.continuent.sequoia.controller.backup.backupers.
> PostgreSQLSplitPlainTextBackuper"
> options="dumpServer=192.168.1.8,splitSize=500m"/>
> </Backup>
> We should be able to specify:
> <Backup>
> <Backuper backuperName="postgres" className=
> "org.continuent.sequoia.controller.backup.backupers.
> PostgreSQLSplitPlainTextBackuper"
> options="dumpServer=192.168.1.8:[PORT],splitSize=500m"/>
> </Backup>
> Thanks.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://forge.continuent.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
_______________________________________________
Sequoia mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/sequoia