Examples of connect()


Examples of es.ipsa.atril.sec.authentication.AtrilSession.connect()

  public static AtrilSession getSession(String sContext, String sUsr, String sPwd)
    throws AuthenticationException, SecuritySystemException, IllegalStateException,PersistenceManagerException {
    if (!bInitOK) throw new IllegalStateException("DAO was not properly initialized");
      AtrilSession oSess = AuthenticationManagerFactory.getAuthenticationManager(oAtrilProperties).authenticateUser(sUsr, sPwd);
    oSess.open(sContext);
      oSess.connect();
    oSess.autoCommit(false);
      return oSess;
  }

  // --------------------------------------------------------------------------
View Full Code Here

Examples of eu.mosaic_cloud.interoperability.implementations.zeromq.ZeroMqChannel.connect()

    final ZeroMqChannel serverChannel = ZeroMqChannel.create (serverIdentity, threading, exceptions);
    serverChannel.register (KvSession.Server);
    serverChannel.accept (KvTest.defaultServerEndpoint);
    final ZeroMqChannel clientChannel = ZeroMqChannel.create (clientIdentity, threading, exceptions);
    clientChannel.register (KvSession.Client);
    clientChannel.connect (KvTest.defaultServerEndpoint);
    final KvServer server = new KvServer (exceptions, KvTest.defaultPollTimeout);
    server.initialize (serverChannel);
    final KvClient client_1 = new KvClient ();
    Assert.assertEquals (Boolean.TRUE, Threading.awaitOrCatch (client_1.initialize (clientChannel, serverIdentity), KvTest.defaultPollTimeout));
    Assert.assertEquals (Boolean.TRUE, Threading.awaitOrCatch (client_1.put ("a", "1"), KvTest.defaultPollTimeout));
View Full Code Here

Examples of eu.mosaic_cloud.interoperability.implementations.zeromq.ZeroMqChannelSocket.connect()

    final String serverIdentifier = UUID.randomUUID ().toString ();
    final String clientIdentifier = UUID.randomUUID ().toString ();
    final ZeroMqChannelSocket server = ZeroMqChannelSocket.create (serverIdentifier, null, threading, exceptions);
    final ZeroMqChannelSocket client = ZeroMqChannelSocket.create (clientIdentifier, null, threading, exceptions);
    server.accept (ZeroMqChannelTest.defaultServerEndpoint);
    client.connect (ZeroMqChannelTest.defaultServerEndpoint);
    for (int index = 0; index < ZeroMqChannelTest.defaultTries; index++) {
      final ByteBuffer header = ByteBuffer.wrap (UUID.randomUUID ().toString ().getBytes ());
      final ByteBuffer payload = ByteBuffer.wrap (UUID.randomUUID ().toString ().getBytes ());
      final ZeroMqChannelPacket packet1 = ZeroMqChannelPacket.create (serverIdentifier, header, payload);
      client.enqueue (packet1, ZeroMqChannelTest.defaultPollTimeout);
View Full Code Here

Examples of eu.planets_project.pp.plato.services.action.IPreservationActionRegistry.connect()

            registry = PreservationActionRegistryFactory.getInstance(minimee);
        }
       
        if (registry != null) {
            try {
                registry.connect("");
            } catch (MalformedURLException e) {
            } catch (ServiceException e) {
            }
        }
       
View Full Code Here

Examples of eu.scape_project.planning.services.action.IPreservationActionRegistry.connect()

            Object serviceLocator = serviceLocatorClass.newInstance();
            if (serviceLocator instanceof IPreservationActionRegistry) {
                IPreservationActionRegistry locator = null;
                locator = (IPreservationActionRegistry) serviceLocator;

                locator.connect(registry.getUrl());
                return locator;
            } else
                throw new IllegalArgumentException("schema  " + registry.getType()
                    + " is not a IPreservationActionRegistry.");
        } catch (IllegalArgumentException e) {
View Full Code Here

Examples of flash.tools.debugger.SessionManager.connect()

    try
    {
      if (m_connectPort != null) {
        out(getLocalizationManager().getLocalizedTextString("waitingToConnectToPlayer")); //$NON-NLS-1$
        m_session = mgr.connect(Integer.valueOf(m_connectPort), null);
      }
      else if (m_launchURI == null)
      {
        out(getLocalizationManager().getLocalizedTextString("waitingForPlayerToConnect")); //$NON-NLS-1$
        m_session = mgr.accept(null);
View Full Code Here

Examples of flex.messaging.io.amf.client.AMFConnection.connect()

        AMFConnection amfConnection = new AMFConnection();

        // Connect to the remote url.
        try
        {
            amfConnection.connect(DEFAULT_URL);
        }
        catch (ClientStatusException cse)
        {
            cse.printStackTrace();
        }
View Full Code Here

Examples of freenet.node.Node.connect()

            int nodeB = (nodeA+length)%NUMBER_OF_NODES;
            //System.out.println(""+nodeA+" -> "+nodeB);
            Node a = nodes[nodeA];
            Node b = nodes[nodeB];
            a.connect(b, trust, visibility);
            b.connect(a, trust, visibility);
        }
       
        Logger.normal(RealNodeRoutingTest.class, "Added random links");
       
    for(Node node: nodes)
View Full Code Here

Examples of frontend.alphaspawn.ASConnection.connect()

        // Memorize the info for further usage
        conn.setLoginInfo( login );
       
        try {
          // Connecting to the zone
          if ( conn.connect() ) {
            // The connection to the zone is in process
            // The connection will be establish successfully once
            // the Connected event is receive in processEvent method.
           
            // Memorize the connection object for further usage
View Full Code Here

Examples of getFilePkg.net.applicationprotocol.http.ApplicationProtocol.connect()

      }
      nextConnection.setConnectionStatus(DownloadStatus.Downloading);
      //nextConnection.connectionThread=this;
      downloadManager.connectionList.add(nextConnection);
      storeObject();
      appProto.connect(downloadManager.host);
      appProto.get(downloadManager.url, filename,startByte,endByte);
      nextConnection.setConnectionStatus(DownloadStatus.Downloaded);
      break;
    }
    case Task.Resume:{
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.