/** * {@inheritDoc} */ @Override public void endActivity(DiameterActivityHandle arg0) { sleeEndpoint.endActivity(arg0); }
public void startActivity(CAPDialogWrapper capDialogWrapper) throws ActivityAlreadyExistsException, NullPointerException, IllegalStateException, SLEEException, StartActivityException { this.sleeEndpoint.startActivity(capDialogWrapper.getActivityHandle(), capDialogWrapper, ACTIVITY_FLAGS); }
public void startSuspendedActivity(MAPDialogWrapper mapDialogWrapper) throws ActivityAlreadyExistsException, NullPointerException, IllegalStateException, SLEEException, StartActivityException { this.sleeEndpoint.startActivitySuspended(mapDialogWrapper.getActivityHandle(), mapDialogWrapper, ActivityFlags.REQUEST_ENDED_CALLBACK); }
/** * Method for performing tasks when activity is created, such as informing SLEE about it and storing into internal map. * * @param ac the activity that has been created */ private void addActivity(DiameterActivity ac, boolean suspended) { try { // Inform SLEE that Activity Started DiameterActivityImpl activity = (DiameterActivityImpl) ac; if (suspended) { sleeEndpoint.startActivitySuspended(activity.getActivityHandle(), activity, MARSHALABLE_ACTIVITY_FLAGS); } else { sleeEndpoint.startActivity(activity.getActivityHandle(), activity, MARSHALABLE_ACTIVITY_FLAGS); } // Put it into our activites map activities.put(activity.getActivityHandle(), activity); if(tracer.isInfoEnabled()) { tracer.info("Activity started [" + activity.getActivityHandle() + "]"); } } catch (Exception e) { tracer.severe("Error creating activity", e); //FIXME: invalidate session? throw new RuntimeException("Error creating activity", e); } }
protected void fireEvent(FireableEventType eventType, Object activity, Object event) { final ActivityHandle handle = this.getActivityHandle(activity); //TODO insert global title. //this causes failure // final Address address = new Address(AddressPlan.GT, ""); try { sleeEndpoint.fireEvent(handle, eventType, event, null, null, EVENT_FLAGS); tracer.info("Fired event: " + eventType); } catch (Throwable e) { tracer.severe("Failed to fire event", e); } }
sleeEndpoint.fireEvent(new AsteriskActivityHandle(actobj.MessageID()), eventObj, eventID, address); } catch (IllegalStateException e) { e.printStackTrace(); sleeEndpoint.activityEnding(handle); } catch (Exception e) { log.error("Could not end activity: " + actobj);
/** * Method for performing tasks when activity is created, such as informing SLEE about it and storing into internal map. * * @param ac the activity that has been created */ private void addActivity(DiameterActivity ac, boolean suspended) { try { // Inform SLEE that Activity Started DiameterActivityImpl activity = (DiameterActivityImpl) ac; if (suspended) { sleeEndpoint.startActivitySuspended(activity.getActivityHandle(), activity, MARSHALABLE_ACTIVITY_FLAGS); } else { sleeEndpoint.startActivity(activity.getActivityHandle(), activity, MARSHALABLE_ACTIVITY_FLAGS); } // Put it into our activites map activities.put(activity.getActivityHandle(), activity); if(tracer.isInfoEnabled()) { tracer.info("Activity started [" + activity.getActivityHandle() + "]"); } } catch (Exception e) { tracer.severe("Error creating activity", e); //FIXME: invalidate session? throw new RuntimeException("Error creating activity", e); } }
/** * Receives an Event and sends it to the SLEE * @param event * @param handle */ public void processResponseEvent(FireableEventType eventType, ResponseEvent event, XCAPResourceAdaptorActivityHandle handle){ if (tracer.isFineEnabled()) { tracer.fine("NEW RESPONSE EVENT"); } try { sleeEndpoint.fireEvent(handle,eventType, event, null, null); } catch (Exception e) { tracer.severe("unable to fire event",e); } }
/** * {@inheritDoc} */ @Override public void endActivity(DiameterActivityHandle handle) { sleeEndpoint.endActivity(handle); }
/** * Method for performing tasks when activity is created, such as informing SLEE about it and storing into internal map. * * @param ac the activity that has been created */ private void addActivity(DiameterActivity ac, boolean suspended) { try { // Inform SLEE that Activity Started DiameterActivityImpl activity = (DiameterActivityImpl) ac; if (suspended) { sleeEndpoint.startActivitySuspended(activity.getActivityHandle(), activity, MARSHALABLE_ACTIVITY_FLAGS); } else { sleeEndpoint.startActivity(activity.getActivityHandle(), activity, MARSHALABLE_ACTIVITY_FLAGS); } // Set the listener activity.setSessionListener(this); // Put it into our activities map activities.put(activity.getActivityHandle(), activity); if(tracer.isInfoEnabled()) { tracer.info("Activity started [" + activity.getActivityHandle() + "]"); } } catch (Exception e) { tracer.severe("Error creating activity", e); throw new RuntimeException("Error creating activity", e); } }
sleeEndpoint.fireEvent(new TCKActivityHandle(activityObj), eventObj, eventTypeId, address); } catch (Exception e2) {
/** * Protected */ protected void startNewSmppServerTransactionActivity(SmppTransactionImpl txImpl) throws ActivityAlreadyExistsException, NullPointerException, IllegalStateException, SLEEException, StartActivityException { sleeEndpoint.startActivity(txImpl.getActivityHandle(), txImpl, ActivityFlags.REQUEST_ENDED_CALLBACK); }
protected void startNewSmppTransactionSuspendedActivity(SmppTransactionImpl txImpl) throws ActivityAlreadyExistsException, NullPointerException, IllegalStateException, SLEEException, StartActivityException { sleeEndpoint.startActivitySuspended(txImpl.getActivityHandle(), txImpl, ActivityFlags.REQUEST_ENDED_CALLBACK); }
/** * {@inheritDoc} */ @Override public void endActivity(DiameterActivityHandle handle) { sleeEndpoint.endActivity(handle); }
/** * Method for performing tasks when activity is created, such as informing SLEE about it and storing into internal map. * * @param ac the activity that has been created */ private void addActivity(final DiameterActivity ac, boolean suspended) { try { // Inform SLEE that Activity Started final DiameterActivityImpl activity = (DiameterActivityImpl) ac; if (suspended) { sleeEndpoint.startActivitySuspended(activity.getActivityHandle(), activity, MARSHALABLE_ACTIVITY_FLAGS); } else { sleeEndpoint.startActivity(activity.getActivityHandle(), activity, MARSHALABLE_ACTIVITY_FLAGS); } // Set the listener activity.setSessionListener(this); // Put it into our activities map activities.put(activity.getActivityHandle(), activity); if (tracer.isInfoEnabled()) { tracer.info("Activity started [" + activity.getActivityHandle() + "]"); } } catch (Exception e) { tracer.severe("Error creating activity", e); throw new RuntimeException("Error creating activity", e); } }
/** * Receives an Event and sends it to the SLEE * @param event * @param handle */ public void processResponseEvent(FireableEventType eventType, ResponseEvent event, XCAPResourceAdaptorActivityHandle handle){ if (tracer.isFineEnabled()) { tracer.fine("NEW RESPONSE EVENT"); } try { sleeEndpoint.fireEvent(handle,eventType, event, null, null); } catch (Exception e) { tracer.severe("unable to fire event",e); } }
public void startActivity(CAPDialogWrapper capDialogWrapper) throws ActivityAlreadyExistsException, NullPointerException, IllegalStateException, SLEEException, StartActivityException { this.sleeEndpoint.startActivity(capDialogWrapper.getActivityHandle(), capDialogWrapper, ACTIVITY_FLAGS); }
public void startSuspendedActivity(CAPDialogWrapper capDialogWrapper) throws ActivityAlreadyExistsException, NullPointerException, IllegalStateException, SLEEException, StartActivityException { this.sleeEndpoint.startActivitySuspended(capDialogWrapper.getActivityHandle(), capDialogWrapper, ActivityFlags.REQUEST_ENDED_CALLBACK); }
/** * {@inheritDoc} */ @Override public void endActivity(final DiameterActivityHandle arg0) { this.sleeEndpoint.endActivity(arg0); }
/** * Method for performing tasks when activity is created, such as informing SLEE about it and storing into internal map. * * @param ac the activity that has been created */ private void addActivity(DiameterActivity ac, boolean suspended) { try { // Inform SLEE that Activity Started DiameterActivityImpl activity = (DiameterActivityImpl) ac; if (suspended) { sleeEndpoint.startActivitySuspended(activity.getActivityHandle(), activity, MARSHALABLE_ACTIVITY_FLAGS); } else { sleeEndpoint.startActivity(activity.getActivityHandle(), activity, MARSHALABLE_ACTIVITY_FLAGS); } // Set the listener activity.setSessionListener(this); // Put it into our activities map activities.put(activity.getActivityHandle(), activity); if(tracer.isInfoEnabled()) { tracer.info("Activity started [" + activity.getActivityHandle() + "]"); } } catch (Exception e) { tracer.severe("Error creating activity", e); throw new RuntimeException("Error creating activity", e); } }