|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.StandardManager
wt.wrmf.delivery.StandardReceiverService
Use the newStandardReceiverService
static factory method(s),
not the StandardReceiverService
constructor, to construct
instances of this class. Instances must be constructed using the static
factory(s), in order to ensure proper initialization of the instance.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private Hashtable |
inboxes
|
private Object |
lock
|
private static String |
RESOURCE
|
private boolean |
servDone
|
private static boolean |
VERBOSE
|
private static String |
versionID
|
Fields inherited from class wt.services.StandardManager |
|
Fields inherited from interface wt.services.Manager |
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE |
Constructor Summary | |
StandardReceiverService()
|
Method Summary | |
void |
createInbox(Class inBoxClass,
String name)
Supported API: false |
Serializable |
executeMethod(MethodInvocationDesc mid)
Executes the method described in the MethodInvocationDescription. |
(package private) Serializable |
executeMethodWithPayload(MethodInvocationDesc mid,
boolean withPayload,
InputStream is)
|
Serializable |
executeMethodWithPayload(MethodInvocationDesc mid,
InputStream is)
Supported API: false |
Object |
executePulledIS(ActionPullItem pullItem,
InputStream retIS)
Execute the received InputStream (retIS) according to the MethodInvocationDesc (desc) specified by the ActionPullItem (pullItem). |
String |
getConceptualClassname()
Deprecated. |
(package private) Inbox |
getInbox(String inboxName)
|
protected Hashtable |
getInboxes()
Gets the object for the association that plays role: inboxes. |
static StandardReceiverService |
newStandardReceiverService()
Default factory for the class. |
protected void |
performStartupProcess()
Supported API: false |
void |
pickUpMessage(InputStream is)
Receiver Service accept feedback from remote side as a stream. |
InputStream |
pickUpMessageBiDi(InputStream is)
Receiver Service accept the item as a stream and returns another input stream that contains the receipt item or an Alert Item. |
(package private) InputStream |
processActionShippingItem(ActionShippingItem asi,
InputStream is,
AlertItem alert)
|
private void |
processFeedback(ShippingItem feedbackObj,
InputStream is)
|
private void |
processFeedbackImmediate(Object feedbackObj,
InputStream is)
|
private void |
putBackItemToInbox(ShippingItem obj)
|
protected void |
putBackItemToInbox(ShippingItem obj,
InputStream is)
This method is executed at local/Sender's side. |
private void |
putToInbox(ShippingItem obj)
|
protected void |
putToInbox(ShippingItem obj,
InputStream is)
This method is executed at remote/Receiver's side. |
private InputStream |
returnAlert(AlertItem alert,
Throwable e)
|
private AlertItem |
returnExecutionAlert(String key,
Object[] params)
|
private InputStream |
returnReceipt(Receipt receipt)
|
protected void |
setInboxes(Hashtable a_Inboxes)
Sets the object for the association that plays role: inboxes. |
private void |
updateDeliveryStatus(long trackingId,
String srcSystem,
DeliveryStatus status)
|
(package private) void |
updateDeliveryStatus(ShippingItem obj,
DeliveryStatus status)
|
private void |
waitInitComplete()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private Hashtable inboxes
private static final String versionID
private static boolean VERBOSE
private Object lock
private boolean servDone
Constructor Detail |
public StandardReceiverService()
Method Detail |
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class StandardManager
protected Hashtable getInboxes()
protected void setInboxes(Hashtable a_Inboxes) throws WTPropertyVetoException
a_Inboxes
-
WTPropertyVetoException
protected void performStartupProcess() throws ManagerException
performStartupProcess
in class StandardManager
ManagerException
protected void putToInbox(ShippingItem obj, InputStream is) throws WTDeliveryException
obj
- is
-
WTDeliveryException
protected void putBackItemToInbox(ShippingItem obj, InputStream is) throws WTDeliveryException
obj
- is
-
WTDeliveryException
public static StandardReceiverService newStandardReceiverService() throws WTException
WTException
public void pickUpMessage(InputStream is) throws WTDeliveryException
pickUpMessage
in interface ReceiverService
is
-
WTDeliveryException
public InputStream pickUpMessageBiDi(InputStream is)
pickUpMessageBiDi
in interface ReceiverService
is
-
public void createInbox(Class inBoxClass, String name) throws WTDeliveryException
createInbox
in interface ReceiverService
inBoxClass
- name
-
WTDeliveryException
public Serializable executeMethod(MethodInvocationDesc mid) throws WTDeliveryException
executeMethod
in interface ReceiverService
mid
-
WTDeliveryException
public Serializable executeMethodWithPayload(MethodInvocationDesc mid, InputStream is) throws WTDeliveryException
executeMethodWithPayload
in interface ReceiverService
mid
- is
-
WTDeliveryException
public Object executePulledIS(ActionPullItem pullItem, InputStream retIS) throws WTDeliveryException
executePulledIS
in interface ReceiverService
pullItem
- retIS
-
WTDeliveryException
Serializable executeMethodWithPayload(MethodInvocationDesc mid, boolean withPayload, InputStream is) throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException
ClassNotFoundException
NoSuchMethodException
IllegalAccessException
IllegalArgumentException
InvocationTargetException
private void putToInbox(ShippingItem obj) throws WTDeliveryException
WTDeliveryException
private void putBackItemToInbox(ShippingItem obj) throws WTDeliveryException
WTDeliveryException
private InputStream returnAlert(AlertItem alert, Throwable e)
private InputStream returnReceipt(Receipt receipt)
private AlertItem returnExecutionAlert(String key, Object[] params)
void updateDeliveryStatus(ShippingItem obj, DeliveryStatus status) throws QueryException, WTException, WTPropertyVetoException
QueryException
WTException
WTPropertyVetoException
private void updateDeliveryStatus(long trackingId, String srcSystem, DeliveryStatus status) throws QueryException, WTException, WTPropertyVetoException
QueryException
WTException
WTPropertyVetoException
private void processFeedbackImmediate(Object feedbackObj, InputStream is) throws WTDeliveryException
WTDeliveryException
private void processFeedback(ShippingItem feedbackObj, InputStream is) throws WTDeliveryException
WTDeliveryException
InputStream processActionShippingItem(ActionShippingItem asi, InputStream is, AlertItem alert) throws WTDeliveryException, IOException
WTDeliveryException
IOException
Inbox getInbox(String inboxName)
private void waitInitComplete()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |