Package com.maverick.multiplex

Examples of com.maverick.multiplex.Request


          launchSession.checkAccessRights(null, agent.getSession());

          ApplicationShortcut shortcut = (ApplicationShortcut) launchSession.getResource();
          ExtensionDescriptor descriptor = ExtensionStore.getInstance().getExtensionDescriptor(shortcut.getApplication());

          Request newRequest = launchApplication(launchSession);
          request.setRequestData(newRequest.getRequestData());

          CoreServlet.getServlet().fireCoreEvent(new ResourceAccessEvent(this,
              ApplicationShortcutEventConstants.APPLICATION_SHORTCUT_LAUNCHED,
                  launchSession.getResource(),
                  launchSession.getPolicy(),
View Full Code Here


     * fails. We do not perform that here as it would block the multiplex
     * thread.
     */
    Thread t = new Thread("Keep-Alive Thread - " + session.getUser().getPrincipalName() + "," + session.getAddress().getHostAddress()) {
      public void run() {
        Request request = new Request(KEEP_ALIVE);
        if(log.isInfoEnabled())
          log.info("Socket has timed out! Sending keep-alive to agent");
       
        try {
          sendRequest(request, true, KEEP_ALIVE_TIMEOUT);
View Full Code Here

              for(AgentTunnel agent : agents) {
                ByteArrayWriter baw = new ByteArrayWriter();
                try {
                  baw.writeInt(resourceType.getResourceTypeId());
                  synchronized(agent) {
                    agent.sendRequest(new Request(AgentTunnel.UPDATE_RESOURCES_REQUEST, baw.toByteArray()), false);
                  }
                }
                catch(IOException ioe) {
                  log.warn("Failed to send resource update request to agent " + agent.getId() + ".", ioe);
                }
View Full Code Here

TOP

Related Classes of com.maverick.multiplex.Request

Copyright © 2018 www.massapicom. 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.