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.URI create​(java.lang.String uriStr)  
    static java.net.URI create​(java.lang.String host, int port, int db)
    Create redis Uri.
    static int getDBIndex​(java.net.URI uri)  
    static java.lang.String getPassword​(java.net.URI uri)  
    static boolean isValid​(java.net.URI uri)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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 - host
      port - 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)