|
2009-01-09 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.soda.dk.core.EscObject
org.eclipse.soda.dk.transport.test.TransportTest
public class TransportTest
| Field Summary | |
|---|---|
static java.lang.String |
CLASS_NAME
Defines the class name. |
protected boolean |
configurationSave
Define the configuration save (boolean) field. |
static int |
DEFAULT_PRIORITY
Deprecated. #PRIORITY_DEFAULT |
static int |
DEFAULT_TEST_COUNT
Deprecated. #TEST_COUNT_DEFAULT |
static long |
DEFAULT_TEST_DELAY
Deprecated. #TEST_DELAY_DEFAULT |
static long |
DEFAULT_TOTAL_TEST_TIME
Deprecated. #TOTAL_TEST_TIME_DEFAULT |
static java.lang.String |
ID_VALUE
Define the id value (String) constant. |
static java.lang.String |
PREFIX_VALUE
Define the prefix value (String) constant. |
static int |
PRIORITY_DEFAULT
Define the priority default (int) constant. |
static int |
TEST_COUNT_DEFAULT
Define the test count default (int) constant. |
static long |
TEST_DELAY_DEFAULT
Define the test delay default (long) constant. |
static long |
TOTAL_TEST_TIME_DEFAULT
Define the total test time default (long) constant. |
protected static int |
TRANSPORT_TEST_ACTIVE_STATE_RESOURCE
Define the transport test active state resource (int) constant. |
protected static int |
TRANSPORT_TEST_ALIVE_STATE_RESOURCE
Define the transport test alive state resource (int) constant. |
protected static int |
TRANSPORT_TEST_CONNECTED_STATE_RESOURCE
Define the transport test connected state resource (int) constant. |
protected static int |
TRANSPORT_TEST_CREATED_STATE_RESOURCE
Define the transport test created state resource (int) constant. |
protected static int |
TRANSPORT_TEST_DEAD_STATE_RESOURCE
Define the transport test dead state resource (int) constant. |
protected static int |
TRANSPORT_TEST_ERROR_NOTIFICATION_RESOURCE
Define the transport test error notification resource (int) constant. |
protected static int |
TRANSPORT_TEST_EXIT_EXECUTION_RESOURCE
Define the transport test exit execution resource (int) constant. |
protected static int |
TRANSPORT_TEST_MESSAGE_CHANNEL_NOTIFICATION_RESOURCE
Define the transport test message channel notification resource (int) constant. |
protected static int |
TRANSPORT_TEST_MESSAGE_NOTIFICATION_RESOURCE
Define the transport test message notification resource (int) constant. |
protected static int |
TRANSPORT_TEST_NOTIFICATION_RECEIVED_RESOURCE
Define the transport test notification received resource (int) constant. |
protected static int |
TRANSPORT_TEST_SEND_EXCEPTION_RESOURCE
Define the transport test send exception resource (int) constant. |
protected static int |
TRANSPORT_TEST_START_EXECUTION_RESOURCE
Define the transport test start execution resource (int) constant. |
protected static int |
TRANSPORT_TEST_START_RESOURCE
Define the transport test start resource (int) constant. |
protected static int |
TRANSPORT_TEST_STARTED_STATE_RESOURCE
Define the transport test started state resource (int) constant. |
protected static int[] |
TRANSPORT_TEST_STATE_RESOURCE_TABLE
Define the transport test state resource table (int[]) constant. |
protected static int |
TRANSPORT_TEST_STOP_EXECUTION_RESOURCE
Define the transport test stop execution resource (int) constant. |
protected static int |
TRANSPORT_TEST_STOP_RESOURCE
Define the transport test stop resource (int) constant. |
protected static int |
TRANSPORT_TEST_TRANSPORT_CONFIGURATION_MISCOMPARE_RESOURCE
Define the transport test transport configuration miscompare resource (int) constant. |
protected static int |
TRANSPORT_TEST_WAITING_RESOURCE
Define the transport test waiting resource (int) constant. |
| Fields inherited from interface org.eclipse.soda.dk.transport.test.service.TransportTestService |
|---|
SERVICE_NAME |
| Constructor Summary | |
|---|---|
TransportTest()
Constructs a new instance of the RfidMatricsRdr001TransportTest class. |
|
| Method Summary | |
|---|---|
void |
channelChanged(TransportService source,
java.lang.Object timestamp,
ChannelService channel,
int newState,
int oldState)
Channel changed with the specified source, timestamp, channel, new state and old state parameters. |
void |
endTests()
End tests. |
void |
errorOccurred(java.lang.Object source,
java.lang.Object timestamp,
java.lang.Object data)
The errorOccurred method is called when an error has occurred. |
void |
exit()
Exit. |
java.util.Dictionary |
getConfigurationInformation()
Return the property table. |
java.lang.Object |
getConfigurationInformation(java.lang.String propertyName)
Get configuration information with the specified property name parameter and return the Object result. |
ConfigurationService |
getConfigurationService()
Gets the configuration service value. |
java.lang.String |
getCopyright()
Gets the copyright (String) value. |
org.eclipse.soda.dk.notification.service.NotificationService |
getDefaultNotificationService()
Gets the default notification service (NotificationService) value. |
TransportService |
getDefaultTransport()
Gets the default transport (TransportService) value. |
protected int |
getErrorSeverity(int errorNumber,
java.lang.Throwable error)
Get error severity with the specified error number and error parameters and return the int result. |
java.lang.Object |
getLogDetails4()
Gets the log details4 (Object) value. |
java.lang.Object |
getLogDetails5()
Gets the log details5 (Object) value. |
org.eclipse.soda.dk.notification.service.NotificationService |
getNotificationService()
Gets the notification service value. |
int |
getPriority()
Gets the priority (int) value. |
java.lang.String |
getResource(int resourceId)
Get resource with the specified resource ID parameter and return the String result. |
int |
getTestCount()
Gets the test count (int) value. |
long |
getTestDelay()
Gets the test delay (long) value. |
java.lang.Thread |
getThread()
Gets the thread value. |
long |
getTotalTestTime()
Gets the total test time (long) value. |
TransportService |
getTransport()
Gets the transport (TransportService) value. |
java.util.Dictionary |
getTransportConfigurationInformation()
Gets the transport configuration information (Dictionary) value. |
java.lang.String |
getVendor()
Gets the vendor (String) value. |
boolean |
isConfigurationSave()
Gets the configuration save (boolean) value. |
boolean |
isStarted()
Gets the started status. |
void |
messageReceived(TransportService transportService,
java.lang.Object timestamp,
ChannelService channel,
MessageService message)
Message received with the specified transport service, timestamp, channel and message parameters. |
void |
messageReceived(TransportService transportService,
java.lang.Object timestamp,
MessageService message)
This API will be called each time the TransportService receives a valid message. |
void |
notificationReceived(java.lang.String externalKey,
java.util.Dictionary data)
Notification received with the specified external key and data parameters. |
void |
putConfigurationInformation(java.lang.String propertyName,
java.lang.Object value)
Put configuration information with the specified property name and value parameters. |
void |
run()
Run tests for the transport. |
void |
run(java.lang.String[] arguments)
Run with the specified arguments parameter. |
void |
runTests()
Run tests. |
void |
send(MessageService message)
Send with the specified message parameter. |
void |
setConfigurationInformation(java.util.Dictionary configurationInformation)
Sets the configuration information value. |
void |
setConfigurationSave(boolean configurationSave)
Sets the configuration save value. |
void |
setNotificationService(org.eclipse.soda.dk.notification.service.NotificationService notificationService)
Sets the notification service value. |
void |
setPriority(int priority)
Sets the priority value. |
void |
setStarted(boolean started)
Sets the started value. |
void |
setTestCount(int testCount)
Sets the test count value. |
void |
setTestDelay(long testDelay)
Sets the test delay value. |
void |
setThread(java.lang.Thread thread)
Sets the thread value. |
void |
setTotalTestTime(long totalTestTime)
Sets the total test time value. |
void |
setTransport(TransportService transport)
Sets the transport value. |
void |
setTransportConfigurationInformation(java.util.Dictionary transportConfigurationInformation)
Sets the transport configuration information value. |
void |
setup()
Setup. |
void |
start()
Start the test case. |
void |
startTests()
Start tests. |
void |
stop()
Stops the test case. |
void |
test()
Tests the transport. |
java.lang.String |
toString()
Returns the string value. |
void |
transportChanged(TransportService transportService,
java.lang.Object timestamp,
int newState,
int oldState)
This method will be called when the state of the TransportService changes. |
void |
transportConfigurationCompare()
Transport configuration compare. |
void |
transportConfigurationSave()
Transport configuration save. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CLASS_NAME
public static final java.lang.String ID_VALUE
public static final java.lang.String PREFIX_VALUE
public static final int PRIORITY_DEFAULT
public static final int DEFAULT_PRIORITY
public static final int TEST_COUNT_DEFAULT
public static final int DEFAULT_TEST_COUNT
public static final long TEST_DELAY_DEFAULT
public static final long DEFAULT_TEST_DELAY
public static final long TOTAL_TEST_TIME_DEFAULT
public static final long DEFAULT_TOTAL_TEST_TIME
protected static final int TRANSPORT_TEST_DEAD_STATE_RESOURCE
protected static final int TRANSPORT_TEST_CREATED_STATE_RESOURCE
protected static final int TRANSPORT_TEST_ALIVE_STATE_RESOURCE
protected static final int TRANSPORT_TEST_CONNECTED_STATE_RESOURCE
protected static final int TRANSPORT_TEST_ACTIVE_STATE_RESOURCE
protected static final int TRANSPORT_TEST_STARTED_STATE_RESOURCE
protected static final int[] TRANSPORT_TEST_STATE_RESOURCE_TABLE
protected static final int TRANSPORT_TEST_ERROR_NOTIFICATION_RESOURCE
protected static final int TRANSPORT_TEST_MESSAGE_NOTIFICATION_RESOURCE
protected static final int TRANSPORT_TEST_MESSAGE_CHANNEL_NOTIFICATION_RESOURCE
protected static final int TRANSPORT_TEST_START_RESOURCE
protected static final int TRANSPORT_TEST_STOP_RESOURCE
protected static final int TRANSPORT_TEST_WAITING_RESOURCE
protected static final int TRANSPORT_TEST_SEND_EXCEPTION_RESOURCE
protected static final int TRANSPORT_TEST_START_EXECUTION_RESOURCE
protected static final int TRANSPORT_TEST_STOP_EXECUTION_RESOURCE
protected static final int TRANSPORT_TEST_EXIT_EXECUTION_RESOURCE
protected static final int TRANSPORT_TEST_TRANSPORT_CONFIGURATION_MISCOMPARE_RESOURCE
protected static final int TRANSPORT_TEST_NOTIFICATION_RECEIVED_RESOURCE
protected boolean configurationSave
| Constructor Detail |
|---|
public TransportTest()
| Method Detail |
|---|
public void channelChanged(TransportService source,
java.lang.Object timestamp,
ChannelService channel,
int newState,
int oldState)
channelChanged in interface MultiplexTransportListenersource - The source (TransportService) parameter.timestamp - The time stamp (Object) parameter.channel - The channel (ChannelService) parameter.newState - The new state (int) parameter.oldState - The old state (int) parameter.transportChanged(TransportService,Object,int,int)public void endTests()
runTests(),
startTests()
public void errorOccurred(java.lang.Object source,
java.lang.Object timestamp,
java.lang.Object data)
errorOccurred in interface ErrorListenersource - The source (Object) parameter.timestamp - The time stamp (Object) parameter.data - The data (Object) parameter.public void exit()
exit in interface TransportTestServicepublic java.util.Dictionary getConfigurationInformation()
getConfigurationInformation in interface TransportTestServiceDictionary) value.getConfigurationInformation(String),
getTransportConfigurationInformation(),
putConfigurationInformation(String,Object),
setConfigurationInformation(Dictionary),
setTransportConfigurationInformation(Dictionary)public java.lang.Object getConfigurationInformation(java.lang.String propertyName)
propertyName - The property name (String) parameter.
Object) value.getConfigurationInformation(),
getTransportConfigurationInformation(),
putConfigurationInformation(String,Object),
setConfigurationInformation(Dictionary),
setTransportConfigurationInformation(Dictionary)public ConfigurationService getConfigurationService()
getConfigurationService in class EscObjectConfigurationService) value.public java.lang.String getCopyright()
String) value.public org.eclipse.soda.dk.notification.service.NotificationService getDefaultNotificationService()
NotificationService) value.public TransportService getDefaultTransport()
TransportService) value.
protected int getErrorSeverity(int errorNumber,
java.lang.Throwable error)
getErrorSeverity in class EscObjecterrorNumber - The error number (int) parameter.error - The error (Throwable) parameter.
int) value.LogServicepublic java.lang.Object getLogDetails4()
getLogDetails4 in class EscObjectObject) value.public java.lang.Object getLogDetails5()
getLogDetails5 in class EscObjectObject) value.public org.eclipse.soda.dk.notification.service.NotificationService getNotificationService()
getNotificationService in interface TransportTestServiceNotificationService) value.getDefaultNotificationService(),
setNotificationService(NotificationService)public int getPriority()
int) value.setPriority(int)public java.lang.String getResource(int resourceId)
getResource in class EscObjectresourceId - The resource ID (int) parameter.
String) value.EscObject.getDefaultResource(int)public int getTestCount()
int) value.setTestCount(int)public long getTestDelay()
long) value.setTestDelay(long)public java.lang.Thread getThread()
Thread) value.setThread(Thread)public long getTotalTestTime()
long) value.setTotalTestTime(long)public TransportService getTransport()
getDefaultTransport(),
setTransport(TransportService)public java.util.Dictionary getTransportConfigurationInformation()
Dictionary) value.setTransportConfigurationInformation(Dictionary)public java.lang.String getVendor()
String) value.public boolean isConfigurationSave()
boolean) value.setConfigurationSave(boolean),
transportConfigurationSave()public boolean isStarted()
setStarted(boolean)
public void messageReceived(TransportService transportService,
java.lang.Object timestamp,
ChannelService channel,
MessageService message)
messageReceived in interface MultiplexMessageListenertransportService - The transport service (TransportService) parameter.timestamp - The time stamp (Object) parameter.channel - The channel (ChannelService) parameter.message - The message (MessageService) parameter.messageReceived(TransportService,Object,MessageService),
notificationReceived(String,Dictionary)
public void messageReceived(TransportService transportService,
java.lang.Object timestamp,
MessageService message)
messageReceived in interface MessageListenertransportService - The transport service (TransportService) parameter.timestamp - The time stamp (Object) parameter.message - The message (MessageService) parameter.messageReceived(TransportService,Object,ChannelService,MessageService),
notificationReceived(String,Dictionary)
public void notificationReceived(java.lang.String externalKey,
java.util.Dictionary data)
notificationReceived in interface org.eclipse.soda.dk.notification.service.NotificationListenerexternalKey - The external key (String) parameter.data - The data (Dictionary) parameter.messageReceived(TransportService,Object,ChannelService,MessageService),
messageReceived(TransportService,Object,MessageService)
public void putConfigurationInformation(java.lang.String propertyName,
java.lang.Object value)
propertyName - The property name (String) parameter.value - The value (Object) parameter.getConfigurationInformation(),
getConfigurationInformation(String),
getTransportConfigurationInformation(),
setConfigurationInformation(Dictionary),
setTransportConfigurationInformation(Dictionary)public void run()
run in interface java.lang.Runnablerun(String[])public void run(java.lang.String[] arguments)
arguments - The arguments (String[]) parameter.run()public void runTests()
endTests(),
startTests()public void send(MessageService message)
message - The message (MessageService) parameter.public void setConfigurationInformation(java.util.Dictionary configurationInformation)
setConfigurationInformation in interface TransportTestServiceconfigurationInformation - The configuration information (Dictionary) parameter.getConfigurationInformation(),
getConfigurationInformation(String),
getTransportConfigurationInformation(),
putConfigurationInformation(String,Object),
setTransportConfigurationInformation(Dictionary)public void setConfigurationSave(boolean configurationSave)
configurationSave - The configuration save (boolean) parameter.isConfigurationSave(),
transportConfigurationSave()public void setNotificationService(org.eclipse.soda.dk.notification.service.NotificationService notificationService)
setNotificationService in interface TransportTestServicenotificationService - The notification service (NotificationService) parameter.getDefaultNotificationService(),
getNotificationService()public void setPriority(int priority)
priority - The priority (int) parameter.getPriority()public void setStarted(boolean started)
started - The started (boolean) parameter.isStarted()public void setTestCount(int testCount)
testCount - The test count (int) parameter.getTestCount()public void setTestDelay(long testDelay)
testDelay - The test delay (long) parameter.getTestDelay()public void setThread(java.lang.Thread thread)
thread - The thread (Thread) parameter.getThread()public void setTotalTestTime(long totalTestTime)
totalTestTime - The total test time (long) parameter.getTotalTestTime()public void setTransport(TransportService transport)
setTransport in interface TransportTestServicetransport - The transport (TransportService) parameter.getDefaultTransport(),
getTransport()public void setTransportConfigurationInformation(java.util.Dictionary transportConfigurationInformation)
transportConfigurationInformation - The transport configuration information (Dictionary) parameter.getTransportConfigurationInformation()public void setup()
public void start()
start in interface TransportTestServicepublic void startTests()
endTests(),
runTests()public void stop()
stop in interface TransportTestServicepublic void test()
public java.lang.String toString()
toString in class EscObjectString) value.EscObject.getStaticString(String,String),
EscObject.getString(String,String)
public void transportChanged(TransportService transportService,
java.lang.Object timestamp,
int newState,
int oldState)
org.eclipse.soda.dk.transport.service.TransportService java.lang.Object
The new state of the TransportService when the notification process started. The old state of the TransportService.
transportChanged in interface TransportListenertransportService - The transport service (TransportService) parameter.timestamp - The time stamp (Object) parameter.newState - The new state (int) parameter.oldState - The old state (int) parameter.channelChanged(TransportService,Object,ChannelService,int,int)public void transportConfigurationCompare()
public void transportConfigurationSave()
isConfigurationSave(),
setConfigurationSave(boolean)
|
2009-01-09 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||