|
1.0.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
Define the default priority (int) constant. |
static int |
DEFAULT_TEST_COUNT
Define the default test count (int) constant. |
static long |
DEFAULT_TEST_DELAY
Define the default test delay (long) constant. |
static long |
DEFAULT_TOTAL_TEST_TIME
Define the default total test time (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_NOTIFICATION_RESOURCE
Define the transport test message notification 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 class org.eclipse.soda.dk.core.EscObject |
|---|
CLONE_EXCEPTION_RESOURCE, EMPTY_BYTES, EMPTY_STRING, ERROR_OCCURRED_EXCEPTION_RESOURCE, ID_FILTER_KEY, ID_KEY, ID_KEY_ANY, INTEGER_TABLE, KEY_KEY, LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_TRACE, LOG_WARNING, PREFIX_KEY, RESOURCE_BUNDLE, SLEEP_EXCEPTION_RESOURCE, SYSTEM_INFO_RESOURCE, TO_STRING_CONFIGURATION_KEYS, TRACE_LEVEL_HIGH, TRACE_LEVEL_LOW, TRACE_LEVEL_MAX, TRACE_LEVEL_MIN, TRACE_LEVEL_NONE, TRACE_LEVEL_NORMAL, TRACELEVEL_KEY, UNKNOWN_ERROR_RESOURCE |
| 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 |
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)
Return the property value. |
ConfigurationService |
getConfigurationService()
Gets the configuration service value. |
java.lang.String |
getCopyright()
Gets the copyright (String) 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. |
NotificationService |
getNotificationService()
Gets the notification service value. |
int |
getPriority()
Gets the priority (int) value. |
java.lang.String |
getResource(int resourceId)
Gets the string resource using the supplied resourceId. |
int |
getTestCount()
Gets the test count (int) value. |
long |
getTestDelay()
Gets the test delay (long) value. |
java.lang.Thread |
getThread()
Gets the thread to be used in testing. |
long |
getTotalTestTime()
Gets the total test time (long) value. |
TransportService |
getTransport()
Gets the transport to be tested. |
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,
MessageService message)
This API will be called each time the TransportService receives a valid message. |
void |
putConfigurationInformation(java.lang.String propertyName,
java.lang.Object value)
Set the specified property value. |
void |
run()
Run tests for the transport. |
void |
run(java.lang.String[] args)
Run with the specified args 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(NotificationService notificationService)
Sets the notification service value. |
void |
setPriority(int priority)
Sets the priority value. |
void |
setStarted(boolean started)
Sets the started status. |
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. |
void |
setTotalTestTime(long totalTestTime)
Sets the total test time value. |
void |
setTransport(TransportService transport)
Sets the transport to be tested. |
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 int DEFAULT_PRIORITY
public static final int DEFAULT_TEST_COUNT
public static final long DEFAULT_TEST_DELAY
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_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 boolean configurationSave
| Constructor Detail |
|---|
public TransportTest()
| Method Detail |
|---|
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 timestamp (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)
String) parameter.
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 TransportService getDefaultTransport()
TransportService) value.
protected int getErrorSeverity(int errorNumber,
java.lang.Throwable error)
int) parameter.
The error (Throwable) parameter.
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 NotificationService getNotificationService()
getNotificationService in interface TransportTestServiceNotificationService) value.setNotificationService(NotificationService)public int getPriority()
int) value.setPriority(int)public java.lang.String getResource(int resourceId)
int) parameter.
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,
MessageService message)
messageReceived in interface MessageListenertransportService - The transport service (TransportService) parameter.timestamp - The timestamp (Object) parameter.message - The message (MessageService) parameter.
public void putConfigurationInformation(java.lang.String propertyName,
java.lang.Object value)
String) parameter.
The value (Object) parameter.
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[] args)
String[]) parameter.
args - The args (String[]) parameter.run()public void runTests()
endTests(),
startTests()public void send(MessageService message)
MessageService) parameter.
message - The message (MessageService) parameter.public void setConfigurationInformation(java.util.Dictionary configurationInformation)
Dictionary)
parameter.
setConfigurationInformation in interface TransportTestServiceconfigurationInformation - The configuration information (Dictionary) parameter.getConfigurationInformation(),
getConfigurationInformation(String),
getTransportConfigurationInformation(),
putConfigurationInformation(String,Object),
setTransportConfigurationInformation(Dictionary)public void setConfigurationSave(boolean configurationSave)
boolean) parameter.
configurationSave - The configuration save (boolean) parameter.isConfigurationSave(),
transportConfigurationSave()public void setNotificationService(NotificationService notificationService)
setNotificationService in interface TransportTestServicenotificationService - The notification service (NotificationService) parameter.getNotificationService()public void setPriority(int priority)
int) parameter.
priority - The priority (int) parameter.getPriority()public void setStarted(boolean started)
boolean) parameter.
started - The started (boolean) parameter.isStarted()public void setTestCount(int testCount)
int) parameter.
testCount - The test count (int) parameter.getTestCount()public void setTestDelay(long testDelay)
long) parameter.
testDelay - The test delay (long) parameter.getTestDelay()public void setThread(java.lang.Thread thread)
Thread) parameter.
thread - The thread (Thread) parameter.getThread()public void setTotalTestTime(long totalTestTime)
long) parameter.
totalTestTime - The total test time (long) parameter.getTotalTestTime()public void setTransport(TransportService transport)
TransportService) parameter.
setTransport in interface TransportTestServicetransport - The transport (TransportService) parameter.getDefaultTransport(),
getTransport()public void setTransportConfigurationInformation(java.util.Dictionary transportConfigurationInformation)
Dictionary)
parameter.
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 timestamp (Object) parameter.newState - The new state (int) parameter.oldState - The old state (int) parameter.public void transportConfigurationCompare()
public void transportConfigurationSave()
isConfigurationSave(),
setConfigurationSave(boolean)
|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||