Search in sources :

Example 1 with SshUserRequest

use of com.sequenceiq.cloudbreak.cloud.event.setup.SshUserRequest in project cloudbreak by hortonworks.

the class SshUserHandler method accept.

@Override
public void accept(Event<SshUserRequest> event) {
    LOGGER.info("Received event: {}", event);
    SshUserRequest request = event.getData();
    CloudContext cloudContext = request.getCloudContext();
    request.getResult().onNext(new SshUserResponse(cloudContext, request.getLoginUserName()));
}
Also used : SshUserRequest(com.sequenceiq.cloudbreak.cloud.event.setup.SshUserRequest) CloudContext(com.sequenceiq.cloudbreak.cloud.context.CloudContext) SshUserResponse(com.sequenceiq.cloudbreak.cloud.event.setup.SshUserResponse)

Aggregations

CloudContext (com.sequenceiq.cloudbreak.cloud.context.CloudContext)1 SshUserRequest (com.sequenceiq.cloudbreak.cloud.event.setup.SshUserRequest)1 SshUserResponse (com.sequenceiq.cloudbreak.cloud.event.setup.SshUserResponse)1