public static final class ServiceInfo.ServiceAvailability
extends java.lang.Object
Java class| Modifier and Type | Class and Description |
|---|---|
static class |
ServiceInfo.ServiceAvailability.ServiceAvailabilityType
This
enumeration lists all the types of service availability: MANDATORY, OPTIONAL, or FORBIDDEN. |
| Constructor and Description |
|---|
ServiceAvailability(InstanceType instance,
ServiceInfo.ServiceAvailability.ServiceAvailabilityType availability) |
| Modifier and Type | Method and Description |
|---|---|
static ServiceInfo.ServiceAvailability[] |
generateArray(ServiceInfo.ServiceAvailability.ServiceAvailabilityType defaultType)
Generates an array of size that equals InstanceType enumeration, filled in with the default availability.
|
ServiceInfo.ServiceAvailability.ServiceAvailabilityType |
getAvailability() |
InstanceType |
getInstanceType() |
static ServiceInfo.ServiceAvailability[] |
updateArray(ServiceInfo.ServiceAvailability[] availabilities,
InstanceType[] instances,
ServiceInfo.ServiceAvailability.ServiceAvailabilityType type)
Updates availabilities with the new type for the specified array of instances.
|
public ServiceAvailability(InstanceType instance, ServiceInfo.ServiceAvailability.ServiceAvailabilityType availability)
public InstanceType getInstanceType()
public ServiceInfo.ServiceAvailability.ServiceAvailabilityType getAvailability()
public static final ServiceInfo.ServiceAvailability[] generateArray(ServiceInfo.ServiceAvailability.ServiceAvailabilityType defaultType)
defaultType - The default availabilitypublic static final ServiceInfo.ServiceAvailability[] updateArray(ServiceInfo.ServiceAvailability[] availabilities, InstanceType[] instances, ServiceInfo.ServiceAvailability.ServiceAvailabilityType type)
availabilities - The current array of availabilitiesinstances - The array of instances to updatetype - The type that must be used during update