Package com.highdeal.admin.hci
Class ServiceInfo.ServiceAvailability
java.lang.Object
com.highdeal.admin.hci.ServiceInfo.ServiceAvailability
- Enclosing class:
- ServiceInfo
This
Java class-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThisenumerationlists all the types of service availability: MANDATORY, OPTIONAL, or FORBIDDEN. -
Constructor Summary
ConstructorsConstructorDescriptionServiceAvailability(InstanceType instance, ServiceInfo.ServiceAvailability.ServiceAvailabilityType availability) -
Method Summary
Modifier and TypeMethodDescriptionstatic final ServiceInfo.ServiceAvailability[]Generates an array of size that equals InstanceType enumeration, filled in with the default availability.static final ServiceInfo.ServiceAvailability[]updateArray(ServiceInfo.ServiceAvailability[] availabilities, InstanceType[] instances, ServiceInfo.ServiceAvailability.ServiceAvailabilityType type) Updates availabilities with the new type for the specified array of instances.
-
Constructor Details
-
ServiceAvailability
public ServiceAvailability(InstanceType instance, ServiceInfo.ServiceAvailability.ServiceAvailabilityType availability)
-
-
Method Details
-
getInstanceType
-
getAvailability
-
generateArray
public static final ServiceInfo.ServiceAvailability[] generateArray(ServiceInfo.ServiceAvailability.ServiceAvailabilityType defaultType) Generates an array of size that equals InstanceType enumeration, filled in with the default availability.- Parameters:
defaultType- The default availability- Returns:
- An array filled with the default availability
-
updateArray
public static final ServiceInfo.ServiceAvailability[] updateArray(ServiceInfo.ServiceAvailability[] availabilities, InstanceType[] instances, ServiceInfo.ServiceAvailability.ServiceAvailabilityType type) Updates availabilities with the new type for the specified array of instances.- Parameters:
availabilities- The current array of availabilitiesinstances- The array of instances to updatetype- The type that must be used during update- Returns:
- The array updated with type
-