private void validate ( ) { if ( host . isEmpty ( ) ) { throw new IllegalArgumentException ( "host cannot be null" ) ; } if ( catalog == null ) { throw new IllegalArgumentException ( "namespace cannot be null" ) ; } if ( table == null ) { throw new IllegalArgumentException ( "set cannot be null" ) ; } if ( portList . isEmpty ( ) ) { if ( port > 0 ) { port ( port ) ; } else { throw new IllegalArgumentException ( "port cannot be null" ) ; } } if ( host . size ( ) != portList . size ( ) ) { throw new IllegalArgumentException ( "Host and ports cardinality must be the same" ) ; } }
Validates connection parameters .