|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The CommonCommunicationsService interface is the common interface for communication services.
Field Summary | |
static java.lang.String |
CLOSED
|
static java.lang.String |
DATA
|
static java.lang.String |
DATASENT
|
static java.lang.String |
ERROR
|
static java.lang.String |
OPENED
|
static java.lang.String |
RECEIVERC
|
static java.lang.String |
TIMEOUT
|
Method Summary | |
void |
ccClose()
Closes the communications sevice. |
void |
ccOpen()
Opens the communications chanel. |
CCMessage |
ccReceiveData(long aTimeout)
Reads the data that has been received. |
void |
ccSendData(java.lang.String aString)
Sends aData thought the communications channel. |
CCMessage |
ccSendReceive(java.lang.String aString,
long aTimeout)
Sends aString to the communication services and waits for aTimeout to receive the data. |
java.lang.String |
getCcClosedEventName()
Returns the name of the closed event. |
java.lang.String |
getCcDataReceivedEventName()
Returns the name of the dataReceived event. |
java.lang.String |
getCcErrorReceivedEventName()
Returns the name of the errorReceived event. |
java.lang.String |
getCcOpenedEventName()
Returns the name of the opened event. |
boolean |
isFree()
Returns true if the communication service is ready to be used. |
boolean |
isOffline()
Returns true if the communication service is offline. |
void |
setInUse(boolean inUse)
Sets service inUse attribute. |
Methods inherited from interface com.ibm.dse.base.Notifier |
addHandler,
getHandlersList,
getName,
removeHandler,
setName,
signalEvent,
signalEvent,
terminate |
Field Detail |
public static final java.lang.String RECEIVERC
public static final java.lang.String TIMEOUT
public static final java.lang.String DATASENT
public static final java.lang.String OPENED
public static final java.lang.String CLOSED
public static final java.lang.String DATA
public static final java.lang.String ERROR
Method Detail |
public void ccClose() throws DSECCException
public void ccOpen() throws DSECCException
public CCMessage ccReceiveData(long aTimeout) throws DSECCException
aTimeout
- longpublic void ccSendData(java.lang.String aString) throws DSECCException
aString
- java.lang.Stringpublic CCMessage ccSendReceive(java.lang.String aString, long aTimeout) throws DSECCException
aString
- java.lang.StringaTimeout
- longpublic java.lang.String getCcClosedEventName()
public java.lang.String getCcDataReceivedEventName()
public java.lang.String getCcErrorReceivedEventName()
public java.lang.String getCcOpenedEventName()
public boolean isFree()
public boolean isOffline()
public void setInUse(boolean inUse)
inUse
- boolean
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |