|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface specifies all the basic methods to allow communications with other components. Currently, this means calling userRequest, executeAsynchronousWidgetService and executeSynchronousWidgetService.
Method Summary | |
DataObject |
executeAsynchronousWidgetService(AsyncServiceHandler handler,
java.lang.String serviceHost,
int servicePort,
java.lang.String serviceId,
java.lang.String service,
java.lang.String function,
Attributes input,
java.lang.String requestTag)
This method requests that a widget execute an asynchronous service |
DataObject |
executeSynchronousWidgetService(java.lang.String remoteHost,
int remotePort,
java.lang.String remoteId,
java.lang.String service,
java.lang.String function,
Attributes input)
This method requests that a widget execute a synchronous service |
void |
independentUserRequest(IndependentCommunication request)
This method is used to send a message through a threaded communication. |
DataObject |
userRequest(DataObject data,
java.lang.String url)
Deprecated. |
DataObject |
userRequest(DataObject data,
java.lang.String url,
java.lang.String server)
Method that allows a component to communicate with another component. |
DataObject |
userRequest(DataObject data,
java.lang.String url,
java.lang.String server,
int port)
Method that allows a component to communicate with another component. |
DataObject |
userRequest(RequestObject request)
Method that allows a component to communicate with another component. |
Method Detail |
public DataObject userRequest(RequestObject request) throws EncodeException, InvalidProtocolException, ProtocolException, DecodeException, InvalidDecoderException, InvalidEncoderException, java.io.IOException
request
- The RequestObject containing the data to send, the url
name and the destination server hostname and port.
EncodeException
- when the encoding can't be completed successfully
DecodeException
- when the decoding can't be completed successfully
InvalidEncoderException
- when the encoder can't be created
InvalidDecoderException
- when the decoder can't be created
ProtocolException
- when the request can't be sent successfully
InvalidProtocolException
- when the request can't be sent successfully due to invalid protocol use
java.io.IOException
public DataObject userRequest(DataObject data, java.lang.String url) throws EncodeException, InvalidProtocolException, ProtocolException, DecodeException, InvalidDecoderException, InvalidEncoderException, java.io.IOException
data
- DataObject that contains the requesturl
- RPC tag that indicates the type of request
EncodeException
- when the encoding can't be completed successfully
DecodeException
- when the decoding can't be completed successfully
InvalidEncoderException
- when the encoder can't be created
InvalidDecoderException
- when the decoder can't be created
ProtocolException
- when the request can't be sent successfully
InvalidProtocolException
- when the request can't be sent successfully due to invalid protocol use
java.io.IOException
public DataObject userRequest(DataObject data, java.lang.String url, java.lang.String server) throws EncodeException, InvalidProtocolException, ProtocolException, DecodeException, InvalidDecoderException, InvalidEncoderException, java.io.IOException
data
- DataObject that contains the requesturl
- RPC tag that indicates the type of requestserver
- Hostname of the component to communicate with
EncodeException
- when the encoding can't be completed successfully
DecodeException
- when the decoding can't be completed successfully
InvalidEncoderException
- when the encoder can't be created
InvalidDecoderException
- when the decoder can't be created
ProtocolException
- when the request can't be sent successfully
InvalidProtocolException
- when the request can't be sent successfully due to invalid protocol use
java.io.IOException
public DataObject userRequest(DataObject data, java.lang.String url, java.lang.String server, int port) throws EncodeException, ProtocolException, InvalidProtocolException, DecodeException, InvalidDecoderException, InvalidEncoderException, java.io.IOException
data
- DataObject that contains the requesturl
- RPC tag that indicates the type of requestserver
- Hostname of the component to communicate withport
- Port number of the component to communicate with
EncodeException
- when the encoding can't be completed successfully
DecodeException
- when the decoding can't be completed successfully
InvalidEncoderException
- when the encoder can't be created
InvalidDecoderException
- when the decoder can't be created
ProtocolException
- when the request can't be sent successfully
InvalidProtocolException
- when the request can't be sent successfully due to invalid protocol use
java.io.IOException
public DataObject executeAsynchronousWidgetService(AsyncServiceHandler handler, java.lang.String serviceHost, int servicePort, java.lang.String serviceId, java.lang.String service, java.lang.String function, Attributes input, java.lang.String requestTag)
handler
- Handler to handle the results of the serviceserviceHost
- Hostname of the widget with the serviceservicePort
- Port number of the widget with the serviceserviceId
- Id of the widget with the serviceservice
- Name of the widget service to runfunction
- Name of the particular service function to runinput
- AttributeNameValues object to use to execute the servicerequestTag
- Unique tag provided by caller to identify result
public DataObject executeSynchronousWidgetService(java.lang.String remoteHost, int remotePort, java.lang.String remoteId, java.lang.String service, java.lang.String function, Attributes input)
remoteHost
- Hostname of the widgetremotePort
- Port number of the widgetremoteId
- Id of the widgetservice
- Name of the widget service to runfunction
- Name of the particular service function to runinput
- AttributeNameValues object to use to execute the service
public void independentUserRequest(IndependentCommunication request) throws EncodeException, InvalidEncoderException
request
- The IndependentCommunication object that contain the RequestObject,
and will contain after the communication the reply dataObject and the vector of exception
EncodeException
InvalidEncoderException
BaseObject.handleIndependentReply(context.arch.comm.clients.IndependentCommunication)
,
IndependentCommunication
,
context.arch.comm.clients.IndependentCommunications
,
context.arch.util.RequesObject
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |