public class LocalTransport extends java.lang.Object implements ITransport
Modifier and Type | Field and Description |
---|---|
protected java.lang.String[] |
addresses
The addresses.
|
protected jadex.bridge.IInternalAccess |
component
The platform.
|
protected jadex.bridge.service.types.message.IMessageService |
msgservice
The message service.
|
static java.lang.String[] |
SCHEMAS
The schema name.
|
Constructor and Description |
---|
LocalTransport(jadex.bridge.IInternalAccess component)
Init the transport.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getAddresses()
Get the addresses of this transport.
|
java.lang.String[] |
getServiceSchemas()
Returns the prefix of this transport
|
boolean |
isApplicable(java.lang.String address)
Test if a transport is applicable for the target address.
|
boolean |
isNonFunctionalSatisfied(java.util.Map<java.lang.String,java.lang.Object> nonfunc,
java.lang.String address)
Test if a transport satisfies the non-functional requirements.
|
void |
sendMessage(java.lang.String address,
ISendTask task)
Send a message to the given address.
|
jadex.commons.future.IFuture<java.lang.Void> |
shutdown()
Perform cleanup operations (if any).
|
jadex.commons.future.IFuture<java.lang.Void> |
start()
Start the transport.
|
public static final java.lang.String[] SCHEMAS
protected jadex.bridge.service.types.message.IMessageService msgservice
protected java.lang.String[] addresses
protected jadex.bridge.IInternalAccess component
public LocalTransport(jadex.bridge.IInternalAccess component)
public jadex.commons.future.IFuture<java.lang.Void> start()
start
in interface ITransport
public jadex.commons.future.IFuture<java.lang.Void> shutdown()
shutdown
in interface ITransport
public boolean isApplicable(java.lang.String address)
isApplicable
in interface ITransport
public boolean isNonFunctionalSatisfied(java.util.Map<java.lang.String,java.lang.Object> nonfunc, java.lang.String address)
isNonFunctionalSatisfied
in interface ITransport
nonfunc
- The non-functional requirements (name, value).address
- The transport address.public void sendMessage(java.lang.String address, ISendTask task)
sendMessage
in interface ITransport
address
- The address to send to.task
- A task representing the message to send.public java.lang.String[] getServiceSchemas()
getServiceSchemas
in interface ITransport
public java.lang.String[] getAddresses()
getAddresses
in interface ITransport