Examples of SrvService


Examples of org.serviceconnector.api.srv.SrvService

      try {
        SCBaseServlet.this.checkRegistration(SCBaseServlet.this.checkRegistrationIntervalSeconds);
      } catch (SCServiceException e) {
        // check registration failed - inform callback
        SrvServiceRegistry srvServiceRegistry = AppContext.getSrvServiceRegistry();
        SrvService srvService = srvServiceRegistry.getSrvService(SCBaseServlet.this.serviceName + Constants.UNDERLINE
            + SCBaseServlet.this.tomcatPort);
        if (srvService instanceof SrvSessionService) {
          ((SrvSessionService) srvService).getCallback().exceptionCaught(e);
        } else if (srvService instanceof SrvPublishService) {
          ((SrvPublishService) srvService).getCallback().exceptionCaught(e);
View Full Code Here

Examples of org.serviceconnector.api.srv.SrvService

    String serviceName = reqMessage.getServiceName();
    // look up srvService
    SrvServiceRegistry srvServiceRegistry = AppContext.getSrvServiceRegistry();
    IResponder responder = AppContext.getResponderRegistry().getCurrentResponder();
    int listenerPort = responder.getListenerConfig().getPort();
    SrvService srvService = srvServiceRegistry.getSrvService(serviceName + "_" + listenerPort);
    String sessionId = reqMessage.getSessionId();

    if (srvService == null) {
      // service not available anymore set up reply
      SCMPMessage reply = new SCMPMessage();
View Full Code Here

Examples of org.serviceconnector.api.srv.SrvService

   */
  protected SrvService getSrvServiceByServiceName(String serviceName) throws SCMPCommandException {
    SrvServiceRegistry srvServiceRegistry = AppContext.getSrvServiceRegistry();
    IResponder responder = AppContext.getResponderRegistry().getCurrentResponder();
    int listenerPort = responder.getListenerConfig().getPort();
    SrvService srvService = srvServiceRegistry.getSrvService(serviceName + "_" + listenerPort);
    if (srvService == null) {
      LOGGER.warn("service=" + serviceName + " port=" + listenerPort + " not found in registry");
      SCMPCommandException scmpCommandException = new SCMPCommandException(SCMPError.SERVICE_NOT_FOUND, serviceName);
      scmpCommandException.setMessageType(this.getKey());
      throw scmpCommandException;
View Full Code Here

Examples of org.serviceconnector.api.srv.SrvService

   * @return the srv session service by service name
   * @throws SCMPCommandException
   *             the SCMP command exception
   */
  protected SrvSessionService getSrvSessionServiceByServiceName(String serviceName) throws SCMPCommandException {
    SrvService srvService = this.getSrvServiceByServiceName(serviceName);
    if (srvService instanceof SrvSessionService == false) {
      LOGGER.warn("service=" + serviceName + " not found in registry");
      SCMPCommandException scmpCommandException = new SCMPCommandException(SCMPError.SERVICE_NOT_FOUND, serviceName);
      scmpCommandException.setMessageType(this.getKey());
      throw scmpCommandException;
View Full Code Here

Examples of org.serviceconnector.api.srv.SrvService

   * @return the srv publish service by service name
   * @throws SCMPCommandException
   *             the SCMP command exception
   */
  protected SrvPublishService getSrvPublishServiceByServiceName(String serviceName) throws SCMPCommandException {
    SrvService srvService = this.getSrvServiceByServiceName(serviceName);
    if (srvService instanceof SrvPublishService == false) {
      LOGGER.warn("service=" + serviceName + " not found in registry");
      SCMPCommandException scmpCommandException = new SCMPCommandException(SCMPError.SERVICE_NOT_FOUND, serviceName);
      scmpCommandException.setMessageType(this.getKey());
      throw scmpCommandException;
View Full Code Here

Examples of org.serviceconnector.api.srv.SrvService

    String serviceName = reqMessage.getServiceName();
    // look up srvService
    SrvServiceRegistry srvServiceRegistry = AppContext.getSrvServiceRegistry();
    IResponder responder = AppContext.getResponderRegistry().getCurrentResponder();
    int listenerPort = responder.getListenerConfig().getPort();
    SrvService srvService = srvServiceRegistry.getSrvService(serviceName + "_" + listenerPort);
    String sessionId = reqMessage.getSessionId();

    if (srvService == null) {
      // service not available anymore set up reply - SCMP Version request
      SCMPMessage reply = new SCMPMessage(reqMessage.getSCMPVersion());
View Full Code Here

Examples of org.serviceconnector.api.srv.SrvService

    String serviceName = reqMessage.getServiceName();
    // look up srvService
    SrvServiceRegistry srvServiceRegistry = AppContext.getSrvServiceRegistry();
    IResponder responder = AppContext.getResponderRegistry().getCurrentResponder();
    int listenerPort = responder.getListenerConfig().getPort();
    SrvService srvService = srvServiceRegistry.getSrvService(serviceName + "_" + listenerPort);
    String sessionId = reqMessage.getSessionId();

    if (srvService == null) {
      // service not available anymore set up reply - SCMP Version request
      SCMPMessage reply = new SCMPMessage(reqMessage.getSCMPVersion());
View Full Code Here

Examples of org.serviceconnector.api.srv.SrvService

      try {
        SCBaseServlet.this.checkRegistration(SCBaseServlet.this.checkRegistrationIntervalSeconds);
      } catch (SCServiceException e) {
        // check registration failed - inform callback
        SrvServiceRegistry srvServiceRegistry = AppContext.getSrvServiceRegistry();
        SrvService srvService = srvServiceRegistry.getSrvService(SCBaseServlet.this.serviceName + Constants.UNDERLINE
            + SCBaseServlet.this.tomcatPort);
        if (srvService instanceof SrvSessionService) {
          ((SrvSessionService) srvService).getCallback().exceptionCaught(e);
        } else if (srvService instanceof SrvPublishService) {
          ((SrvPublishService) srvService).getCallback().exceptionCaught(e);
View Full Code Here

Examples of org.serviceconnector.api.srv.SrvService

    String serviceName = reqMessage.getServiceName();
    // look up srvService
    SrvServiceRegistry srvServiceRegistry = AppContext.getSrvServiceRegistry();
    IResponder responder = AppContext.getResponderRegistry().getCurrentResponder();
    int listenerPort = responder.getListenerConfig().getPort();
    SrvService srvService = srvServiceRegistry.getSrvService(serviceName + "_" + listenerPort);
    String sessionId = reqMessage.getSessionId();

    if (srvService == null) {
      // service not available anymore set up reply
      SCMPMessage reply = new SCMPMessage();
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.