Package org.serviceconnector.scmp

Examples of org.serviceconnector.scmp.SCMPVersion


    SCMPMessage reqMessage = this.request.getMessage();
    String sid = reqMessage.getSessionId();
    LOGGER.warn("receive exception sid=" + sid + " " + ex.toString());
    String serviceName = reqMessage.getServiceName();
    SCMPMessage fault = null;
    SCMPVersion scmpVersion = reqMessage.getSCMPVersion();
    if (ex instanceof IdleTimeoutException) {
      // operation timeout handling - SCMP Version request
      fault = new SCMPMessageFault(scmpVersion, SCMPError.OPERATION_TIMEOUT,
          "Operation timeout expired on SC csc abort subscription sid=" + sid);
    } else if (ex instanceof IOException) {
View Full Code Here


  @Override
  public void receive(Exception ex) {
    String sid = this.requestMessage.getSessionId();
    LOGGER.warn("receive exception sid=" + sid + " " + ex.toString());
    SCMPMessage fault = null;
    SCMPVersion scmpVersion = this.requestMessage.getSCMPVersion();
    if (ex instanceof IdleTimeoutException) {
      // operation timeout handling - SCMP Version request
      fault = new SCMPMessageFault(scmpVersion, SCMPError.OPERATION_TIMEOUT, "Operation timeout expired on SC sid=" + sid);
    } else if (ex instanceof IOException) {
      fault = new SCMPMessageFault(scmpVersion, SCMPError.CONNECTION_EXCEPTION, "broken connection to server sid=" + sid);
View Full Code Here

  public void receive(Exception ex) {
    SCMPMessage reqMessage = this.request.getMessage();
    String sid = reqMessage.getSessionId();
    LOGGER.warn("receive exception sid=" + sid + " " + ex.toString());
    SCMPMessage fault = null;
    SCMPVersion scmpVersion = reqMessage.getSCMPVersion();
    if (ex instanceof IdleTimeoutException) {
      // operation timeout handling - SCMP Version request
      fault = new SCMPMessageFault(scmpVersion, SCMPError.OPERATION_TIMEOUT, "Operation timeout expired on SC sid=" + sid);
    } else if (ex instanceof IOException) {
      fault = new SCMPMessageFault(scmpVersion, SCMPError.CONNECTION_EXCEPTION, "broken connection on SC sid=" + sid);
View Full Code Here

    SCMPMessage reqMessage = this.request.getMessage();
    String sid = reqMessage.getSessionId();
    LOGGER.warn("receive exception sid=" + sid + " " + ex.toString());
    String serviceName = reqMessage.getServiceName();
    IStatefulServer server = this.cascSubscription.getServer();
    SCMPVersion scmpVersion = reqMessage.getSCMPVersion();

    if (reqMessage.getHeader(SCMPHeaderAttributeKey.CASCADED_MASK) == null) {
      // free server from subscription if cascaded SC unsubscribes himself
      server.removeSession(this.cascSubscription);
    }
View Full Code Here

    LOGGER.warn("receive exception sid=" + sid + " " + ex.toString());
    // free server from session
    server.removeSession(session);
    SCMPMessage fault = null;
    String serviceName = reqMessage.getServiceName();
    SCMPVersion scmpVersion = reqMessage.getSCMPVersion();
    if (ex instanceof IdleTimeoutException) {
      // operation timeout handling - SCMP Version request
      fault = new SCMPMessageFault(scmpVersion, SCMPError.OPERATION_TIMEOUT,
          "Operation timeout expired on SC delete session sid=" + sid);
    } else if (ex instanceof IOException) {
View Full Code Here

    SCMPMessage reqMessage = this.request.getMessage();
    String sid = reqMessage.getSessionId();
    LOGGER.warn("receive exception sid=" + sid + " " + ex.toString());
    server.removeSession(session);
    SCMPMessage fault = null;
    SCMPVersion scmpVersion = reqMessage.getSCMPVersion();
    String serviceName = reqMessage.getServiceName();
    if (ex instanceof IdleTimeoutException) {
      // operation timeout handling - SCMP Version request
      fault = new SCMPMessageFault(scmpVersion, SCMPError.OPERATION_TIMEOUT,
          "Operation timeout expired on SC create session sid=" + sid);
View Full Code Here

  /** {@inheritDoc} */
  @Override
  public void receive(Exception ex) {
    LOGGER.warn("receive exception sid=" + sid + " " + ex.toString());
    SCMPMessage fault = null;
    SCMPVersion scmpVersion = this.requestMessage.getSCMPVersion();
    if (ex instanceof IdleTimeoutException) {
      // operation timeout handling - SCMPVersion request
      fault = new SCMPMessageFault(scmpVersion, SCMPError.OPERATION_TIMEOUT, "Operation timeout expired on SC sid="
          + this.sid);
    } else if (ex instanceof IOException) {
View Full Code Here

    LOGGER.warn("receive exception sid=" + sid + " " + ex.toString());
    // creation failed remove from server
    this.tempSubscription.getServer().removeSession(tempSubscription);
    SCMPMessage fault = null;
    String serviceName = this.reqMessage.getServiceName();
    SCMPVersion scmpVersion = this.reqMessage.getSCMPVersion();
    if (ex instanceof IdleTimeoutException) {
      // operation timeout handling - SCMP Version request
      fault = new SCMPMessageFault(scmpVersion, SCMPError.OPERATION_TIMEOUT,
          "Operation timeout expired on SC cln subscribe sid=" + sid);
    } else if (ex instanceof IOException) {
View Full Code Here

    this.readBufferFromStream(is, headline);

    byte[] version = new byte[Constants.SCMP_VERSION_LENGTH_IN_HEADLINE];
    this.readBufferFromStream(is, version);
    SCMPVersion.CURRENT.isSupported(version);
    SCMPVersion receivedVersion = SCMPVersion.getSCMPVersionByByteArray(version);
    is.skip(1); // read LF

    SCMPMessage scmpMsg = null;
    // evaluating header key and creating corresponding SCMP type
    SCMPHeaderKey headerKey = SCMPHeaderKey.getKeyByHeadline(headline);
View Full Code Here

TOP

Related Classes of org.serviceconnector.scmp.SCMPVersion

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.