congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
ActivityContext.getActivityContextInterface
Code IndexAdd Tabnine to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew ArrayList()
  • Codota Iconnew LinkedList()
  • Smart code suggestions by Tabnine
}
origin: org.mobicents.servers.jainslee.core/services

public ActivityContextInterface[] getActivities()
    throws TransactionRequiredLocalException, IllegalStateException,
    SLEEException {
  if (logger.isTraceEnabled()) {
    logger.trace("getActivities() " + this.sbbObject.getState());
  }
  if (SbbObjectState.READY != this.sbbObject.getState()) {
    throw new IllegalStateException(
        "Cannot call SbbContext.getActivities() in "
            + this.sbbObject.getState());
  }
  ActivityContextFactory acf = sleeContainer.getActivityContextFactory();
  List<ActivityContextInterface> result = new ArrayList<ActivityContextInterface>();
  ActivityContext ac = null;
  for (ActivityContextHandle ach : sbbObject.getSbbEntity()
      .getActivityContexts()) {
    ac = acf.getActivityContext(ach);
    if (ac != null) {
      result.add(ac.getActivityContextInterface());
    }
  }
  return result.toArray(EMPTY_ACI_ARRAY);
}
origin: org.mobicents.servers.jainslee.core/events

public ActivityContextInterface getActivityContextInterface() {
  return factory.getSleeContainer().getActivityContextFactory().getActivityContext(getActivityContextHandle()).getActivityContextInterface();
}

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

public ActivityContextInterface getActivityContextInterface(
    NullActivity nullActivity) throws NullPointerException,
    TransactionRequiredLocalException, UnrecognizedActivityException,
    FactoryException {
   if (nullActivity == null ) 
     throw new NullPointerException ("null NullActivity ! huh!!");
  
  if (! (nullActivity instanceof NullActivityImpl)) 
    throw new UnrecognizedActivityException ("unrecognized activity");
  
  NullActivityImpl nullActivityImpl = (NullActivityImpl) nullActivity;
  ActivityContextHandle ach = new NullActivityContextHandle(nullActivityImpl.getHandle());
  ActivityContext ac = sleeContainer.getActivityContextFactory().getActivityContext(ach);
  if (ac == null) {
    throw new UnrecognizedActivityException(nullActivity);
  }
  return ac.getActivityContextInterface();
  
}
origin: org.mobicents.servers.jainslee.core/slee-timers

public ActivityContextInterface getActivityContextInterface(TimerID timerID)
    throws NullPointerException, TransactionRequiredLocalException,
    FacilityException {
  if (timerID == null) {
    throw new NullPointerException("null timerID");
  }
  
  sleeContainer.getTransactionManager().mandateTransaction();
  
  TimerFacilityTimerTaskData taskData = (TimerFacilityTimerTaskData) scheduler.getTimerTaskData(timerID);
  if (taskData != null) {
    try {
      return sleeContainer.getActivityContextFactory().getActivityContext(taskData.getActivityContextHandle()).getActivityContextInterface();
    } catch (Exception e) {
      throw new FacilityException(e.getMessage(),e);
    }
  }
  else {
    return null;		
  }
}
 
origin: org.mobicents.servers.jainslee.core/services

/**
 * 
 * @param sbbEntity
 * @param cmpFieldName
 * @return
 */
public static ActivityContextInterface getCMPFieldOfTypeActivityContextInterface(SbbEntity sbbEntity,String cmpFieldName) {
  final Object cmpFieldValue = sbbEntity.getCMPField(cmpFieldName);
  if (cmpFieldValue == null) {
    return null;
  }
  else {
    final ActivityContext ac = sleeContainer.getActivityContextFactory().getActivityContext((ActivityContextHandle) cmpFieldValue);
    if (ac != null) {
      return sbbEntity.asSbbActivityContextInterface(ac.getActivityContextInterface());
    } else {
      return null;
    }
  }
}

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

return ac.getActivityContextInterface();
origin: org.mobicents.servers.jainslee.core/services

public ActivityContextInterface getActivityContextInterface(
    ServiceActivity serviceActivityImpl) throws NullPointerException,
    TransactionRequiredLocalException, UnrecognizedActivityException,
    FactoryException {
  ActivityContextHandle ach = new ServiceActivityContextHandle(new ServiceActivityHandleImpl(((ServiceActivityImpl) serviceActivityImpl).getServiceID()));
  ActivityContext ac = sleeContainer.getActivityContextFactory().getActivityContext(ach);
  if (ac == null) {
    throw new UnrecognizedActivityException(serviceActivityImpl);
  }
  return ac.getActivityContextInterface();
}
origin: org.mobicents.servers.jainslee.core/resource

    .getActivityContext(ach);
if (ac != null) {
  return ac.getActivityContextInterface();
origin: org.mobicents.servers.jainslee.core/services

    .getEventHandlerMethods().get(sleeEvent.getEventTypeId());
ActivityContextInterface aci = asSbbActivityContextInterface(ac.getActivityContextInterface());
origin: org.mobicents.servers.jainslee.core/profiles

  public ActivityContextInterface getActivityContextInterface(
      ProfileTableActivity profileTableActivity)
      throws NullPointerException, TransactionRequiredLocalException,
      UnrecognizedActivityException, FactoryException {
    if (profileTableActivity == null
        || profileTableActivity.getProfileTableName() == null) {

      throw new NullPointerException("null profile table activity");

    }

    serviceContainer.getTransactionManager().mandateTransaction();
    ProfileTableImpl profileTableImpl = null;
    try {
      // check if this is an assigned profile table
      // name.
      profileTableImpl = profileManagementImpl.getProfileTable(profileTableActivity.getProfileTableName());
    } catch (UnrecognizedProfileTableNameException e) {
      throw new UnrecognizedActivityException(profileTableActivity.getProfileTableName(),e);
    }
    
    ActivityContext ac = profileTableImpl.getActivityContext();
    if (ac == null) {
      throw new UnrecognizedActivityException("No resource for: "+profileTableActivity.getProfileTableName(),profileTableActivity);
    }
    
    return ac.getActivityContextInterface();

  }
}
origin: org.mobicents.servers.jainslee.core/router

final ActivityContextInterface aci = ac.getActivityContextInterface();
org.mobicents.slee.container.activityActivityContextgetActivityContextInterface

Popular methods of ActivityContext

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

Popular in Java

  • Finding current android device location
  • getResourceAsStream (ClassLoader)
  • startActivity (Activity)
  • putExtra (Intent)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • JTable (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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