public void startSuspendedActivity(MAPDialogWrapper mapDialogWrapper) throws ActivityAlreadyExistsException, NullPointerException, IllegalStateException, SLEEException, StartActivityException { this.sleeEndpoint.startActivitySuspended(mapDialogWrapper.getActivityHandle(), mapDialogWrapper, ActivityFlags.REQUEST_ENDED_CALLBACK); }
protected void startNewSmppTransactionSuspendedActivity(SmppTransactionImpl txImpl) throws ActivityAlreadyExistsException, NullPointerException, IllegalStateException, SLEEException, StartActivityException { sleeEndpoint.startActivitySuspended(txImpl.getActivityHandle(), txImpl, ActivityFlags.REQUEST_ENDED_CALLBACK); }
public void startSuspendedActivity(CAPDialogWrapper capDialogWrapper) throws ActivityAlreadyExistsException, NullPointerException, IllegalStateException, SLEEException, StartActivityException { this.sleeEndpoint.startActivitySuspended(capDialogWrapper.getActivityHandle(), capDialogWrapper, ActivityFlags.REQUEST_ENDED_CALLBACK); }
public void startSuspendedActivity(TCAPDialogWrapper mapDialogWrapper) throws ActivityAlreadyExistsException, NullPointerException, IllegalStateException, SLEEException, StartActivityException { this.sleeEndpoint.startActivitySuspended(mapDialogWrapper.getActivityHandle(), mapDialogWrapper, ActivityFlags.REQUEST_ENDED_CALLBACK); }
public void startSuspendedActivity(CAPDialogWrapper capDialogWrapper) throws ActivityAlreadyExistsException, NullPointerException, IllegalStateException, SLEEException, StartActivityException { this.sleeEndpoint.startActivitySuspended(capDialogWrapper.getActivityHandle(), capDialogWrapper, ActivityFlags.REQUEST_ENDED_CALLBACK); }
public void startSuspendedActivity(MAPDialogWrapper mapDialogWrapper) throws ActivityAlreadyExistsException, NullPointerException, IllegalStateException, SLEEException, StartActivityException { this.sleeEndpoint.startActivitySuspended(mapDialogWrapper.getActivityHandle(), mapDialogWrapper, ActivityFlags.REQUEST_ENDED_CALLBACK); }
protected void startNewSmppTransactionSuspendedActivity(SmppTransactionImpl txImpl) throws ActivityAlreadyExistsException, NullPointerException, IllegalStateException, SLEEException, StartActivityException { sleeEndpoint.startActivitySuspended(txImpl.getHandle(), txImpl, ActivityFlags.REQUEST_ENDED_CALLBACK); this.handleVsActivityMap.put(txImpl.getHandle(), txImpl); }
public AsyncActivity createActivity() throws ActivityAlreadyExistsException, StartActivityException { checkState(); // generate id final String id = UUID.randomUUID().toString(); // create handle final XCAPResourceAdaptorActivityHandle handle = new XCAPResourceAdaptorActivityHandle( id); // create activity final AsyncActivityImpl activity = new AsyncActivityImpl(ra, handle); // start activity this.ra.getSleeEndpoint().startActivitySuspended(handle, activity, ACTIVITY_FLAGS); this.ra.addActivity(handle, activity); return activity; }
public AsyncActivity createActivity() throws ActivityAlreadyExistsException, StartActivityException { checkState(); // generate id final String id = UUID.randomUUID().toString(); // create handle final XCAPResourceAdaptorActivityHandle handle = new XCAPResourceAdaptorActivityHandle( id); // create activity final AsyncActivityImpl activity = new AsyncActivityImpl(ra, handle); // start activity this.ra.getSleeEndpoint().startActivitySuspended(handle, activity, ACTIVITY_FLAGS); this.ra.addActivity(handle, activity); return activity; }
/** * 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); } }
/** * 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); } }
private HttpClientNIORequestActivityImpl createActivity() throws SLEEException, StartActivityException { final HttpClientNIORequestActivityImpl activity = new HttpClientNIORequestActivityImpl( ra); final HttpClientNIORequestActivityHandle handle = new HttpClientNIORequestActivityHandle( activity.getId()); // this happens with a tx context this.ra.getResourceAdaptorContext().getSleeEndpoint() .startActivitySuspended(handle, activity, ACTIVITY_FLAGS); this.ra.addActivity(handle, activity); if (tracer.isFineEnabled()) { tracer.fine("Started activity " + activity.getId()); } return activity; }
/** * 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); } }
/** * 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, final boolean suspend ) { try { // Inform SLEE that Activity Started DiameterActivityImpl activity = (DiameterActivityImpl) ac; if(suspend) { 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); } }
/** * 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); } }
/** * 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); } }
/** * 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); } }
/** * 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, DEFAULT_ACTIVITY_FLAGS); } else { sleeEndpoint.startActivity(activity.getActivityHandle(), activity, DEFAULT_ACTIVITY_FLAGS); } // Set the listener activity.setSessionListener(this); // 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); throw new RuntimeException("Error creating activity", e); } }
/** * 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 activityCreated(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/starting activity.", e); } }
/** * 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 activityCreated(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/starting activity.", e); } }