public abstract class DdeServiceEventAdapter extends java.lang.Object implements DdeServiceEventHandler
| Constructor and Description |
|---|
DdeServiceEventAdapter() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
adviseRequest(java.lang.String topic,
DdeItem item)
Occurs when the value of the item has been changed and it is
necessary to notify clients.
|
boolean |
adviseStart(java.lang.String topic,
DdeItem item)
Occurs when a client begins an advise loop.
|
void |
adviseStop(java.lang.String topic,
DdeItem item)
Occurs when a client stops an advise loop.
|
boolean |
beforeConnect(java.lang.String topic,
boolean sameApplication)
Occurs when a client attempts to establish connection with the service.
|
void |
disconnect(boolean sameApplication)
Occurs on disconnect.
|
void |
disconnect(boolean sameApplication)
Occurs on disconnect.
|
DdeResponse |
execute(java.lang.String topic,
java.lang.String command)
Occurs when a client makes a command execution request.
|
DdeResponse |
pokeData(java.lang.String topic,
DdeItem item,
byte[] data)
Occurs when a client sends data to the service.
|
byte[] |
requestData(java.lang.String topic,
DdeItem item)
Occurs when a client makes a request for data.
|
void |
serviceRegister(java.lang.String service,
java.lang.String instanceName)
Occurs when a service is registered.
|
void |
serviceRegister(java.lang.String service,
java.lang.String instanceName)
Occurs when a service is registered.
|
void |
serviceUnregister(java.lang.String service,
java.lang.String instanceName)
Occurs when a service is unregistered.
|
void |
serviceUnregister(java.lang.String service,
java.lang.String instanceName)
Occurs when a service is unregistered.
|
public byte[] adviseRequest(java.lang.String topic,
DdeItem item)
DdeServiceEventHandleradviseRequest in interface DdeServiceEventHandlertopic - is the name of the topic.item - specifies the item name and data format.null if the service is unable to process the request.public boolean adviseStart(java.lang.String topic,
DdeItem item)
DdeServiceEventHandleradviseStart in interface DdeServiceEventHandlertopic - is the name of the topic.item - specifies the item name and data format.true to allow the client to start the advise loop, or false otherwise.public void adviseStop(java.lang.String topic,
DdeItem item)
DdeServiceEventHandleradviseStop in interface DdeServiceEventHandlertopic - is the name of the topic.item - specifies the item name.public DdeResponse execute(java.lang.String topic, java.lang.String command)
DdeServiceEventHandlerexecute in interface DdeServiceEventHandlertopic - is the name of the topic.command - is the command to be executed.public boolean beforeConnect(java.lang.String topic,
boolean sameApplication)
DdeServiceEventHandlerbeforeConnect in interface DdeServiceEventHandlertopic - is the name of the topic.sameApplication - specifies if the client and the service are the same application.true to allow the client to connect, or false otherwise.public DdeResponse pokeData(java.lang.String topic, DdeItem item, byte[] data)
DdeServiceEventHandlerpokeData in interface DdeServiceEventHandlertopic - is the name of the topic.item - specifies the item name and data format.data - is the sent data.public byte[] requestData(java.lang.String topic,
DdeItem item)
DdeServiceEventHandlerrequestData in interface DdeServiceEventHandlertopic - is the name of the topic.item - specifies the item name and data format.null if the service is unable to process the request.public void disconnect(boolean sameApplication)
sameApplication - specifies if the client and the service are the same application.public void serviceRegister(java.lang.String service,
java.lang.String instanceName)
service - is the basic name of the service.instanceName - is an instance-specific service name.public void serviceUnregister(java.lang.String service,
java.lang.String instanceName)
service - is the basic name of the service.instanceName - is an instance-specific service name.public void disconnect(boolean sameApplication)
sameApplication - specifies if the client and the service are the same application.public void serviceRegister(java.lang.String service,
java.lang.String instanceName)
service - is the basic name of the service.instanceName - is an instance-specific service name.public void serviceUnregister(java.lang.String service,
java.lang.String instanceName)
service - is the basic name of the service.instanceName - is an instance-specific service name.