APISonar


ch.ethz.ssh2.log.Logger.log

> ch > ethz > ssh2 > log > Logger > log
ch APIs ethz APIs ssh2 APIs log APIs Logger APIs log APIs

Example 1
private static final Logger log = Logger.getLogger(ChannelManager.class);

	public void msgGlobalFailure() throws IOException
	{
		synchronized (channels)
		{
			globalFailedCounter++;
			channels.notifyAll();
		}

		if (log.isEnabled())
			log.log(80, "Got SSH_MSG_REQUEST_FAILURE");
	}
Example 2
private static final Logger log = Logger.getLogger(SFTPv3Client.class);

    public void setDownloadRequestParallelism(int parallelism) {
        this.parallelism = Math.min(parallelism, DEFAULT_MAX_PARALLELISM);
        log.log("setDownloadRequestParallelism:" + this.parallelism);
    }
Example 3
private static final Logger log = Logger.getLogger(RemoteAcceptThread.class);

	public RemoteAcceptThread(Channel c, String remoteConnectedAddress, int remoteConnectedPort,
			String remoteOriginatorAddress, int remoteOriginatorPort, String targetAddress, int targetPort)
	{
		this.c = c;
		this.remoteConnectedAddress = remoteConnectedAddress;
		this.remoteConnectedPort = remoteConnectedPort;
		this.remoteOriginatorAddress = remoteOriginatorAddress;
		this.remoteOriginatorPort = remoteOriginatorPort;
		this.targetAddress = targetAddress;
		this.targetPort = targetPort;

		if (log.isEnabled())
			log.log(20, "RemoteAcceptThread: " + remoteConnectedAddress + "/" + remoteConnectedPort + ", R: "
					+ remoteOriginatorAddress + "/" + remoteOriginatorPort);
	}
Example 4
private static final Logger log = Logger.getLogger(SFTPv3Client.class);

    public void fsetstat(SFTPv3FileHandle handle, SFTPv3FileAttributes attr) throws IOException {
        checkHandleValidAndOpen(handle);

        int req_id = generateNextRequestID();

        TypesWriter tw = new TypesWriter();
        tw.writeString(handle.fileHandle, 0, handle.fileHandle.length);
        tw.writeBytes(createAttrs(attr));

        log.log("Sending SSH_FXP_FSETSTAT...");
        sendMessage(Packet.SSH_FXP_FSETSTAT, req_id, tw.getBytes());

        expectStatusOKMessage(req_id);
    }
Example 5
private static final Logger log = Logger.getLogger(SFTPv3Client.class);

    private void sendReadRequest(int id, SFTPv3FileHandle handle, long offset, int len) throws IOException {
        TypesWriter tw = new TypesWriter();
        tw.writeString(handle.fileHandle, 0, handle.fileHandle.length);
        tw.writeUINT64(offset);
        tw.writeUINT32(len);

        log.log("Sending SSH_FXP_READ (" + id + ") " + offset + "/" + len);
        sendMessage(Packet.SSH_FXP_READ, id, tw.getBytes());
    }