All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.cloudslang.content.ssh.entities.SSHConnection Maven / Gradle / Ivy

There is a newer version: 0.0.44
Show newest version
/*******************************************************************************
 * (c) Copyright 2017 Hewlett-Packard Development Company, L.P.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Apache License v2.0 which accompany this distribution.
 *
 * The Apache License is available at
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 *******************************************************************************/
package io.cloudslang.content.ssh.entities;

import com.jcraft.jsch.Channel;
import com.jcraft.jsch.Session;

/**
 * @author ioanvranauhp
 *         Date: 10/29/14
 */
public class SSHConnection {
    private Session session;
    private Channel channel;
    private int sessionsCounter;

    public SSHConnection(Session session) {
        this.session = session;
    }

    public SSHConnection(Session session, Channel channel) {
        this.session = session;
        this.channel = channel;
    }

    public Session getSession() {
        return session;
    }

    public void setSession(Session session) {
        this.session = session;
    }

    public Channel getChannel() {
        return channel;
    }

    public void setChannel(Channel channel) {
        this.channel = channel;
    }

    public int getSessionsCounter() {
        return sessionsCounter;
    }

    public void setSessionsCounter(int sessionsCounter) {
        this.sessionsCounter = sessionsCounter;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy