Package com.swiftmq.mgmt
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 thestartup()
method.- Author:
- IIT GmbH, Bremen/Germany, Copyright (c) 2000-2002, All Rights Reserved
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.swiftmq.mgmt.Entity
Entity.CloneableMap
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ENV_ENTITY
static java.lang.String
META_ENTITY
-
Fields inherited from class com.swiftmq.mgmt.Entity
factory, SET_COMMAND
-
-
Constructor Summary
Constructors Constructor Description Configuration()
Configuration(MetaData metaData)
Create a new Configuration.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MetaData
createMetaData(Entity entity)
Create a MetaData from an Entity.static Entity
createMetaEntity(MetaData metaData)
Creates an Entity from a MetaData object.int
getDumpId()
Returns a unique dump id for this object.MetaData
getMetaData()
Returns the meta data.boolean
isExtension()
Returns whether this Swiftlet is an Extension Swiftlet.void
readContent(java.io.DataInput in)
Read the content of this object from the stream.void
setExtension(boolean extension)
Sets whether this Swiftlet is an Extension Swiftlet.void
setMetaData(MetaData metaData)
Set the meta data.void
writeContent(java.io.DataOutput out)
Write the content of this object to the stream.-
Methods inherited from class com.swiftmq.mgmt.Entity
addCommand, addEntity, addEntityWatchListener, addProperty, commandIncluded, createCommands, createCopy, getCommandRegistry, getContext, getDescription, getDisplayContext, getDisplayName, getDynamicObject, getDynamicPropNames, getEntities, getEntity, getEntityAddListener, getEntityNames, getEntityRemoveListener, getIcon, getName, getParent, getProperties, getProperty, getState, getUserObject, isDynamic, isSetParent, isUpgrade, notifyEntityWatchListeners, quote, readDump, readDumpByteArray, readDumpDumpable, readDumpDumpableEntityMap, readDumpDumpablePropMap, readDumpStringArray, removeCommand, removeDynamicEntity, removeEntities, removeEntity, removeEntityWatchListener, removeProperty, setDynamic, setDynamicObject, setDynamicPropNames, setEntityAddListener, setEntityRemoveListener, setImageArray, setName, setParent, setState, setUpgrade, setUserObject, toJson, toString, writeDump, writeDump, writeDump, writeDump, writeDump
-
-
-
-
Field Detail
-
ENV_ENTITY
public static final java.lang.String ENV_ENTITY
- See Also:
- Constant Field Values
-
META_ENTITY
public static final java.lang.String META_ENTITY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Configuration
public Configuration(MetaData metaData)
Create a new Configuration. Used by the SwiftletManager.- Parameters:
metaData
- meta data object.
-
Configuration
public Configuration()
-
-
Method Detail
-
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.
-
writeContent
public void writeContent(java.io.DataOutput out) throws java.io.IOException
Description copied from interface:Dumpable
Write the content of this object to the stream.- Specified by:
writeContent
in interfaceDumpable
- Overrides:
writeContent
in classEntity
- Parameters:
out
- output stream- Throws:
java.io.IOException
- if an error occurs
-
readContent
public void readContent(java.io.DataInput in) throws java.io.IOException
Description copied from interface:Dumpable
Read the content of this object from the stream.- Specified by:
readContent
in interfaceDumpable
- Overrides:
readContent
in classEntity
- Parameters:
in
- input stream- Throws:
java.io.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.
-
-