Examples of Session

  • org.jscsi.initiator.connection.Session

    Session

    A session or Initiator Target Nexus is a directed communication from an iSCSI Initiator to an iSCSI Target. Each session can contain several connections. This allows a better usage of bandwidth and decreases latency times. The Abstract Class is used to implement serveral single- and multithreaded variants of Sessions @author Volker Wildi, University of Konstanz @author Patrice Matthias Brend'amour, University of Kontanz @author Sebastian Graf, University of Kontanz

  • org.knopflerfish.service.console.Session
    Control interface for a command session. @author Gatespace AB @version $Revision: 1.1.1.1 $ @see ConsoleService
  • org.lealone.engine.Session
    A session represents an embedded database connection. When using the server mode, this object resides on the server side and communicates with a SessionRemote object on the client side.
  • org.menacheri.jetclient.app.Session
    This interface abstracts a session in jetclient. A session can be thought of as a high level connection to a remote jetserver. Internally it can have TCP as well as UDP connections. The session also has event dispatching capabilities. So when an event comes into the session, it will get dispatched to the appropriate {@link EventHandler}. @author Abraham Menacherry
  • org.menacheri.jetserver.app.Session
  • org.mobicents.slee.util.Session
  • org.modeshape.jcr.api.Session
    A specialization of the standard JCR {@link javax.jcr.Session} interface that returns the ModeShape-specific extensioninterfaces from {@link #getWorkspace()}, {@link #getRepository()}, and {@link #getValueFactory()}.
  • org.mortbay.jetty.servlet.AbstractSessionManager.Session
  • org.nuxeo.ecm.directory.Session
  • org.objectweb.joram.client.jms.Session
    Implements the javax.jms.Session interface.

    A Session object is a single-threaded context for producing and consuming messages. A session serves several purposes:

    A session can create and service multiple message producers and consumers.
  • org.openbravo.model.ad.access.Session
    Entity class for entity ADSession (stored in table AD_Session). NOTE: This class should not be instantiated directly. To instantiate this class the {@link org.openbravo.base.provider.OBProvider} should be used.
  • org.openiaml.model.model.scopes.Session
  • org.openntf.domino.Session
    The Interface Session is the root of the Domino Objects containment hierarchy, providing access to the other Domino objects, and represents the Domino environment of the current program.
  • org.openqa.selenium.remote.server.Session
  • org.openrdf.store.Session
    Stores thread-based session information. Sessions are typically initialized in servers.
  • org.parosproxy.paros.model.Session
    To change the template for this generated type comment go to Window - Preferences - Java - Code Generation - Code and Comments
  • org.renjin.eval.Session
    Outermost context for R evaluation.

    The Session corresponds to an R process of the original interpreter, but multiple Renjin Sessions can be live within a single JVM.

  • org.richfaces.application.push.Session

    Session represents user’s subscription to a set of topics. This set is immutable, so new session should be created if user wants to add/remove subscriptions to some topics.

    Session does multiplexing for messages from several topics, so that only a single client connection is required to for data transfer.

    When session is created, it is getting unique UUID identifier, that client uses to communicate to that session.

    When client is subscribed to a set of topics associated with some session, session fires SessionPreSubscriptionEvent, so that application developer can control subscriptions according to access rights.

    Session is kept alive for ( {@link #getMaxInactiveInterval()}) minutes since the last time it has been accessed. Note that push can work in either polling (long polling) and persistent connection (WebSocket) modes, so session should be kept-alive correctly in both cases.

    @author Nick Belaevski
  • org.rstudio.studio.client.workbench.model.Session
  • org.sd_network.vfsshell.Session
    A session folder.

    $Id$ @author Masatoshi Sato

  • org.serviceconnector.service.Session
    The Class Session. Provides unique id and an attribute map to store data. A session represents virtual relation between a client and a server. Session activity is observed by a timer. The timer gets initialized when adding the session to the registry. It gets reseted when session is used by requests.
  • org.smpp.Session
    Class Session provides all methods necessary for communication with SMSC using SMPP protocol, i.e. methods for sending PDUs as defined in SMPP specification as well as receiving responses for sent PDUs and waiting for PDUs whose sending was initiated by SMSC.
    Instance of Session represents one connection of ESME to a SMSC. Multiple connections can be established using multiple Sessions.

    Session uses Connection object which is instantiated outside of the Session. This way is the Session made independent on the communication protocol and Session's code isn't populated by protocol dependent initialisation.

    Code example of binding, sending one message and unbinding:

     Connection conn = new TCPIPConnection("123.123.123.123", 6543); Session session = new Session(conn); BindRequest breq = new BindTransmitter(); breq.setSystemId("MYNAME"); breq.setPassword("my_pswdx"); Response resp = session.bind(breq); if (resp.getCommandStatus() == Data.ESME_ROK) { SubmitSM msg = new SubmitSM(); msg.setSourceAddr("3538998765432"); msg.setDestAddr("3538619283746"); msg.setShortMessage("Hello, world!"); resp = session.submit(msg); if (resp.getCommandStatus() == Data.ESME_ROK) { System.out.println("Message submitted. Status=" + resp.getCommandStatus()); } else { System.out.println("Message submission failed. Status=" + resp.getCommandStatus()); } session.unbind(); } else { System.out.println("Couldn't bind. Status=" + resp.getCommandStatus()); } 
    Note that the cycle bind - send PDU's - unbind can be called several times for once created session.

    Particular methods for sending PDUs to SMSC return responses to the sent PDUs. They return null if no response is received in time specified by the receive timeout in receiver. This means that the methods wait for response corresponding to the request. The corresponding response is recognized using sequence number of the sent PDU and a corresponding response command id.
    The session can work in assynchronous manner, i.e. it doesn't wait for response for the sent request, instead all responses are handled by instance of callback class ServerPDUEventListener whenever they are received.
    The Session class checks if operations invoked are valid in the current state of the session. If not, then such operation throws WrongSessionStateException expcetion. For example it's incorrect to try to submit a message if the session is bound as receiver. The checking if the operation is valid in the current state of session is turned off by default. @author Logica Mobile Networks SMPP Open Source Team @version $Revision: 1.4 $ @see Connection @see Transmitter @see Receiver @see ServerPDUEventListener

  • org.spout.api.protocol.Session
  • org.springframework.integration.file.remote.session.Session
  • org.springframework.session.Session
    Provides a way to identify a user in an agnostic way. This allows the session to be used by an HttpSession, WebSocket Session, or even non web related sessions. @author Rob Winch @since 1.0
  • org.subethamail.smtp.server.Session
    The thread that handles a connection. This class passes most of it's responsibilities off to the CommandHandler. @author Jon Stevens @author Jeff Schnitzer
  • org.tamacat.httpd.session.Session

    {@code Session} interface like HttpSession of Servlet-API.

  • org.teiid.adminapi.Session
    A Session is a lasting connection between a client and a Teiid System. A user may be allowed to have multiple sessions active simultaneously.
  • org.travsoup.wrappers.Session
    Do not use this without permission. User: harrynoob Date: 12-5-13 Time: 16:21
  • org.uberfire.java.nio.security.Session
    TODO: update me
  • org.uiautomation.ios.UIAModels.Session
  • org.wkh.bateman.trade.Session
  • org.wso2.carbon.rule.core.Session
    Runtime connection between the rule engine and its users
  • org.zkoss.zk.ui.Session
    A user session.

    To get the current session, use {@link Sessions#getCurrent}, or {@link Desktop#getSession}.

    A session, {@link Session}, might have multiple pages, {@link Page}, while a page belongs to exactly one session. A page, {@link Page}, might have many components, {@link Component}, while a component belongs to exactly one page. @author tomyeh

  • parrot.server.SessionManager.Session
  • play.mvc.Http.Session
  • play.mvc.Scope.Session
  • pt.opensoft.msg.Session
  • quickfix.Session
  • railo.runtime.type.scope.Session
  • ratpack.session.Session
  • remote.motecontrol.client.Session
    Created on Sep 19, 2005 @author zept
  • rocks.xmpp.core.session.model.Session
    org/rfcs/rfc3921.html#session">3. Session Establishment

    If a server supports sessions, it MUST include a {@code } element qualified by the 'urn:ietf:params:xml:ns:xmpp-session' namespace in the stream features it advertises to a client after the completion of stream authentication as defined in [XMPP-CORE].

    Upon being so informed that session establishment is required (and after completing resource binding), the client MUST establish a session if it desires to engage in instant messaging and presence functionality; it completes this step by sending to the server an IQ stanza of type "set" containing an empty {@code } child element qualified by the 'urn:ietf:params:xml:ns:xmpp-session' namespace.

    Note: Session establishment has been removed from the updated specification.

    @author Christian Schudt
  • se.despotify.client.protocol.Session
  • securite.Session
  • spark.Session
    Provides session information.
  • tridion.contentmanager.Session
  • xbird.client.command.Session
    @author Makoto YUI (yuin405+xbird@gmail.com)
  • yalp.mvc.Scope.Session

  • Examples of org.jivesoftware.openfire.session.Session

         * @param streamID the stream ID created by the connection manager for the session.
         */
        public void closeClientSession(String connectionManagerDomain, String streamID) {
            Map<String, LocalClientSession> sessions = sessionsByManager.get(connectionManagerDomain);
            if (sessions != null) {
                Session session = sessions.remove(streamID);
                if (session != null) {
                    // Close the session
                    session.close();
                }
            }
        }
    View Full Code Here

    Examples of org.jivesoftware.smack.packet.Session

                throw new XMPPException(response.getError());
            }
            String userJID = response.getJid();

            if (sessionSupported) {
                Session session = new Session();
                collector = connection.createPacketCollector(new PacketIDFilter(session.getPacketID()));
                // Send the packet
                connection.sendPacket(session);
                // Wait up to a certain number of seconds for a response from the server.
                IQ ack = (IQ) collector.nextResult(SmackConfiguration.getPacketReplyTimeout());
                collector.cancel();
    View Full Code Here

    Examples of org.jnegre.redpill.Session

          public void valueChanged(ListSelectionEvent e) {
            List<Session> sessions = new ArrayList<Session>();//FIXME useful?
            List<HttpRequest> requests = new ArrayList<HttpRequest>();
            List<HttpResponse> responses = new ArrayList<HttpResponse>();
            for(int i : table.getSelectedRows()) {
              Session s = sm.getSession(i);
              sessions.add(s);
              requests.add(s.getRequest());
              responses.add(s.getResponse());
            }
            for(RequestViewer v: requestViewers) {
              v.displayRequests(requests);
            }
            for(ResponseViewer v: responseViewers) {
    View Full Code Here

    Examples of org.joggito.core.Session

      private static BeanFactory factory;

      @BeforeClass
      public static void setUpClass() {
        Session session = SessionManager.getInstance().createSession("default");
        RDFDescriptorFactory df = new RDFDescriptorFactory(session);
        session.getMetaContext().addDescriptor(df.createResource(Person.class));
        factory = new BeanFactory(session);
      }
    View Full Code Here

    Examples of org.jscsi.initiator.connection.Session

         */
        public final Session getSession (final Configuration initConfiguration, final String initTargetName, final InetSocketAddress inetAddress) {

            try {
                // Create a new Session
                final Session newSession = new Session(this, initConfiguration, initTargetName, inetAddress, Executors.newSingleThreadExecutor());
                return newSession;
            } catch (Exception e) {
                LOGGER.error("This exception is thrown: " + e);
                e.printStackTrace();
                return null;
    View Full Code Here

    Examples of org.knopflerfish.service.console.Session

                                    // possible to
                                    // configure the console to not use the timeout
                                    if (useTimeout.booleanValue()) {
                                        client.setSoTimeout(3000);
                                    }
                                    Session s = cs.runSession(session, in, out);
                                    Dictionary props = s.getProperties();
                                    if (authorization != null) {
                                        props.put(Session.PROPERTY_AUTHORIZATION,
                                                authorization);
                                    }
                                    props.put(Session.PROPERTY_TCP, new Boolean(
                                            true));
                                    if (exitOnLogout.booleanValue()) {
                                        props.put(Session.PROPERTY_EXIT_ON_LOGOUT,
                                                new Boolean(true));
                                        /*
                                         * Add properties to session to be able to
                                         * exit on login? if (requiredGroup != null) {
                                         * props.put(Session.PROPERTY_REQUIRED_GROUP,
                                         * requiredGroup); } if (forbiddenGroup !=
                                         * null) {
                                         * props.put(Session.PROPERTY_FORBIDDEN_GROUP,
                                         * forbiddenGroup); }
                                         */
                                    }

                                    sessions.put(s, client);
                                    s.addSessionListener(thisSessionListener);
                                    s.setInterruptString(TELNET_INTERRUPT);
                                    log(LogService.LOG_INFO, "Started " + session);
                                } catch (IOException e) {
                                    log(LogService.LOG_ERROR,
                                            "Failed to get input or output from socket to console session: "
                                                    + e);
    View Full Code Here

    Examples of org.lealone.engine.Session

            }
            try {
                table.truncate(session);
                Database database = session.getDatabase();
                synchronized (database) {
                    Session sysSession = database.getSystemSession();
                    if (!database.isSysTableLocked()) {
                        // this session may not lock the sys table (except if it already has locked it)
                        // because it must be committed immediately
                        // otherwise other threads can not access the sys table.
                        // if the table is not removed now, it will be when the database
                        // is opened the next time
                        // (the table is truncated, so this is just one record)
                        synchronized (sysSession) {
                            index.removeChildrenAndResources(sysSession);
                            table.removeChildrenAndResources(sysSession);
                            // the transaction must be committed immediately
                            sysSession.commit(false);
                        }
                    }
                }
            } finally {
                table = null;
    View Full Code Here

    Examples of org.menacheri.jetclient.app.Session

            .jetserverUdpHostName("255.255.255.255").udpPort(18090);
        LoginHelper loginHelper = builder.build();
        SessionFactory sessionFactory = new SessionFactory(loginHelper);
        ScheduledExecutorService taskExecutor = Executors.newSingleThreadScheduledExecutor();
        for(int i = 1; i<=50; i++){
          Session session = sessionFactory.createAndConnectSession();
          addDefaultHandlerToSession(session);
          GamePlay task = null;
          if((i % 2) == 0){
            task = new GamePlay(IAM.DEFENDER, session);
          }
    View Full Code Here

    Examples of org.menacheri.jetserver.app.Session

        }
      }

      protected void onNetworkMessage(NetworkEvent event)
      {
        Session session = getSession();
        if (!session.isWriteable())
          return;
        DeliveryGuaranty guaranty = event.getDeliveryGuaranty();
        if (guaranty.getGuaranty() == FAST.getGuaranty())
        {
          Fast udpSender = session.getUdpSender();
          if (null != udpSender)
          {
            udpSender.sendMessage(event);
          }
          else
          {
            LOG.trace(
                "Going to discard event: {} since udpSender is null in session: {}",
                event, session);
          }
        }
        else
        {
          session.getTcpSender().sendMessage(event);
        }
      }
    View Full Code Here

    Examples of org.mobicents.slee.util.Session

          String calleeCallId = ((CallIdHeader) h).getCallId();

          SessionAssociation sa = new SessionAssociation(
              "org.mobicents.slee.service.callcontrol.CallControlSbb$InitialState");

          Session calleeSession = new Session(calleeCallId);
          calleeSession.setSipAddress(calleeAddress);
          calleeSession.setToBeCancelledClientTransaction(ct);

          // The dialog for the client transaction in which the INVITE is sent
          Dialog dialog = ct.getDialog();
          if (dialog != null && logger.isDebugEnabled()) {
            logger
                .debug("Obtained dialog from ClientTransaction : automatic dialog support on");
          }
          if (dialog == null) {
            // Automatic dialog support turned off
            try {
              dialog = getSipProvider().getNewDialog(ct);
              if (logger.isDebugEnabled()) {
                logger
                    .debug("Obtained dialog for INVITE request to callee with getNewDialog");
              }
            } catch (Exception e) {
              logger.error("Error getting dialog", e);
            }
          }

          if (logger.isDebugEnabled()) {
            logger
                .debug("Obtained dialog in onThirdPCCTriggerEvent : callId = "
                    + dialog.getCallId().getCallId());
          }
          // Get activity context from factory
          ActivityContextInterface sipACI = getSipActivityContextInterfaceFactory()
              .getActivityContextInterface(dialog);

          ActivityContextInterface clientSipACI = getSipActivityContextInterfaceFactory()
              .getActivityContextInterface(ct);

          calleeSession.setDialog(dialog);
          sa.setCalleeSession(calleeSession);

          Session callerSession = new Session();

          // Create a new caller address from caller URI specified in the
          // event (the real caller address)
          // since we need this in the next INVITE.
          callerAddress = getSipUtils().convertURIToAddress(callerSip);
          callerSession.setSipAddress(callerAddress);
          // Since we don't have the client transaction for the caller yet,
          // just set the to be cancelled client transaction to null.
          callerSession.setToBeCancelledClientTransaction(null);
          sa.setCallerSession(callerSession);

          // put the callId for the callee dialog in the cache
          getCacheUtility().put(calleeCallId, sa);
    View Full Code Here
    TOP
    Copyright © 2018 www.massapi.com. All rights reserved.
    All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.