Package com.j_spaces.core.client
Class SpaceURLValidator
java.lang.Object
com.j_spaces.core.client.SpaceURLValidator
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String[]getClusterMembers(String totalMembers) static voidThe method is used for valid the space url before finding it from spacestatic voidvalidateClusterSchemaAttributes(SpaceURL spaceURL) Validates various SpaceURL combinations with the cluster_schema, total_members is and backup_id arguments.
-
Constructor Details
-
SpaceURLValidator
public SpaceURLValidator()
-
-
Method Details
-
getClusterMembers
- 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
Validates various SpaceURL combinations with the cluster_schema, total_members is and backup_id arguments.- Throws:
MalformedURLException- if fails in validation test
-
validate
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 wrongException
-