Package org.hpccsystems.dfs.cluster
Class NullRemapper
- java.lang.Object
-
- org.hpccsystems.dfs.cluster.ClusterRemapper
-
- org.hpccsystems.dfs.cluster.NullRemapper
-
public class NullRemapper extends ClusterRemapper
A no action re-map of the address. Does provide the port information.
-
-
Field Summary
-
Fields inherited from class org.hpccsystems.dfs.cluster.ClusterRemapper
DEFAULT_LEGACY_CLEAR_PORT, DEFAULT_LEGACY_SSL_PORT, DEFAULT_ROWSERVICE_PORT, DEFAULT_ROWSERVICE_USES_SSL, nodes
-
-
Constructor Summary
Constructors Constructor Description NullRemapper(RemapInfo ri, DFUFileAccessInfoWrapper fileaccessinfo)
Instantiates a new null remapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getUsesSSLConnection(DFUPartWrapper fpi)
Indicates if the target rowservice communicates over SSL.String[]
reviseIPs(String[] hosts)
The optionally revised array of hosts.String[]
reviseIPs(DFUFileCopyWrapper[] dfuFileCopies)
The optionally revised array of file part copy IPs.int
revisePort(DFUPartWrapper fpi)
The communications port number.-
Methods inherited from class org.hpccsystems.dfs.cluster.ClusterRemapper
makeMapper
-
-
-
-
Constructor Detail
-
NullRemapper
public NullRemapper(RemapInfo ri, DFUFileAccessInfoWrapper fileaccessinfo) throws HpccFileException
Instantiates a new null remapper.- Parameters:
ri
- the rifileaccessinfo
- the fileaccessinfo- Throws:
HpccFileException
- the hpcc file exception
-
-
Method Detail
-
reviseIPs
public String[] reviseIPs(DFUFileCopyWrapper[] dfuFileCopies) throws HpccFileException
Description copied from class:ClusterRemapper
The optionally revised array of file part copy IPs.- Specified by:
reviseIPs
in classClusterRemapper
- Parameters:
dfuFileCopies
- the dfu file copies- Returns:
- an IP address as a string
- Throws:
HpccFileException
- the hpcc file exception
-
reviseIPs
public String[] reviseIPs(String[] hosts) throws HpccFileException
Description copied from class:ClusterRemapper
The optionally revised array of hosts.- Specified by:
reviseIPs
in classClusterRemapper
- Parameters:
hosts
- information- Returns:
- Revised IP address as strings
- Throws:
HpccFileException
- the hpcc file exception
-
revisePort
public int revisePort(DFUPartWrapper fpi)
Description copied from class:ClusterRemapper
The communications port number.- Specified by:
revisePort
in classClusterRemapper
- Parameters:
fpi
- the file part information- Returns:
- the port number
-
getUsesSSLConnection
public boolean getUsesSSLConnection(DFUPartWrapper fpi)
Description copied from class:ClusterRemapper
Indicates if the target rowservice communicates over SSL.- Specified by:
getUsesSSLConnection
in classClusterRemapper
- Parameters:
fpi
- the file part information- Returns:
- the port number
-
-