Package org.hive2hive.core.processes.framework.decorators

Examples of org.hive2hive.core.processes.framework.decorators.CompletionHandleComponent


  @Override
  public IProcessComponent register(UserCredentials credentials) throws NoPeerConnectionException {
    ProcessComponent registerProcess = ProcessFactory.instance().createRegisterProcess(credentials, networkManager);

    CompletionHandleComponent eventComponent = new CompletionHandleComponent(registerProcess,
        createRegisterHandle(credentials));

    AsyncComponent asyncProcess = new AsyncComponent(eventComponent);

    submitProcess(asyncProcess);
View Full Code Here


    params.setRoot(rootPath);
    params.setFileConfig(fileConfiguration);

    IProcessComponent loginProcess = ProcessFactory.instance().createLoginProcess(credentials, params, networkManager);

    CompletionHandleComponent eventComponent = new CompletionHandleComponent(loginProcess, createLoginHandle(
        credentials, rootPath));

    AsyncComponent asyncProcess = new AsyncComponent(eventComponent);

    submitProcess(asyncProcess);
View Full Code Here

  @Override
  public IProcessComponent logout() throws NoPeerConnectionException, NoSessionException {
    IProcessComponent logoutProcess = ProcessFactory.instance().createLogoutProcess(networkManager);

    CompletionHandleComponent eventComponent = new CompletionHandleComponent(logoutProcess,
        createLogoutHandle(networkManager.getSession().getCredentials()));

    AsyncComponent asyncProcess = new AsyncComponent(eventComponent);

    submitProcess(asyncProcess);
View Full Code Here

TOP

Related Classes of org.hive2hive.core.processes.framework.decorators.CompletionHandleComponent

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.