Uses of Class
org.metricshub.ipmi.core.api.async.ConnectionHandle
Packages that use ConnectionHandle
Package
Description
The asynchronous API.
The package containing asynchronous API message classes.
The API for Serial Over LAN (SOL) communication for IPMI.
The synchronous API of the protocol core:
IpmiConnector opens RMCP+
sessions and sends commands, waiting for their responses.Package responsible for
Connection management.-
Uses of ConnectionHandle in org.metricshub.ipmi.core.api.async
Methods in org.metricshub.ipmi.core.api.async that return ConnectionHandleModifier and TypeMethodDescriptionIpmiAsyncConnector.createConnection(InetAddress address, int port) Creates connection to the remote host.IpmiAsyncConnector.createConnection(InetAddress address, int port, CipherSuite cipherSuite, PrivilegeLevel privilegeLevel) Creates connection to the remote host, with pre setCipherSuiteandPrivilegeLevel, skipping the getAvailableCipherSuites and getChannelAuthenticationCapabilities phases.Methods in org.metricshub.ipmi.core.api.async with parameters of type ConnectionHandleModifier and TypeMethodDescriptionvoidIpmiAsyncConnector.closeConnection(ConnectionHandle handle) Closes the connection with the given handle, forgets its session, and wipes the credentials the handle keeps.voidIpmiAsyncConnector.closeSession(ConnectionHandle connectionHandle) Closes the session with the remote host if it is currently in open state, and wipes the password and the BMC key (Kg) the handle keeps.IpmiAsyncConnector.getAvailableCipherSuites(ConnectionHandle connectionHandle) GetsCipherSuites available for the connection with the remote host.IpmiAsyncConnector.getChannelAuthenticationCapabilities(ConnectionHandle connectionHandle, CipherSuite cipherSuite, PrivilegeLevel requestedPrivilegeLevel) Declares the cipher suite and the privilege of the session, and returns the authentication capabilities of the remote host thatIpmiAsyncConnector.getAvailableCipherSuites(ConnectionHandle)read (requested at the User level): sends nothing.intIpmiAsyncConnector.getTimeout(ConnectionHandle handle) Returns the timeout of a single message on the given connection.IpmiAsyncConnector.openSession(ConnectionHandle connectionHandle, String username, byte[] password, byte[] bmcKey) Establishes the session with the remote host, with the password as bytes: the caller can then clear them once the session is open, which an immutableStringdoes not allow.IpmiAsyncConnector.openSession(ConnectionHandle connectionHandle, String username, String password, byte[] bmcKey) Establishes the session with the remote host, and raises it to the requested privilege when that is Operator or Administrator (Set Session Privilege Level, IPMI 2.0 section 22.18: every session starts at User).intIpmiAsyncConnector.retry(ConnectionHandle connectionHandle, int tag, PayloadType messagePayloadType) Attempts to retry sending a message.intIpmiAsyncConnector.sendMessage(ConnectionHandle connectionHandle, PayloadCoder request, boolean isOneWay) Sends the IPMI message to the remote host.voidIpmiAsyncConnector.setTimeout(ConnectionHandle handle, int timeout) Changes the timeout value for connection with the given handle.Constructors in org.metricshub.ipmi.core.api.async with parameters of type ConnectionHandleModifierConstructorDescriptionInboundSolMessageListener(IpmiConnector connector, ConnectionHandle connectionHandle, List<SolEventListener> eventListeners) Creates the listener of the SOL packets of a connection. -
Uses of ConnectionHandle in org.metricshub.ipmi.core.api.async.messages
Methods in org.metricshub.ipmi.core.api.async.messages that return ConnectionHandleModifier and TypeMethodDescriptionIpmiResponse.getHandle()ConnectionHandleto the message that was an origin of the response Handle contains only the id of the connection, not theCipherSuiteandPrivilegeLevelused in that connection.Constructors in org.metricshub.ipmi.core.api.async.messages with parameters of type ConnectionHandleModifierConstructorDescriptionIpmiError(Exception exception, int tag, ConnectionHandle handle) IpmiResponse(int tag, ConnectionHandle handle) IpmiResponseData(ResponseData data, int tag, ConnectionHandle handle) -
Uses of ConnectionHandle in org.metricshub.ipmi.core.api.sol
Methods in org.metricshub.ipmi.core.api.sol that return ConnectionHandleModifier and TypeMethodDescriptionSerialOverLan.getConnectionHandle()Returns the connection the console exchanges its packets on: the one of the session it was given, or the one of the session it opened on the port of the payload when the BMC serves SOL on another port.SOLException.getConnectionHandle()Returns the connection the failed command was sent on: the one of the session given to the console, or the one of the session the console opened on the port of the payload.Constructors in org.metricshub.ipmi.core.api.sol with parameters of type ConnectionHandleModifierConstructorDescriptionSOLException(String message, Throwable cause, IpmiCommandCoder<?> command, ConnectionHandle connectionHandle) Creates the exception for a command of the console that failed. -
Uses of ConnectionHandle in org.metricshub.ipmi.core.api.sync
Methods in org.metricshub.ipmi.core.api.sync that return ConnectionHandleModifier and TypeMethodDescriptionIpmiConnector.createConnection(InetAddress address) Creates connection to the remote host on default IPMI port.IpmiConnector.createConnection(InetAddress address, int port) Creates connection to the remote host on specified port.IpmiConnector.createConnection(InetAddress address, int port, CipherSuite cipherSuite, PrivilegeLevel privilegeLevel) Creates connection to the remote host, with pre setCipherSuiteandPrivilegeLevel, skipping the getAvailableCipherSuites and getChannelAuthenticationCapabilities phases.IpmiConnector.createConnection(InetAddress address, CipherSuite cipherSuite, PrivilegeLevel privilegeLevel) Creates connection to the remote host, with pre setCipherSuiteandPrivilegeLevel, skipping the getAvailableCipherSuites and getChannelAuthenticationCapabilities phases.Methods in org.metricshub.ipmi.core.api.sync with parameters of type ConnectionHandleModifier and TypeMethodDescriptionvoidIpmiConnector.closeConnection(ConnectionHandle handle) Closes the connection with the given handle, without closing its session: the requests still waiting for a reply on the connection fail, with aConnectionExceptionor anIllegalStateException.voidIpmiConnector.closeSession(ConnectionHandle connectionHandle) Closes the session with the remote host if it is currently in open state, and wipes the password and the BMC key (Kg) the handle keeps.IpmiConnector.getAvailableCipherSuites(ConnectionHandle connectionHandle) GetsCipherSuites available for the connection with the remote host.IpmiConnector.getChannelAuthenticationCapabilities(ConnectionHandle connectionHandle, CipherSuite cipherSuite, PrivilegeLevel requestedPrivilegeLevel) Declares the cipher suite and the privilege of the session, and returns the authentication capabilities of the remote host thatIpmiConnector.getAvailableCipherSuites(ConnectionHandle)read (requested at the User level): sends nothing.intIpmiConnector.getTimeout(ConnectionHandle handle) Returns the timeout of a single message on the connection with the given handle.IpmiConnector.openSession(ConnectionHandle connectionHandle, String username, byte[] password, byte[] bmcKey) Establishes the session with the remote host, with the password as bytes: the caller can then clear them once the session is open, which an immutableStringdoes not allow.IpmiConnector.openSession(ConnectionHandle connectionHandle, String username, String password, byte[] bmcKey) Establishes the session with the remote host, and raises it to the requested privilege when that is Operator or Administrator (Set Session Privilege Level, IPMI 2.0 section 22.18: every session starts at User).IpmiConnector.retryMessage(ConnectionHandle connectionHandle, byte tag, PayloadType messagePayloadType) Re-sends message with given tag having givenPayloadType, using passedConnectionHandle.<R extends ResponseData>
RIpmiConnector.sendMessage(ConnectionHandle connectionHandle, IpmiCommandCoder<R> request) Sends the IPMI command to the remote host and returns its typed response.<R extends ResponseData>
RIpmiConnector.sendMessage(ConnectionHandle connectionHandle, IpmiCommandCoder<R> request, int resends) Sends the IPMI command to the remote host with its own number of resends when no reply comes, instead ofIpmiConnector.getRetries(): 0 for a command the BMC must not receive twice (a chassis reset, whose reply can be lost after the BMC carried it out).IpmiConnector.sendMessage(ConnectionHandle connectionHandle, PayloadCoder request) Sends the IPMI message to the remote host.voidIpmiConnector.sendOneWayMessage(ConnectionHandle connectionHandle, PayloadCoder request) Sends the IPMI message to the remote host and doesn't wait for any response.voidIpmiConnector.setTimeout(ConnectionHandle handle, int timeout) Changes the timeout value for connection with the given handle.Constructors in org.metricshub.ipmi.core.api.sync with parameters of type ConnectionHandleModifierConstructorDescriptionMessageListener(ConnectionHandle handle) Initiates theMessageListener -
Uses of ConnectionHandle in org.metricshub.ipmi.core.connection
Methods in org.metricshub.ipmi.core.connection that return ConnectionHandleMethods in org.metricshub.ipmi.core.connection with parameters of type ConnectionHandleModifier and TypeMethodDescriptionstatic SessionSessionManager.establishSession(IpmiConnector connector, ConnectionHandle connectionHandle, int remotePort) Opens a new connection and session on another UDP port of the BMC of the given connection (the port of a payload, IPMI 2.0 section 24.1), with its user name, password, BMC key and privilege level, and a copy of its cipher suite: opening the session keys the algorithms of its suite.SessionManager.registerSession(int newSessionId, int managedSystemSessionId, ConnectionHandle connectionHandle) SessionManager.registerSession(int newSessionId, ConnectionHandle connectionHandle) voidSessionManager.unregisterSession(ConnectionHandle connectionHandle) Unregisters session for given connection handle, and wipes the credentials of the handle it was registered with.Constructors in org.metricshub.ipmi.core.connection with parameters of type ConnectionHandleModifierConstructorDescriptionSession(int sessionId, int managedSystemSessionId, ConnectionHandle connectionHandle) Session(int sessionId, ConnectionHandle connectionHandle)