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

com.veraxsystems.vxipmi.api.async.messages.IpmiResponse Maven / Gradle / Ivy

The newest version!
/*
 * IpmiResponse.java 
 * Created on 2011-09-07
 *
 * Copyright (c) Verax Systems 2011.
 * All rights reserved.
 *
 * This software is furnished under a license. Use, duplication,
 * disclosure and all other uses are restricted to the rights
 * specified in the written license agreement.
 */
package com.veraxsystems.vxipmi.api.async.messages;

import com.veraxsystems.vxipmi.api.async.ConnectionHandle;
import com.veraxsystems.vxipmi.api.async.IpmiResponseListener;
import com.veraxsystems.vxipmi.coding.commands.PrivilegeLevel;
import com.veraxsystems.vxipmi.coding.security.CipherSuite;

/**
 * Interface for response messages delivered to {@link IpmiResponseListener}s
 */
public abstract class IpmiResponse {
    private int tag;
    private ConnectionHandle handle;

    /**
     * {@link ConnectionHandle} to the message that was an origin of the
     * response Handle contains only the id of the connection, not the
     * {@link CipherSuite} and {@link PrivilegeLevel} used in that connection.
     */
    public ConnectionHandle getHandle() {
        return handle;
    }

    /**
     * Tag of the message that is associated with the {@link IpmiResponse}
     */
    public int getTag() {
        return tag;
    }

    public IpmiResponse(int tag, ConnectionHandle handle) {
        this.tag = tag;
        this.handle = handle;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy