Package com.swiftmq.mgmt
Class Configuration
java.lang.Object
com.swiftmq.mgmt.Entity
com.swiftmq.mgmt.Configuration
- All Implemented Interfaces:
Dumpable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class com.swiftmq.mgmt.Entity
Entity.CloneableMap
-
Field Summary
FieldsFields inherited from class com.swiftmq.mgmt.Entity
factory, SET_COMMAND
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateMetaData
(Entity entity) Create a MetaData from an Entity.static Entity
createMetaEntity
(MetaData metaData) Creates an Entity from a MetaData object.int
Returns a unique dump id for this object.Returns the meta data.boolean
Returns whether this Swiftlet is an Extension Swiftlet.void
readContent
(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
(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 Details
-
ENV_ENTITY
- See Also:
-
META_ENTITY
- See Also:
-
-
Constructor Details
-
Configuration
Create a new Configuration. Used by the SwiftletManager.- Parameters:
metaData
- meta data object.
-
Configuration
public Configuration()
-
-
Method Details
-
createMetaEntity
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
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:
IOException
- if an error occurs
-
readContent
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:
IOException
- if an error occurs
-
createMetaData
Create a MetaData from an Entity. Internal use only.- Parameters:
entity
- entity.- Returns:
- meta data.
-
getMetaData
Returns the meta data. Internal use only.- Returns:
- meta data.
-
setMetaData
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.
-