jadex.standalone.transport.localmtp
Class LocalTransport

java.lang.Object
  extended by jadex.standalone.transport.localmtp.LocalTransport
All Implemented Interfaces:
ITransport

public class LocalTransport
extends Object
implements ITransport

The local transport for sending messages on the same platform (just calls the local deliver method).


Field Summary
protected  String[] addresses
          The addresses.
protected  IServiceProvider container
          The platform.
protected  IMessageService msgservice
          The message service.
static String SCHEMA
          The schema name.
 
Fields inherited from interface jadex.standalone.transport.ITransport
PORT
 
Constructor Summary
LocalTransport(IServiceProvider container)
          Init the transport.
 
Method Summary
 String[] getAddresses()
          Get the adresses of this transport.
 String getServiceSchema()
          Returns the prefix of this transport
 IComponentIdentifier[] sendMessage(Map message, String msgtype, IComponentIdentifier[] recs)
          Send a message.
 void shutdown()
          Perform cleanup operations (if any).
 void start()
          Start the transport.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCHEMA

public static final String SCHEMA
The schema name.

See Also:
Constant Field Values

msgservice

protected IMessageService msgservice
The message service.


addresses

protected String[] addresses
The addresses.


container

protected IServiceProvider container
The platform.

Constructor Detail

LocalTransport

public LocalTransport(IServiceProvider container)
Init the transport.

Parameters:
platform - The platform.
settings - The settings.
Method Detail

start

public void start()
Start the transport.

Specified by:
start in interface ITransport

shutdown

public void shutdown()
Perform cleanup operations (if any).

Specified by:
shutdown in interface ITransport

sendMessage

public IComponentIdentifier[] sendMessage(Map message,
                                          String msgtype,
                                          IComponentIdentifier[] recs)
Send a message.

Specified by:
sendMessage in interface ITransport
Parameters:
message - The message to send.
Returns:
The component identifiers of the components the message could not be sent to.

getServiceSchema

public String getServiceSchema()
Returns the prefix of this transport

Specified by:
getServiceSchema in interface ITransport
Returns:
Transport prefix.

getAddresses

public String[] getAddresses()
Get the adresses of this transport.

Specified by:
getAddresses in interface ITransport
Returns:
An array of strings representing the addresses of this message transport mechanism.


Copyright © 2010. All Rights Reserved.