Package org.cspoker.common.api.shared.context

Examples of org.cspoker.common.api.shared.context.RemoteServerContext


  protected Factory[] getListeners() {
    return new Factory[]{};
  }

  protected void start() throws RemoteException, LoginException, IllegalActionException {
    RemoteServerContext conn = server.login("foobar", "foobar");
    SmartClientContext clientContext = new SmartClientContext(conn);
    final SmartLobbyContext lobbyContext = clientContext.getLobbyContext(new DefaultLobbyListener());
    final PlayerId botId = clientContext.getAccountContext().getPlayerID();
    final SingleThreadRequestExecutor executor = SingleThreadRequestExecutor.getInstance();
    final TableId tableId = new TableId(0);
View Full Code Here


  }
 
  public ExternalRemoteServerContext login(String username, String password)
      throws LoginException, RemoteException {
    ServerContext rootServer = cspokerServer.login(username, password);
    RemoteServerContext context = new ExportingServerContext(
        new UnremoteServerContext(new AsynchronousServerContext(
            new SequencePreservingExecutor(GlobalThreadPool.getInstance()), rootServer)));
    try {
      UnicastRemoteObject.unexportObject(context, true);
    } catch (NoSuchObjectException e) {
View Full Code Here

TOP

Related Classes of org.cspoker.common.api.shared.context.RemoteServerContext

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.