Examples of SessionEvent


Examples of org.apache.maven.wagon.events.SessionEvent

    protected void fireSessionLoggedOff()
    {
        long timestamp = System.currentTimeMillis();

        SessionEvent sessionEvent = new SessionEvent( this, SessionEvent.SESSION_LOGGED_OFF );

        sessionEvent.setTimestamp( timestamp );

        sessionEventSupport.fireSessionLoggedOff( sessionEvent );
    }
View Full Code Here

Examples of org.apache.maven.wagon.events.SessionEvent

    protected void fireSessionOpened()
    {
        long timestamp = System.currentTimeMillis();

        SessionEvent sessionEvent = new SessionEvent( this, SessionEvent.SESSION_OPENED );

        sessionEvent.setTimestamp( timestamp );

        sessionEventSupport.fireSessionOpened( sessionEvent );
    }
View Full Code Here

Examples of org.apache.maven.wagon.events.SessionEvent

    protected void fireSessionOpening()
    {
        long timestamp = System.currentTimeMillis();

        SessionEvent sessionEvent = new SessionEvent( this, SessionEvent.SESSION_OPENING );

        sessionEvent.setTimestamp( timestamp );

        sessionEventSupport.fireSessionOpening( sessionEvent );
    }
View Full Code Here

Examples of org.apache.maven.wagon.events.SessionEvent

    protected void fireSessionConnectionRefused()
    {
        long timestamp = System.currentTimeMillis();

        SessionEvent sessionEvent = new SessionEvent( this, SessionEvent.SESSION_CONNECTION_REFUSED );

        sessionEvent.setTimestamp( timestamp );

        sessionEventSupport.fireSessionConnectionRefused( sessionEvent );
    }
View Full Code Here

Examples of org.apache.maven.wagon.events.SessionEvent

    protected void fireSessionError( Exception exception )
    {
        long timestamp = System.currentTimeMillis();

        SessionEvent sessionEvent = new SessionEvent( this, exception );

        sessionEvent.setTimestamp( timestamp );

        sessionEventSupport.fireSessionError( sessionEvent );

    }
View Full Code Here

Examples of org.apache.stanbol.ontologymanager.ontonet.api.session.SessionEvent

        }
        return o;
    }

    protected void fireClosed() {
        SessionEvent e = null;
        try {
            e = new SessionEvent(this, OperationType.CLOSE);
        } catch (Exception e1) {
            LoggerFactory.getLogger(getClass()).error("Could not close session " + getID(), e1);
            return;
        }
        for (SessionListener l : listeners)
View Full Code Here

Examples of org.apache.stanbol.ontologymanager.servicesapi.session.SessionEvent

                sessionID);
        }
    }

    protected void fireSessionCreated(Session session) {
        SessionEvent e = new SessionEvent(session, OperationType.CREATE);
        for (SessionListener l : listeners)
            l.sessionChanged(e);

    }
View Full Code Here

Examples of org.apache.tuscany.core.context.event.SessionEvent

    }

    public void publish(Event event) {
        checkInit();
        if (event instanceof SessionBound) {
            SessionEvent sessionEvent = ((SessionBound) event);
            // update context
            eventContext.setIdentifier(sessionEvent.getSessionTypeIdentifier(), sessionEvent.getId());
        } else if (event instanceof RequestEnd) {
            // be very careful with pooled threads, ensuring threadlocals are cleaned up
            eventContext.clearIdentifiers();
        }
        super.publish(event);
View Full Code Here

Examples of rabbit.data.store.model.SessionEvent

    tracker.setEnabled(false);
    long postEnd = System.currentTimeMillis();

    Collection<SessionEvent> data = tracker.getData();
    assertEquals(1, data.size());
    SessionEvent event = data.iterator().next();
    long start = event.getInterval().getStartMillis();
    long end = event.getInterval().getEndMillis();
    checkTime(preStart, start, postStart, preEnd, end, postEnd);
  }
View Full Code Here

Examples of rabbit.data.store.model.SessionEvent

    callIdleDetectorToNotify();
    long postEnd = System.currentTimeMillis();

    Collection<SessionEvent> data = tracker.getData();
    assertEquals(1, data.size());
    SessionEvent event = data.iterator().next();
    long start = event.getInterval().getStartMillis();
    long end = event.getInterval().getEndMillis();
    checkTime(preStart, start, postStart, preEnd, end, postEnd);
  }
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.