Tabnine Logo
ActivityContext.endActivity
Code IndexAdd Tabnine to your IDE (free)

How to use
endActivity
method
in
org.mobicents.slee.container.activity.ActivityContext

Best Java code snippets using org.mobicents.slee.container.activity.ActivityContext.endActivity (Showing top 8 results out of 315)

origin: org.mobicents.servers.jainslee.core/profiles

/**
 * 
 */
public void endActivity() {
  ActivityContext ac = getActivityContext();
  if (ac != null) {
    ac.endActivity();				
  }                
}
origin: org.mobicents.servers.jainslee.core/activities

public void endActivity() throws TransactionRequiredLocalException,
    SLEEException {
  // Check if in valid context.
  if (logger.isDebugEnabled()) {
    logger.debug("NullActivity.endActivity()");
  }
  sleeContainer.getTransactionManager().mandateTransaction();
  sleeContainer.getActivityContextFactory().getActivityContext(
      new NullActivityContextHandle(handle))
      .endActivity();
}
origin: org.mobicents.servers.jainslee.core/profiles

.getActivityContext(handle);
if (ac != null) {
  ac.endActivity();
origin: org.mobicents.servers.jainslee.core/resource

public void failOverClusterMember(Address arg0) {
  // lets search and end all ACs that were local to the node which failed
  final ActivityContextFactory acFactory = resourceManagement.getSleeContainer()
  .getActivityContextFactory();
  // ouch, this is going to be expensive
  for (ActivityContextHandle ach : acFactory.getAllActivityContextsHandles(ActivityType.RA)) {
    final ResourceAdaptorActivityContextHandleImpl raach = (ResourceAdaptorActivityContextHandleImpl) ach;
    if (raach.getActivityHandle().getClass() == ActivityHandleReference.class) {
      final ActivityHandleReference reference = (ActivityHandleReference) raach.getActivityHandle();
      if (reference.getAddress().equals(arg0)) {
        final ActivityContext ac = acFactory.getActivityContext(raach);
        if (ac != null) {
          ac.endActivity();
        }
      }
    }
  }
}
origin: org.mobicents.servers.jainslee.core/services

ac.endActivity();
origin: org.mobicents.servers.jainslee.core/activities

public void activityUnreferenced() {
  if (logger.isDebugEnabled()) {
    logger.debug("Activity Context with handle "
        + activityContextHandle + " is now unreferenced");
  }
  switch (activityContextHandle.getActivityType()) {
  case RA:
    // external activity, notify RA that the activity is unreferenced
    ((ResourceAdaptorActivityContextHandle) activityContextHandle)
        .getResourceAdaptorEntity()
        .getResourceAdaptorObject()
        .activityUnreferenced(
            activityContextHandle.getActivityHandle());
    break;
  case NULL:
    // null activity unreferenced, end it
    ActivityContext ac = sleeContainer.getActivityContextFactory()
        .getActivityContext(activityContextHandle);
    if (ac != null)
      ac.endActivity();
    break;
  default:
    // do nothing
    break;
  }
}
origin: org.mobicents.servers.jainslee.core/resource

ac.endActivity();							
origin: org.mobicents.servers.jainslee.core/resource

  ac.endActivity();
} else {
  throw new UnrecognizedActivityHandleException(handle.toString());
org.mobicents.slee.container.activityActivityContextendActivity

Popular methods of ActivityContext

  • getActivityContextInterface
  • getActivityContextHandle
  • fireEvent
  • detachSbbEntity
  • getLocalActivityContext
  • activityEnded
  • attachSbbEntity
  • isEnding
  • addNameBinding
  • attachTimer
  • beforeDeliveringEvent
  • detachTimer
  • beforeDeliveringEvent,
  • detachTimer,
  • getAttachedTimers,
  • getDataAttribute,
  • getNamingBindings,
  • getSbbAttachmentSet,
  • getSortedSbbAttachmentSet,
  • removeNameBinding,
  • setDataAttribute

Popular in Java

  • Reactive rest calls using spring rest template
  • getExternalFilesDir (Context)
  • getResourceAsStream (ClassLoader)
  • getSharedPreferences (Context)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now