Examples of ConnectionType


Examples of org.serviceconnector.net.ConnectionType

    this.connectionType = compositeConfig.getString(this.name + Constants.PROPERTY_QUALIFIER_CONNECTION_TYPE);
    if (this.connectionType == null) {
      throw new SCMPValidatorException(SCMPError.V_WRONG_CONFIGURATION_FILE, "required property=" + this.name
          + Constants.PROPERTY_QUALIFIER_CONNECTION_TYPE + " is missing");
    }
    ConnectionType connectionTypeConf = ConnectionType.getType(this.connectionType);
    if (connectionTypeConf == ConnectionType.UNDEFINED) {
      throw new SCMPValidatorException(SCMPError.V_WRONG_CONFIGURATION_FILE, "unkown connectionType=" + this.name
          + this.connectionType);
    }
View Full Code Here

Examples of org.serviceconnector.net.ConnectionType

    this.connectionType = compositeConfig.getString(this.name + Constants.PROPERTY_QUALIFIER_CONNECTION_TYPE);
    if (this.connectionType == null) {
      throw new SCMPValidatorException(SCMPError.V_WRONG_CONFIGURATION_FILE, "required property=" + this.name
          + Constants.PROPERTY_QUALIFIER_CONNECTION_TYPE + " is missing");
    }
    ConnectionType connectionTypeConf = ConnectionType.getType(this.connectionType);
    if (connectionTypeConf == ConnectionType.UNDEFINED) {
      throw new SCMPValidatorException(SCMPError.V_WRONG_CONFIGURATION_FILE, "unkown connectionType=" + this.name
          + this.connectionType);
    }
View Full Code Here

Examples of org.serviceconnector.net.ConnectionType

    ListenerListConfiguration responderConfiguration = AppContext.getResponderConfiguration();
    responderConfiguration.load(AppContext.getApacheCompositeConfig(), AppContext.getRequesterConfiguration());

    for (ListenerConfiguration listenerConfiguration : responderConfiguration.getListenerConfigurations().values()) {
      String connectionTypeString = listenerConfiguration.getConnectionType();
      ConnectionType connectionType = ConnectionType.getType(connectionTypeString);

      switch (connectionType) {
      case DEFAULT_SERVER_CONNECTION_TYPE:
      case NETTY_TCP:
        return run(listenerConfiguration.getNetworkInterfaces().get(0), listenerConfiguration.getPort(), bodyString);
View Full Code Here

Examples of org.serviceconnector.net.ConnectionType

      throw new InvalidParameterException("Wrong number of arguments: " + args.length);
    }

    String hostToConnect = args[0];
    int portToConnect = Integer.valueOf(args[1]);
    ConnectionType connectionType = ConnectionType.getType(args[2]);
    String serviceName = args[3];
    FILE_SERVICE_FUNCTION function = FILE_SERVICE_FUNCTION.getFileServiceFunction(args[4]);
    if (function == FILE_SERVICE_FUNCTION.NOT_VALID) {
      throw new InvalidParameterException("Wrong file service function in argmuents value=" + args[4]);
    }
View Full Code Here

Examples of org.teiid.adminapi.VDB.ConnectionType

  @Test
  public void testChangeConnectionType() throws Exception {
    VDB vdb = admin.getVDB("TransactionsRevisited", 1);
    assertNotNull(vdb); //$NON-NLS-1$
   
    ConnectionType ct = vdb.getConnectionType();
    assertEquals(ConnectionType.BY_VERSION, ct);
   
    admin.changeVDBConnectionType("TransactionsRevisited", 1, ConnectionType.ANY);
   
    vdb = admin.getVDB("TransactionsRevisited", 1);
View Full Code Here

Examples of org.teiid.jdbc.JDBCURL.ConnectionType

    public TeiidDriver() {
        // this is not singleton, if you want singleton make this private.
    }

    public Connection connect(String url, Properties info) throws SQLException {
      ConnectionType conn = JDBCURL.acceptsUrl(url);
      if (conn == null) {
        return null;
      }
        if(info == null) {
          // create a properties obj if it is null
View Full Code Here

Examples of tigase.net.ConnectionType

    Map<String, Object> sessionData = service.getSessionData();
    String[] routings = (String[])sessionData.get(PORT_ROUTING_TABLE_PROP_KEY);
    if (routings != null) {
      updateRoutings(routings, false);
    }
    ConnectionType type = service.connectionType();
    if (type == ConnectionType.connect) {
      addWaitingTask(sessionData);
      //reconnectService(sessionData, connectionDelay);
    } // end of if (type == ConnectionType.connect)
    //    removeRouting(serv.getRemoteHost());
View Full Code Here

Examples of tigase.net.ConnectionType

  public void serviceStopped(XMPPIOService service) {
    super.serviceStopped(service);
    Map<String, Object> sessionData = service.getSessionData();
    String[] routings = (String[])sessionData.get(PORT_ROUTING_TABLE_PROP_KEY);
    updateRoutings(routings, false);
    ConnectionType type = service.connectionType();
    if (type == ConnectionType.connect) {
      addWaitingTask(sessionData);
      //reconnectService(sessionData, connectionDelay);
    } // end of if (type == ConnectionType.connect)
    //    removeRouting(serv.getRemoteHost());
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.