Examples of disableService()


Examples of org.jivesoftware.smackx.bytestreams.socks5.Socks5BytestreamManager.disableService()

        Socks5BytestreamManager byteStreamManager = Socks5BytestreamManager.getBytestreamManager(connection);
        ServiceDiscoveryManager discoveryManager = ServiceDiscoveryManager.getInstanceFor(connection);

        assertTrue(discoveryManager.includesFeature(Socks5BytestreamManager.NAMESPACE));

        byteStreamManager.disableService();

        assertFalse(discoveryManager.includesFeature(Socks5BytestreamManager.NAMESPACE));
    }

    /**
 
View Full Code Here

Examples of org.serviceconnector.api.cln.SCMgmtClient.disableService()

    response = sessionService1.createSession(request, msgCallback1);

    // disable service
    SCMgmtClient clientMgmt = new SCMgmtClient(TestConstants.HOST, TestConstants.PORT_SC0_TCP);
    clientMgmt.attach();
    clientMgmt.disableService(TestConstants.sesServiceName1);
    clientMgmt.detach();

    // execute
    request.setMessageInfo(TestConstants.echoCmd);
    response = sessionService1.execute(request);
View Full Code Here

Examples of org.serviceconnector.api.cln.SCMgmtClient.disableService()

    response = sessionService1.createSession(request, msgCallback1);

    // disable service
    SCMgmtClient clientMgmt = new SCMgmtClient(TestConstants.HOST, TestConstants.PORT_SC0_TCP);
    clientMgmt.attach();
    clientMgmt.disableService(TestConstants.sesServiceName1);
    clientMgmt.detach();

    // send
    request.setMessageInfo(TestConstants.echoCmd);
    sessionService1.send(request);
View Full Code Here

Examples of org.serviceconnector.api.cln.SCMgmtClient.disableService()

          status = 4;
        }
        client.detach();
      } else if (callKey.equalsIgnoreCase(Constants.CC_CMD_DISABLE)) {
        try {
          client.disableService(serviceName);
          System.out.println("Service [" + serviceName + "] has been disabled");
        } catch (SCServiceException e) {
          System.out.println("Service [" + serviceName + "] does not exist!");
          status = 4;
        }
View Full Code Here

Examples of org.serviceconnector.api.cln.SCMgmtClient.disableService()

  @Test(expected = SCMPValidatorException.class)
  public void t83_disabledService() throws Exception {
    // disable service
    SCMgmtClient clientMgmt = new SCMgmtClient(TestConstants.HOST, TestConstants.PORT_SC0_TCP);
    clientMgmt.attach();
    clientMgmt.disableService(TestConstants.sesServiceName1);
    clientMgmt.detach();

    SCMessage request = null;
    SCMessage response = null;
    sessionService1 = client.newSessionService(TestConstants.sesServiceName1);
View Full Code Here

Examples of org.serviceconnector.api.cln.SCMgmtClient.disableService()

    Assert.assertNotNull("the session ID is null", sessionService1.getSessionId());

    // disable service
    SCMgmtClient clientMgmt = new SCMgmtClient(TestConstants.HOST, TestConstants.PORT_SC0_TCP);
    clientMgmt.attach();
    clientMgmt.disableService(TestConstants.sesServiceName1);
    clientMgmt.detach();

    // delete session
    sessionService1.deleteSession();
    Assert.assertNull("the session ID is NOT null after deleteSession()", sessionService1.getSessionId());
View Full Code Here

Examples of org.serviceconnector.api.cln.SCMgmtClient.disableService()

    response = sessionService1.createSession(request, msgCallback1);

    // disable service
    SCMgmtClient clientMgmt = new SCMgmtClient(TestConstants.HOST, TestConstants.PORT_SC0_TCP);
    clientMgmt.attach();
    clientMgmt.disableService(TestConstants.sesServiceName1);
    clientMgmt.detach();

    // execute
    request.setMessageInfo(TestConstants.echoCmd);
    response = sessionService1.execute(request);
View Full Code Here

Examples of org.serviceconnector.api.cln.SCMgmtClient.disableService()

    response = sessionService1.createSession(request, msgCallback1);

    // disable service
    SCMgmtClient clientMgmt = new SCMgmtClient(TestConstants.HOST, TestConstants.PORT_SC0_TCP);
    clientMgmt.attach();
    clientMgmt.disableService(TestConstants.sesServiceName1);
    clientMgmt.detach();

    // send
    request.setMessageInfo(TestConstants.echoCmd);
    sessionService1.send(request);
View Full Code Here

Examples of org.serviceconnector.api.cln.SCMgmtClient.disableService()

    msgCallback = new MsgCallback(publishService);

    // disable service
    SCMgmtClient clientMgmt = new SCMgmtClient(TestConstants.HOST, TestConstants.PORT_SC0_TCP);
    clientMgmt.attach();
    clientMgmt.disableService(TestConstants.pubServiceName1);
    clientMgmt.detach();

    subMsgResponse = publishService.subscribe(subMsgRequest, msgCallback);
  }
View Full Code Here

Examples of org.serviceconnector.api.cln.SCMgmtClient.disableService()

    subMsgResponse = publishService.subscribe(subMsgRequest, msgCallback);

    // disable service
    SCMgmtClient clientMgmt = new SCMgmtClient(TestConstants.HOST, TestConstants.PORT_SC0_TCP);
    clientMgmt.attach();
    clientMgmt.disableService(TestConstants.pubServiceName1);
    clientMgmt.detach();

    publishService.unsubscribe();
    Assert.assertNull("the session ID is not null", publishService.getSessionId());
  }
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.