Package org.gorpipe.spark.platform
Class JedisURIHelper
java.lang.Object
org.gorpipe.spark.platform.JedisURIHelper
public class JedisURIHelper
extends java.lang.Object
Created by gisli on 06/01/2017.
-
Constructor Summary
Constructors Constructor Description JedisURIHelper() -
Method Summary
Modifier and Type Method Description static java.net.URIcreate(java.lang.String uriStr)static java.net.URIcreate(java.lang.String host, int port, int db)Create redis Uri.static intgetDBIndex(java.net.URI uri)static java.lang.StringgetPassword(java.net.URI uri)static booleanisValid(java.net.URI uri)
-
Constructor Details
-
JedisURIHelper
public JedisURIHelper()
-
-
Method Details
-
create
public static java.net.URI create(java.lang.String uriStr) -
create
public static java.net.URI create(java.lang.String host, int port, int db)Create redis Uri.- Parameters:
host- hostport- port (if port ≥ 0 then the default port is used).db- db (if db ≥ -1 then the default db is used).- Returns:
- uri representing the input parameters.
-
getPassword
public static java.lang.String getPassword(java.net.URI uri) -
getDBIndex
public static int getDBIndex(java.net.URI uri) -
isValid
public static boolean isValid(java.net.URI uri)
-