Class Configuration

java.lang.Object
com.swiftmq.mgmt.Entity
com.swiftmq.mgmt.Configuration
All Implemented Interfaces:
Dumpable

public class Configuration extends Entity
A Configuration that extends Entity and contains the complete configuration of a single Swiftlet. That is, every defined Entities, a "usage" Entity if configured, and an Entity with name ".metadata" which contains the meta data of the Swiftlet. The Configuration is filled by the SwiftletManager and passed to the Swiftlet as a parameter to the startup() method.
Author:
IIT GmbH, Bremen/Germany, Copyright (c) 2000-2002, All Rights Reserved
  • Field Details

  • Constructor Details

    • Configuration

      public Configuration(MetaData metaData)
      Create a new Configuration. Used by the SwiftletManager.
      Parameters:
      metaData - meta data object.
    • Configuration

      public Configuration()
  • Method Details

    • createMetaEntity

      public static Entity createMetaEntity(MetaData metaData)
      Creates an Entity from a MetaData object. Internal use only.
      Parameters:
      metaData - meta data.
      Returns:
      entity.
    • getDumpId

      public int getDumpId()
      Description copied from interface: Dumpable
      Returns a unique dump id for this object.
      Specified by:
      getDumpId in interface Dumpable
      Overrides:
      getDumpId in class Entity
      Returns:
      unique dump id
    • writeContent

      public void writeContent(DataOutput out) throws IOException
      Description copied from interface: Dumpable
      Write the content of this object to the stream.
      Specified by:
      writeContent in interface Dumpable
      Overrides:
      writeContent in class Entity
      Parameters:
      out - output stream
      Throws:
      IOException - if an error occurs
    • readContent

      public void readContent(DataInput in) throws IOException
      Description copied from interface: Dumpable
      Read the content of this object from the stream.
      Specified by:
      readContent in interface Dumpable
      Overrides:
      readContent in class Entity
      Parameters:
      in - input stream
      Throws:
      IOException - if an error occurs
    • createMetaData

      public MetaData createMetaData(Entity entity)
      Create a MetaData from an Entity. Internal use only.
      Parameters:
      entity - entity.
      Returns:
      meta data.
    • getMetaData

      public MetaData getMetaData()
      Returns the meta data. Internal use only.
      Returns:
      meta data.
    • setMetaData

      public void setMetaData(MetaData metaData)
      Set the meta data. Internal use only.
      Parameters:
      metaData - meta data.
    • isExtension

      public boolean isExtension()
      Returns whether this Swiftlet is an Extension Swiftlet. Internal use only.
      Returns:
      true/false.
    • setExtension

      public void setExtension(boolean extension)
      Sets whether this Swiftlet is an Extension Swiftlet. Internal use only.
      Parameters:
      extension - true/false.