|
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.Transport
public class Transport
The Transport class implements the TransportService interface.
Message,
EscObject,
String,
TransportService,
TransportListener| Field Summary | |
|---|---|
protected static int |
BAD_CHECKSUM_RESOURCE
Define the bad checksum resource (int) constant. |
protected static int |
CLONE_EXCEPTION_RESOURCE
Define the clone exception resource (int) constant. |
protected static int |
CLOSE_EXCEPTION_RESOURCE
Define the close exception resource (int) constant. |
protected static int |
CONFIGURATION_ERROR_RESOURCE
Define the configuration error resource (int) constant. |
static int |
CONFIGURATION_MISMATCH_RESOURCE
Define the configuration mismatch resource (int) constant. |
protected static int |
CONNECTION_IN_USE_EXCEPTION_RESOURCE
Define the send exception resource (int) constant. |
static char |
CR
Define the cr (char) constant. |
static long |
DEFAULT_NO_ACTIVITY_TIMEOUT
Define the default no activity timeout (long) constant. |
static long |
DEFAULT_RETRY_TIME
Define the default retry time (long) constant. |
static int |
ERROR_OCCURRED_EXCEPTION_RESOURCE
Define the error occurred exception resource (int) constant. |
static int |
ERROR_ON_BUS_RESOURCE
Define the error on bus resource (int) constant. |
protected int |
errorCount
Define the error count (int) field. |
protected static int |
EXCEPTION_NO_RESPONSE_RESOURCE
Define the exception no response resource (int) constant. |
protected int |
inputMessageCount
Define the input message count (int) field. |
protected static int |
INTERRUPT_BEFORE_WRITE_RESOURCE
Define the interrupt before write resource (int) constant. |
protected static int |
INVALID_MESSAGE_RESOURCE
Define the invalid message resource (int) constant. |
protected static int |
INVALID_SEQUENCE_RESOURCE
Define the invalid sequence resource (int) constant. |
static char |
LF
Define the lf (char) constant. |
static int |
MESSAGE_FILTERED_RESOURCE
Define the message filtered resource (int) constant. |
static int |
MESSAGE_RECEIVED_EXCEPTION_RESOURCE
Define the message received exception resource (int) constant. |
static int |
MESSAGE_RECEIVED_RESOURCE
Define the message received resource (int) constant. |
static int |
MESSAGE_SENT_RESOURCE
Define the message sent resource (int) constant. |
protected static int |
NACK_RECEIVED_RESOURCE
Define the nack received resource (int) constant. |
protected static int |
NO_ACTIVITY_RESOURCE
Define the no activity resource (int) constant. |
protected long |
noActivityTimeout
Define the no activity timeout (long) field. |
protected NotificationService |
notificationService
Define the notification service (NotificationService) field. |
protected static int |
PROCESS_INPUT_EXCEPTION_RESOURCE
Define the process input exception resource (int) constant. |
protected static int |
QUEUE_TOO_BIG_RESOURCE
Define the queue too big resource (int) constant. |
static int |
RECONNECT_RESOURCE
Define the reconnect resource (int) constant. |
protected long |
retryTime
Define the retry time (long) field. |
protected static int |
RUN_EXCEPTION_RESOURCE
Define the run exception resource (int) constant. |
protected static int |
SEND_EXCEPTION_RESOURCE
Define the send exception resource (int) constant. |
protected static int |
SEND_NOT_STARTED_EXCEPTION_RESOURCE
Define the send not started exception resource (int) constant. |
protected int |
sentMessageCount
Define the sent message count (int) field. |
protected static int |
SHUTDOWN_EXCEPTION_RESOURCE
Define the shutdown exception resource (int) constant. |
protected static int |
STARTUP_EXCEPTION_RESOURCE
Define the startup exception resource (int) constant. |
static int |
STARTUP_MESSAGE_RECEIVED_RESOURCE
Define the startup message received resource (int) constant. |
static java.lang.String[] |
STATE_STRINGS
Define strings for the various states. |
protected java.lang.Object |
stateChanaged
Define the state chanaged (Object) field. |
protected static int |
TRANSPORT_ACTIVE_STATE_RESOURCE
Define the transport active state resource (int) constant. |
protected static int |
TRANSPORT_ALIVE_STATE_RESOURCE
Define the transport alive state resource (int) constant. |
protected static int |
TRANSPORT_CHANGED_EXCEPTION_RESOURCE
Define the transport changed exception resource (int) constant. |
protected static int |
TRANSPORT_CONNECTED_STATE_RESOURCE
Define the transport connected state resource (int) constant. |
protected static int |
TRANSPORT_CREATED_STATE_RESOURCE
Define the transport created state resource (int) constant. |
protected static int |
TRANSPORT_DEAD_STATE_RESOURCE
Define the transport dead state resource (int) constant. |
static int |
TRANSPORT_ERROR_RESOURCE
Define the transport error resource (int) constant. |
protected static int |
TRANSPORT_STARTED_STATE_RESOURCE
Define the transport started state resource (int) constant. |
static int |
TRANSPORT_STARTUP_EXCEPTION_RESOURCE
Define the transport startup exception resource (int) constant. |
protected static int[] |
TRANSPORT_STATE_RESOURCE_TABLE
Define the transport state resource table (int[]) constant. |
static int |
UNABLE_TO_CONNECTION_TO_BUS_RESOURCE
Define the unable to connection to bus resource (int) constant. |
protected static int |
UNKNOWN_ERROR
Define the unknown error (int) constant. |
protected static int |
WRITE_EXCEPTION_RESOURCE
Define the send exception resource (int) constant. |
protected static int |
WRITE_INTERRUPT_PENDING_RESOURCE
Define the write interrupt pending resource (int) constant. |
protected static int |
WRITE_INTERRUPT_RESOURCE
Define the write interrupt resource (int) constant. |
| Fields inherited from class org.eclipse.soda.dk.core.EscObject |
|---|
EMPTY_BYTES, EMPTY_STRING, 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.service.TransportService |
|---|
ACTIVE, ALIVE, CONFIGURATION_DATA_KEY, CONNECTED, CONNECTION_KEY, CREATED, DEAD, DEFAULT_CONNECTION, ERROR_COUNT_DATA_KEY, ID_KEY, INPUT_MESSAGE_COUNT_DATA_KEY, NULL, SERVICE_NAME, SOURCE_DATA_KEY, STARTED, STATE_DATA_KEY, STATE_OLD_DATA_KEY, STATUS_EXTERNAL_KEY, TIMESTAMP_DATA_KEY, VALUE_DATA_KEY, VALUE_OLD_DATA_KEY |
| Constructor Summary | |
|---|---|
Transport()
Constructs a standard Transport object. |
|
Transport(short style)
Constructs an Transport object using the input
parameter(s). |
|
| Method Summary | |
|---|---|
void |
addInterest(InterestService interest)
Add interest object. |
void |
addTransportListener(TransportListener transportListener)
Adds the specified listener to receive listener controller. |
protected boolean |
attemptRecoveryFromError(int errorNumber,
java.lang.Throwable error)
Attempt recovery from error. |
void |
broadcastStatus(TransportService source,
java.lang.Object timestamp,
int newState,
int oldState)
Broadcast status with the specified source, timestamp, new state and old state parameters. |
void |
close()
Perform the close action method. |
void |
configure()
Perform the configure action method. |
void |
connect()
Perform the connect action method. |
ControllerService |
createController()
Create and return the noification object. |
void |
exit()
Exit the transport. |
protected void |
finalize()
|
void |
fireErrorOccurred(java.lang.Object timestamp,
java.lang.Object data)
Perform the fireErrorOccurred action method. |
void |
fireMessageReceived(java.lang.Object timestamp,
MessageService message)
Perform the fireMessageReceived action method. |
void |
fireTransportChanged(TransportService source,
java.lang.Object timestamp,
int newState,
int oldState)
This method will be called when the state of the TransportService changes to notify listeners of the changes. |
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. |
ConnectionService |
getConnection()
Gets the ConnectionService connection property value. |
ControllerService |
getController()
Gets the ControllerService property value. |
int |
getErrorCount()
Gets the error count (int) value. |
protected int |
getErrorSeverity(int errorNumber,
java.lang.Throwable error)
Gets the error severity based on the error number and error input parameters. |
protected int |
getInformation()
Gets the int information property value. |
int |
getInputMessageCount()
Gets the input message count (int) value. |
InterestMasks |
getInterestMask()
Returns the interestMask. |
java.lang.String |
getKey()
Gets the key (String) value. |
java.lang.Object |
getLogDetails4()
Gets the log details4 (Object) value. |
java.lang.Object |
getLogDetails5()
Gets the log details5 (Object) value. |
long |
getNoActivityTimeout()
Gets the no activity timeout (long) value. |
int |
getNotificationPriority()
Gets the int controller thread priority property value. |
NotificationService |
getNotificationService()
Gets the notification service value. |
int |
getPriority()
Gets the int input thread priority property value. |
java.util.Dictionary |
getProperties()
Gets the properties (Dictionary) value. |
java.lang.String |
getQualifiedKey()
Gets the qualified key (String) value. |
java.lang.String |
getResource(int resourceId)
Gets the string resource using the supplied resourceId. |
long |
getRetryTime()
Gets the retry time in milliseconds. |
int |
getSentMessageCount()
Gets the sent message count (int) value. |
int |
getState()
Returns the state of the transport. |
java.lang.String |
getString(java.lang.String key,
java.lang.String defaultString)
Get string with the specified key and default string parameters and return the String result. |
short |
getStyle()
Gets the short style property value. |
protected TransportListener |
getTransportListener()
Gets the TransportListener transportListener property
value. |
protected void |
handleError(java.lang.Throwable error,
int resourceId,
java.lang.Object[] objects)
Handle error with the specified error, resource id and objects parameters. |
boolean |
hasListeners()
Perform the hasListeners method and return the boolean
result. |
boolean |
isActive()
Return true if the transport the transport state is active. |
boolean |
isEcho()
Gets the boolean isEcho property value. |
boolean |
isReceivingData()
Gets the boolean receivingData property value. |
boolean |
isReceivingGoodData()
Gets the boolean receivingGoodData property value. |
boolean |
isReceivingInput()
Gets the boolean receivingInput property value. |
boolean |
isStarted()
Return true if the transport the transport state is started. |
void |
log(int severity,
java.lang.String message,
java.lang.Throwable exception)
Log with the specified severity, message and exception parameters. |
int |
noActivityProcessing()
No activity processing and return the boolean result. |
MessageService |
noActivityProcessingMessage()
No activity processing message and return the MessageService result. |
void |
putConfigurationInformation(java.lang.String propertyName,
java.lang.Object value)
Set the specified property value. |
protected int |
read(byte[] bytes,
int offset,
int length)
Read with the specified bytes, offset and length parameters and return the int result. |
void |
removeInterest(InterestService interest)
Remove an interest object from the transport. |
void |
removeTransportListener(TransportListener transportListener)
Removes the specified listener from receiving listener controller. |
void |
restart()
Restart the transport. |
void |
restartProcessing(boolean output)
Restart processing. |
void |
send(byte[] sendBytes)
Send bytes. |
void |
send(MessageService message)
Perform the send action method. |
void |
setActive(boolean active)
Set the active value. |
void |
setConfigurationInformation(java.util.Dictionary configurationInformation)
Sets the configuration information value. |
void |
setController(ControllerService controller)
Sets the controller property. |
void |
setEcho(boolean echo)
Sets the isEcho property. |
void |
setErrorCount(int errorCount)
Sets the error count value. |
protected void |
setInformation(int information)
Sets the information property. |
void |
setInputMessageCount(int inputMessageCount)
Sets the input message count value. |
void |
setInterestMask(InterestMasks interestMask)
Sets the interestMask. |
void |
setNoActivityTimeout(long noActivityTimeout)
Sets the no activity timeout value. |
void |
setNotificationService(NotificationService notificationService)
Sets the notification service value. |
void |
setReceivingData()
Perform the setReceivingData action method. |
void |
setReceivingData(boolean receivingData)
Sets the receivingData property. |
void |
setReceivingGoodData()
Perform the setReceivingGoodData action method. |
void |
setReceivingGoodData(boolean receivingGoodData)
Sets the receivingGoodData property. |
void |
setReceivingInput()
Perform the setReceivingInput action method. |
void |
setReceivingInput(boolean receivingInput)
Sets the receivingInput property. |
void |
setRetryTime(long retryTime)
Sets the retry time value. |
void |
setSentMessageCount(int sentMessageCount)
Sets the sent message count value. |
void |
setState(int state)
Sets the state of the tranport. |
void |
setStyle(short style)
Sets the style property. |
protected void |
setTransportListener(TransportListener transportListener)
Sets the transportListener property. |
void |
setup()
Setup the transport. |
void |
setupCustom()
Setup custom. |
void |
shutdown(boolean output)
Perform the shutdown action method. |
void |
start()
Start the transport. |
void |
start(boolean output)
Start the transport. |
int |
startup(boolean output)
Perform the startup action method. |
void |
startupMessageReceived(TransportService source,
java.lang.Object timestamp,
MessageService message)
Startup message received with the specified source, timestamp and message parameters. |
void |
stop()
Perform the stop action method. |
java.lang.String |
toString()
Returns the string value. |
void |
updateErrorCount()
Update error count. |
int |
updateInputMessageCount()
Update input message count and return the int result. |
void |
updateSentMessageCount()
Update sent message count. |
int |
waitStateChange()
Wait for state changed. |
int |
waitStateChange(long timeout)
Wait for state changed. |
void |
write(byte[] bytes)
Write (send) the specified bytes. |
protected void |
write(MessageService message)
Write (send) the specified message after converting the message to the correct set of bytes to be written. |
void |
writeAndReport(byte[] bytes)
Write and report with the specified bytes parameter. |
void |
writeAndReport(MessageService message)
Write and report with the specified message parameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.soda.dk.core.service.ConfigurationService |
|---|
getBoolean, getFloat, getInt, getLong, getObject |
| Field Detail |
|---|
public static final char CR
public static final char LF
public static final long DEFAULT_RETRY_TIME
public static final long DEFAULT_NO_ACTIVITY_TIMEOUT
protected static final int TRANSPORT_DEAD_STATE_RESOURCE
protected static final int TRANSPORT_CREATED_STATE_RESOURCE
protected static final int TRANSPORT_ALIVE_STATE_RESOURCE
protected static final int TRANSPORT_CONNECTED_STATE_RESOURCE
protected static final int TRANSPORT_ACTIVE_STATE_RESOURCE
protected static final int TRANSPORT_STARTED_STATE_RESOURCE
protected static final int[] TRANSPORT_STATE_RESOURCE_TABLE
public static final java.lang.String[] STATE_STRINGS
protected static final int INVALID_MESSAGE_RESOURCE
protected static final int BAD_CHECKSUM_RESOURCE
public static final int TRANSPORT_STARTUP_EXCEPTION_RESOURCE
protected static final int STARTUP_EXCEPTION_RESOURCE
protected static final int SHUTDOWN_EXCEPTION_RESOURCE
protected static final int SEND_EXCEPTION_RESOURCE
protected static final int RUN_EXCEPTION_RESOURCE
protected static final int SEND_NOT_STARTED_EXCEPTION_RESOURCE
protected static final int PROCESS_INPUT_EXCEPTION_RESOURCE
public static final int TRANSPORT_ERROR_RESOURCE
protected static final int CLOSE_EXCEPTION_RESOURCE
protected static final int TRANSPORT_CHANGED_EXCEPTION_RESOURCE
public static final int MESSAGE_RECEIVED_EXCEPTION_RESOURCE
public static final int ERROR_ON_BUS_RESOURCE
public static final int UNABLE_TO_CONNECTION_TO_BUS_RESOURCE
public static final int ERROR_OCCURRED_EXCEPTION_RESOURCE
public static final int MESSAGE_RECEIVED_RESOURCE
public static final int MESSAGE_SENT_RESOURCE
public static final int STARTUP_MESSAGE_RECEIVED_RESOURCE
public static final int MESSAGE_FILTERED_RESOURCE
public static final int CONFIGURATION_MISMATCH_RESOURCE
public static final int RECONNECT_RESOURCE
protected static final int CONNECTION_IN_USE_EXCEPTION_RESOURCE
protected static final int WRITE_EXCEPTION_RESOURCE
protected static final int WRITE_INTERRUPT_RESOURCE
protected static final int WRITE_INTERRUPT_PENDING_RESOURCE
protected static final int INVALID_SEQUENCE_RESOURCE
protected static final int QUEUE_TOO_BIG_RESOURCE
protected static final int INTERRUPT_BEFORE_WRITE_RESOURCE
protected static final int NACK_RECEIVED_RESOURCE
protected static final int NO_ACTIVITY_RESOURCE
protected static final int CONFIGURATION_ERROR_RESOURCE
protected static final int EXCEPTION_NO_RESPONSE_RESOURCE
protected static final int UNKNOWN_ERROR
protected static final int CLONE_EXCEPTION_RESOURCE
protected final java.lang.Object stateChanaged
protected long retryTime
protected long noActivityTimeout
protected int inputMessageCount
protected int errorCount
protected int sentMessageCount
protected NotificationService notificationService
| Constructor Detail |
|---|
public Transport()
Transport object.
Transport(short)public Transport(short style)
Transport object using the input
parameter(s). short
style - The style (short) parameter.Transport()| Method Detail |
|---|
public void addInterest(InterestService interest)
addInterest in interface TransportServiceinterest - The interest (InterestService) parameter.The interest (InterestService) parameter.,
removeInterest(InterestService)public void addTransportListener(TransportListener transportListener)
org.eclipse.soda.dk.transport.service.TransportServiceListener
listener to be added.
addTransportListener in interface TransportServicetransportListener - The transport listener (TransportListener) parameter.TransportService.addTransportListener(org.eclipse.soda.dk.transport.service.TransportListener),
getTransportListener(),
removeTransportListener(TransportListener),
setTransportListener(TransportListener)
protected boolean attemptRecoveryFromError(int errorNumber,
java.lang.Throwable error)
attemptRecoveryFromError in class EscObjecterrorNumber - The error number (int) parameter.error - The error (Throwable) parameter.
boolean)
value.The error number (int) parameter. The error (Throwable)
parameter.
public void broadcastStatus(TransportService source,
java.lang.Object timestamp,
int newState,
int oldState)
source - The source (TransportService) parameter.timestamp - The timestamp (Object) parameter.newState - The new state (int) parameter.oldState - The old state (int) parameter.public void close()
public void configure()
throws java.lang.Exception
java.lang.Exception
public void connect()
throws java.lang.Exception
java.lang.Exceptionpublic ControllerService createController()
ControllerService)
value.getController(),
setController(ControllerService)public void exit()
exit in interface TransportService
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.ThrowableObject.finalize()
public void fireErrorOccurred(java.lang.Object timestamp,
java.lang.Object data)
java.lang.Object
java.lang.Object
timestamp - The timestamp (Object) parameter.data - The data (Object) parameter.
public void fireMessageReceived(java.lang.Object timestamp,
MessageService message)
java.lang.Object
org.eclipse.soda.dk.message.service.MessageService
timestamp - The timestamp (Object) parameter.message - The message (MessageService) parameter.startupMessageReceived(TransportService,Object,MessageService)
public void fireTransportChanged(TransportService source,
java.lang.Object timestamp,
int newState,
int oldState)
org.eclipse.soda.dk.transport.service.TransportService
java.lang.Object
The new state of the TransportService. The old state of the
TransportService.
source - The source (TransportService) parameter.timestamp - The timestamp (Object) parameter.newState - The new state (int) parameter.oldState - The old state (int) parameter.public java.lang.Object getConfigurationInformation(java.lang.String propertyName)
String)
parameter.
propertyName - The property name (String) parameter.
Object)
value.getConfigurationInformation(),
putConfigurationInformation(String,Object),
setConfigurationInformation(Dictionary)public java.util.Dictionary getConfigurationInformation()
getConfigurationInformation in interface TransportServiceDictionary)
value.getConfigurationInformation(String),
putConfigurationInformation(String,Object),
setConfigurationInformation(Dictionary)public ConfigurationService getConfigurationService()
getConfigurationService in class EscObjectConfigurationService)
value.public ConnectionService getConnection()
ConnectionService connection property value.
ConnectionService)
value.public ControllerService getController()
ControllerService property value.
ControllerService)
value.createController(),
setController(ControllerService)public int getErrorCount()
int) value.setErrorCount(int),
updateErrorCount()
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.The error number (int) parameter. The error (Throwable)
parameter.protected int getInformation()
int information property value.
int) value.getConfigurationInformation(String),
getConfigurationInformation(),
putConfigurationInformation(String,Object),
setConfigurationInformation(Dictionary),
setInformation(int)public int getInputMessageCount()
int) value.setInputMessageCount(int),
updateInputMessageCount()public InterestMasks getInterestMask()
InterestMasks)
value.setInterestMask(InterestMasks)public java.lang.String getKey()
String) value.getQualifiedKey()public java.lang.Object getLogDetails4()
getLogDetails4 in class EscObjectObject) value.public java.lang.Object getLogDetails5()
getLogDetails5 in class EscObjectObject) value.public long getNoActivityTimeout()
long) value.setNoActivityTimeout(long)public int getNotificationPriority()
int controller thread priority property value.
The default value of the controller thread priority is input processing
thread - 1. or Thread.NORM_PRIORITY + 1.
public NotificationService getNotificationService()
getNotificationService in interface TransportServiceNotificationService)
value.setNotificationService(NotificationService)public int getPriority()
int input thread priority property value. The
default value of the input thread priority is Thread.NORM_PRIORITY + 2.
getNotificationPriority()public java.util.Dictionary getProperties()
getProperties in interface ConfigurationServiceDictionary) value.public java.lang.String getQualifiedKey()
String) value.public java.lang.String getResource(int resourceId)
int)
parameter.
getResource in class EscObjectresourceId - The resource id (int) parameter.
String) value.EscObject.getDefaultResource(int)public long getRetryTime()
long) value.setRetryTime(long)public int getSentMessageCount()
int) value.setSentMessageCount(int),
updateSentMessageCount()public int getState()
getState in interface TransportServiceint) value.setState(int)
public java.lang.String getString(java.lang.String key,
java.lang.String defaultString)
String) parameter.
The default string (String) parameter.
getString in interface ConfigurationServicegetString in class EscObjectkey - The key (String) parameter.defaultString - The default string (String) parameter.
String) value.toString()public short getStyle()
short style property value.
Return the number of bytes (not bit length) of the parameter.
short) value.setStyle(short)protected TransportListener getTransportListener()
TransportListener transportListener property
value.
TransportListener)
value.addTransportListener(TransportListener),
removeTransportListener(TransportListener),
setTransportListener(TransportListener)
protected void handleError(java.lang.Throwable error,
int resourceId,
java.lang.Object[] objects)
Throwable) parameter. The
resource id (int) parameter. The objects (Object[])
parameter.
handleError in class EscObjecterror - The error (Throwable) parameter.resourceId - The resource id (int) parameter.objects - The objects (Object[]) parameter.attemptRecoveryFromError(int,Throwable)public boolean hasListeners()
boolean
result.
boolean) value.public boolean isActive()
boolean) value.setActive(boolean)public boolean isEcho()
boolean isEcho property value.
boolean) value.setEcho(boolean)public boolean isReceivingData()
boolean receivingData property value.
boolean)
value.setReceivingData(),
setReceivingData(boolean)public boolean isReceivingGoodData()
boolean receivingGoodData property value.
boolean)
value.setReceivingGoodData(),
setReceivingGoodData(boolean)public boolean isReceivingInput()
boolean receivingInput property value.
boolean)
value.setReceivingInput(),
setReceivingInput(boolean)public boolean isStarted()
boolean) value.
public void log(int severity,
java.lang.String message,
java.lang.Throwable exception)
int) parameter. The message (String)
parameter. The exception (Throwable) parameter.
log in class EscObjectseverity - The severity (int) parameter.message - The message (String) parameter.exception - The exception (Throwable) parameter.EscObject.log(int,String)public int noActivityProcessing()
public MessageService noActivityProcessingMessage()
MessageService)
value.
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(String),
getConfigurationInformation(),
setConfigurationInformation(Dictionary)
protected int read(byte[] bytes,
int offset,
int length)
throws java.io.IOException
byte[]) parameter. The offset (int)
parameter. The length (int) parameter.
bytes - The bytes (byte[]) parameter.offset - The offset (int) parameter.length - The length (int) parameter.
int) value.
IOException.
java.io.IOExceptionpublic void removeInterest(InterestService interest)
TransportService
removeInterest in interface TransportServiceinterest - The interest (InterestService) parameter.The interest (InterestService) parameter.,
addInterest(InterestService)public void removeTransportListener(TransportListener transportListener)
org.eclipse.soda.dk.transport.service.TransportServiceListener
listener to be removed.
removeTransportListener in interface TransportServicetransportListener - The transport listener (TransportListener) parameter.TransportService.removeTransportListener(org.eclipse.soda.dk.transport.service.TransportListener),
addTransportListener(TransportListener),
getTransportListener(),
setTransportListener(TransportListener)public void restart()
public void restartProcessing(boolean output)
output - The output (boolean) parameter.noActivityProcessing()public void send(MessageService message)
org.eclipse.soda.dk.message.service.MessageService
send in interface TransportServicemessage - The message (MessageService) parameter.TransportService.send(org.eclipse.soda.dk.message.service.MessageService),
send(byte[])
public void send(byte[] sendBytes)
throws java.io.IOException
sendBytes - The send bytes (byte[]) parameter.
java.io.IOExceptionThe send
bytes (byte[]) parameter.,
send(MessageService)public void setActive(boolean active)
boolean) parameter.
active - The active (boolean) parameter.isActive()public void setConfigurationInformation(java.util.Dictionary configurationInformation)
Dictionary)
parameter.
setConfigurationInformation in interface TransportServiceconfigurationInformation - The configuration information (Dictionary) parameter.getConfigurationInformation(String),
getConfigurationInformation(),
putConfigurationInformation(String,Object)public void setController(ControllerService controller)
ControllerService).
controller - The controller (ControllerService) parameter.createController(),
getController()public void setEcho(boolean echo)
boolean).
echo - The echo (boolean) parameter.isEcho()public void setErrorCount(int errorCount)
int)
parameter.
errorCount - The error count (int) parameter.getErrorCount(),
updateErrorCount()protected void setInformation(int information)
int).
information - The information (int) parameter.getConfigurationInformation(String),
getConfigurationInformation(),
getInformation(),
putConfigurationInformation(String,Object),
setConfigurationInformation(Dictionary)public void setInputMessageCount(int inputMessageCount)
int)
parameter.
inputMessageCount - The input message count (int) parameter.getInputMessageCount(),
updateInputMessageCount()public void setInterestMask(InterestMasks interestMask)
interestMask - The interest mask (InterestMasks) parameter.getInterestMask()public void setNoActivityTimeout(long noActivityTimeout)
long)
parameter.
noActivityTimeout - The no activity timeout (long) parameter.getNoActivityTimeout()public void setNotificationService(NotificationService notificationService)
NotificationService)
parameter.
setNotificationService in interface TransportServicenotificationService - The notification service (NotificationService) parameter.getNotificationService()public void setReceivingData()
isReceivingData(),
setReceivingData(boolean)public void setReceivingData(boolean receivingData)
boolean).
receivingData - The receiving data (boolean) parameter.isReceivingData(),
setReceivingData()public void setReceivingGoodData()
isReceivingGoodData(),
setReceivingGoodData(boolean)public void setReceivingGoodData(boolean receivingGoodData)
boolean).
receivingGoodData - The receiving good data (boolean) parameter.isReceivingGoodData(),
setReceivingGoodData()public void setReceivingInput()
isReceivingInput(),
setReceivingInput(boolean)public void setReceivingInput(boolean receivingInput)
boolean).
receivingInput - The receiving input (boolean) parameter.isReceivingInput(),
setReceivingInput()public void setRetryTime(long retryTime)
long)
parameter.
retryTime - The retry time (long) parameter.getRetryTime()public void setSentMessageCount(int sentMessageCount)
int)
parameter.
sentMessageCount - The sent message count (int) parameter.getSentMessageCount(),
updateSentMessageCount()public void setState(int state)
int)
parameter.
state - The state (int) parameter.getState()public void setStyle(short style)
Return the number of bytes (not bit length) of the parameter. The new
property value (short).
style - The style (short) parameter.getStyle()protected void setTransportListener(TransportListener transportListener)
org.eclipse.soda.dk.transport.service.TransportServiceListener).
transportListener - The transport listener (TransportListener) parameter.addTransportListener(TransportListener),
getTransportListener(),
removeTransportListener(TransportListener)public void setup()
public void setupCustom()
public void shutdown(boolean output)
boolean) parameter.
output - The output (boolean) parameter.public void start()
start in interface TransportServiceTransportService.start(),
start(boolean)public void start(boolean output)
boolean) parameter.
output - The output (boolean) parameter.start()
public int startup(boolean output)
throws java.lang.Exception
boolean) parameter.
output - The output (boolean) parameter.
int) value.
java.lang.Exception
public void startupMessageReceived(TransportService source,
java.lang.Object timestamp,
MessageService message)
TransportService) parameter. The
timestamp (Object) parameter. The message (MessageService)
parameter.
source - The source (TransportService) parameter.timestamp - The timestamp (Object) parameter.message - The message (MessageService) parameter.fireMessageReceived(Object,MessageService)public void stop()
stop in interface TransportServiceTransportService.stop()public java.lang.String toString()
toString in class EscObjectString) value.getString(String,String)public void updateErrorCount()
getErrorCount(),
setErrorCount(int)public int updateInputMessageCount()
int)
value.getInputMessageCount(),
setInputMessageCount(int)public void updateSentMessageCount()
getSentMessageCount(),
setSentMessageCount(int)public int waitStateChange()
waitStateChange(long)public int waitStateChange(long timeout)
timeout - The timeout (long) parameter.
waitStateChange()
public void write(byte[] bytes)
throws java.lang.Exception
byte[]
write in interface TransportServicebytes - The bytes (byte[]) parameter.
java.lang.Exceptionwrite(MessageService)
protected void write(MessageService message)
throws java.lang.Exception
message - The message (MessageService) parameter.
java.lang.Exceptionwrite(byte[])public void writeAndReport(MessageService message)
MessageService)
parameter.
message - The message (MessageService) parameter.writeAndReport(byte[])public void writeAndReport(byte[] bytes)
byte[])
parameter.
bytes - The bytes (byte[]) parameter.writeAndReport(MessageService)
|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||