|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflex.management.ManageableComponent
flex.messaging.Destination
public class Destination
The Destination class is a source and sink for messages sent through
a service destination and uses an adapter to process messages.
| Field Summary | |
|---|---|
static String |
LOG_CATEGORY
Default log category for Destination. |
| Constructor Summary | |
|---|---|
Destination()
Constructs an unmanaged Destination instance. |
|
Destination(boolean enableManagement)
Constructs a Destination with the indicated management. |
|
| Method Summary | |
|---|---|
void |
addChannel(String id)
Adds a channel to the list of channels known by the Destination. |
void |
addExtraProperty(String name,
Object value)
Method for setting an extra property for the destination at runtime. |
ServiceAdapter |
createAdapter(String id)
Creates a ServiceAdapter instance, sets its id, sets it manageable
if the Destination that created it is manageable,
and set its Destination to the Destination that
created it. |
ConfigMap |
describeDestination()
Returns a ConfigMap of destination properties that the client
needs. |
ServiceAdapter |
getAdapter()
Returns the ServiceAdapter for the Destination. |
List |
getChannels()
Returns the list of channel ids of the Destination. |
Object |
getExtraProperty(String name)
Method for getting an extra property at runtime. |
NetworkSettings |
getNetworkSettings()
Get the NetworkSettings of the Destination. |
SecurityConstraint |
getSecurityConstraint()
Returns the SecurityConstraint of the Destination. |
Service |
getService()
Returns the Service managing this Destination. |
String |
getServiceType()
Returns the Java class name for the Service managing this
Destination. |
void |
initialize(String id,
ConfigMap properties)
Initializes the Destination with the properties. |
boolean |
isBackendShared()
The destination may be not clustered at all, may be clustered for channel failover and destination sharing, or it may be clustered for channel failover and also have a common backend, such as a common database or backend clustered JMS topic. |
boolean |
isClustered()
The destination may be not clustered at all, may be clustered for channel failover only, or it may be clustered for channel failover and also have shared back ends. |
boolean |
removeChannel(String id)
Removes the channel from the list of channels for the Destination. |
void |
setAdapter(ServiceAdapter adapter)
Sets the ServiceAdapter of the Destination. |
void |
setChannels(List ids)
Sets the channel list of the Destination. |
void |
setId(String id)
Sets the id of the Destination. |
void |
setNetworkSettings(NetworkSettings networkSettings)
Set the NetworkSettings of the Destination. |
void |
setSecurityConstraint(SecurityConstraint securityConstraint)
Sets the SecurityConstraint of the Destination. |
void |
setSecurityConstraint(String ref)
Sets the SecurityConstraint reference of the Destination. |
void |
setService(Service service)
Sets the Service managing this Destination. |
void |
start()
Starts the destination if its associated Service is started
and if the destination is not already running. |
void |
stop()
The default implementation of this method stops all of the adapters of the destination. |
| Methods inherited from class flex.management.ManageableComponent |
|---|
getControl, getId, getParent, isManaged, isStarted, isValid, setControl, setManaged, setParent |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String LOG_CATEGORY
Destination.
| Constructor Detail |
|---|
public Destination()
Destination instance.
public Destination(boolean enableManagement)
Destination with the indicated management.
enableManagement - true if the Destination
is manageable; otherwise false.| Method Detail |
|---|
public void initialize(String id,
ConfigMap properties)
Destination with the properties.
If subclasses override, they must call super.initialize().
initialize in interface FlexConfigurableinitialize in class ManageableComponentid - The id of the destination.properties - Properties for the destination.public void start()
Service is started
and if the destination is not already running. The default implementation
of this method starts the adapter of the destination. If subclasses
override, they must call super.start().
start in interface FlexComponentstart in class ManageableComponentpublic void stop()
super.stop().
stop in interface FlexComponentstop in class ManageableComponentpublic ServiceAdapter getAdapter()
ServiceAdapter for the Destination.
ServiceAdapter for the Destination.public ServiceAdapter createAdapter(String id)
ServiceAdapter instance, sets its id, sets it manageable
if the Destination that created it is manageable,
and set its Destination to the Destination that
created it.
In order to use this method, Destination should have an assigned
Service and the id provided for the adapter should already
be registered with the Service.
id - The id of the ServiceAdapter.
ServiceAdapter instanced created.public void setAdapter(ServiceAdapter adapter)
ServiceAdapter of the Destination.
ServiceAdapter needs to be started if the Destination
is already running.
adapter - The adapter for the destination.public boolean isBackendShared()
false if the Destination is not runnning.
true if the clustered Destination shares a common backend;
otherwise false.public List getChannels()
Destination.
Destination.public void addChannel(String id)
Destination.
MessageBroker has to know the channel. Otherwise, the channel
is not added to the list.
id - The id of the channel.public boolean removeChannel(String id)
Destination.
id - The id of the channel.
true if the list contained the channel id.public void setChannels(List ids)
Destination.
MessageBroker has to know the channels, otherwise they
are not added to the list.
ids - List of channel ids.public boolean isClustered()
false if the Destination is not runnning.
true if the Destination is clustered; otherwise false.public void setId(String id)
Destination. If the Destination
has a Service assigned, it also updates the id in the
Service.
setId in class ManageableComponentid - The id of the Destination.public NetworkSettings getNetworkSettings()
NetworkSettings of the Destination.
NetworkSettings of the Destination.public void setNetworkSettings(NetworkSettings networkSettings)
NetworkSettings of the Destination.
networkSettings - The NetworkSettings of the Destination.public Service getService()
Service managing this Destination.
Service managing this Destination.public void setService(Service service)
Service managing this Destination.
Removes the Destination from the old service
(if there was one) and adds to the list of destination in the new service.
service - The Service managing this Destination.public String getServiceType()
Service managing this
Destination. Returns null if there is no Service
assigned to the Destination yet.
Service manageing this Destination.public SecurityConstraint getSecurityConstraint()
SecurityConstraint of the Destination.
SecurityConstraint is constructed as the Destination
starts up. Therefore, this could return null even if the SecurityConstraint
reference is set but Destination is not started yet.
SecurityConstraint of the Destination.public void setSecurityConstraint(SecurityConstraint securityConstraint)
SecurityConstraint of the Destination.
securityConstraint - The SecurityConstraint of the Destination.public void setSecurityConstraint(String ref)
SecurityConstraint reference of the Destination.
MessageBroker has to know the SecurityConstraint
reference. Note that getSecurityConstraint can return null
if the reference is set but the Destination is not started yet.
ref - SecurityConstraint reference.public ConfigMap describeDestination()
ConfigMap of destination properties that the client
needs. By default, it returns a ConfigMap of destination id
under "id" key and channel ids that the destination uses under "channels"
key. Subclasses should add additional properties to
super.describeDestination, or return null if they don't want
their properties to be sent to the client.
ConfigMap of destination properties that the client needs.
public void addExtraProperty(String name,
Object value)
name - The name of the property.value - The value of the property.public Object getExtraProperty(String name)
name - The name of the property.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/blazeds/1/javadoc/flex/messaging/Destination.html