Class ApplicationDescriptor

java.lang.Object
com.zeroc.IceGrid.ApplicationDescriptor
All Implemented Interfaces:
Serializable, Cloneable

public final class ApplicationDescriptor extends Object implements Cloneable, Serializable
Describes an application.
See Also:
  • Field Details

  • Constructor Details

    • ApplicationDescriptor

      public ApplicationDescriptor()
      Constructs a ApplicationDescriptor.
    • ApplicationDescriptor

      public ApplicationDescriptor(String name, Map<String,String> variables, List<ReplicaGroupDescriptor> replicaGroups, Map<String,TemplateDescriptor> serverTemplates, Map<String,TemplateDescriptor> serviceTemplates, Map<String,NodeDescriptor> nodes, DistributionDescriptor distrib, String description, Map<String,PropertySetDescriptor> propertySets)
      Constructs a ApplicationDescriptor with values for all its fields.
      Parameters:
      name - The application name.
      variables - The variables defined in the application descriptor.
      replicaGroups - The replica groups.
      serverTemplates - The server templates.
      serviceTemplates - The service templates.
      nodes - The node descriptors.
      distrib - The application distribution.
      description - The description of this application.
      propertySets - Property set descriptors.
  • Method Details

    • equals

      public boolean equals(Object rhs)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public ApplicationDescriptor clone()
      Overrides:
      clone in class Object
    • ice_writeMembers

      public void ice_writeMembers(OutputStream ostr)
      Marshals this object's fields into an output stream.
      Parameters:
      ostr - the output stream
    • ice_readMembers

      public void ice_readMembers(InputStream istr)
      Unmarshals and sets this object's fields from an input stream.
      Parameters:
      istr - the input stream
    • ice_write

      public static void ice_write(OutputStream ostr, ApplicationDescriptor v)
      Marshals an ApplicationDescriptor into an output stream.
      Parameters:
      ostr - the output stream
      v - the ApplicationDescriptor to marshal; can be null
    • ice_read

      public static ApplicationDescriptor ice_read(InputStream istr)
      Unmarshals an ApplicationDescriptor from an input stream.
      Parameters:
      istr - the input stream
      Returns:
      the unmarshaled ApplicationDescriptor
    • ice_write

      public static void ice_write(OutputStream ostr, int tag, Optional<ApplicationDescriptor> v)
      Marshals an optional ApplicationDescriptor into an output stream.
      Parameters:
      ostr - the output stream
      tag - the tag
      v - the value to marshal
    • ice_write

      public static void ice_write(OutputStream ostr, int tag, ApplicationDescriptor v)
      Marshals an optional ApplicationDescriptor into an output stream.
      Parameters:
      ostr - the output stream
      tag - the tag
      v - the value to marshal
    • ice_read

      public static Optional<ApplicationDescriptor> ice_read(InputStream istr, int tag)
      Unmarshals an optional ApplicationDescriptor from an input stream.
      Parameters:
      istr - the input stream
      tag - the tag
      Returns:
      the unmarshaled value