public class EmbeddedServiceHandle extends EmbeddedHandle implements ServiceInterface
EmbeddedHandle| Modifier and Type | Field and Description |
|---|---|
protected ServiceInterface |
service |
protected java.lang.String |
serviceId |
DEFAULT_QUEUE_NAME, handleId, isRegistered, queue, stafHandle| Constructor and Description |
|---|
EmbeddedServiceHandle(java.lang.String handleId,
java.lang.String serviceId,
ServiceInterface service)
Create and Register a new Service Handle.
|
| Modifier and Type | Method and Description |
|---|---|
com.ibm.staf.STAFResult |
acceptRequest(InfoInterface.RequestInfo info)
Accept a request sent via another handler's submit calls to the service using this Handle.
|
protected void |
registerHandle()
Override in subclasses.
|
void |
setServiceInfo(java.lang.String handleId,
java.lang.String serviceId,
ServiceInterface service) |
com.ibm.staf.STAFResult |
terminateService()
Calls terminateService on the embedded service.
|
acceptQueueMessage, clearQueue, getHandle, getQueueMessage, register, sendQueueMessage, setHandleId, submit, submit, submit2, submit2, unRegisterprotected java.lang.String serviceId
protected ServiceInterface service
public EmbeddedServiceHandle(java.lang.String handleId,
java.lang.String serviceId,
ServiceInterface service)
throws com.ibm.staf.STAFException
handleId - of the service--which is different than the service name.serviceId - -- the service name for the service using the Handle.service - the Service using the Handle.com.ibm.staf.STAFException - if the arguments are invalid or already registered.public void setServiceInfo(java.lang.String handleId,
java.lang.String serviceId,
ServiceInterface service)
protected void registerHandle()
throws com.ibm.staf.STAFException
EmbeddedHandleregisterHandle in class EmbeddedHandlecom.ibm.staf.STAFExceptionpublic com.ibm.staf.STAFResult acceptRequest(InfoInterface.RequestInfo info)
acceptRequest in interface ServiceInterfacepublic com.ibm.staf.STAFResult terminateService()
terminateService in interface ServiceInterfaceCopyright © SAS Institute. All Rights Reserved.