Class SpaceURLValidator

java.lang.Object
com.j_spaces.core.client.SpaceURLValidator

public class SpaceURLValidator extends Object
Copyright (c) 2010 GigaSpaces Technologies Ltd. All rights reserved The software source code is proprietary and confidential information of GigaSpaces. You may use the software source code solely under the terms and limitations of The license agreement granted to you by GigaSpaces.
  • Constructor Details

    • SpaceURLValidator

      public SpaceURLValidator()
  • Method Details

    • getClusterMembers

      public static String[] getClusterMembers(String totalMembers)
      Returns:
      String array which its first element is the number of primary members. If there is a second element in this array, it holds the backup members per each primary.
    • validateClusterSchemaAttributes

      public static void validateClusterSchemaAttributes(SpaceURL spaceURL) throws MalformedURLException
      Validates various SpaceURL combinations with the cluster_schema, total_members is and backup_id arguments.
      Throws:
      MalformedURLException - if fails in validation test
    • validate

      public static void validate(SpaceURL spaceURL) throws Exception
      The method is used for valid the space url before finding it from space
      Parameters:
      spaceURL - space url object
      Throws:
      SpaceURLValidationException - thrown if something went wrong
      Exception