com.highdeal.admin.hci
Class ServiceInfo.ServiceAvailability

java.lang.Object
  extended by com.highdeal.admin.hci.ServiceInfo.ServiceAvailability
Enclosing class:
ServiceInfo

public static final class ServiceInfo.ServiceAvailability
extends java.lang.Object

This Java class


Nested Class Summary
static class ServiceInfo.ServiceAvailability.ServiceAvailabilityType
          This enumeration lists all the types of service availability: MANDATORY, OPTIONAL, or FORBIDDEN.
 
Constructor Summary
ServiceInfo.ServiceAvailability(InstanceType instance, ServiceInfo.ServiceAvailability.ServiceAvailabilityType availability)
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceInfo.ServiceAvailability

public ServiceInfo.ServiceAvailability(InstanceType instance,
                                       ServiceInfo.ServiceAvailability.ServiceAvailabilityType availability)
Method Detail

getInstanceType

public InstanceType getInstanceType()

getAvailability

public ServiceInfo.ServiceAvailability.ServiceAvailabilityType 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 availabilities
instances - The array of instances to update
type - The type that must be used during update
Returns:
The array updated with type

Document Published: October 2015 (SAP CC 4.0 SP10 and Later)