001/* 002 * jPOS Project [http://jpos.org] 003 * Copyright (C) 2000-2026 jPOS Software SRL 004 * 005 * This program is free software: you can redistribute it and/or modify 006 * it under the terms of the GNU Affero General Public License as 007 * published by the Free Software Foundation, either version 3 of the 008 * License, or (at your option) any later version. 009 * 010 * This program is distributed in the hope that it will be useful, 011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 013 * GNU Affero General Public License for more details. 014 * 015 * You should have received a copy of the GNU Affero General Public License 016 * along with this program. If not, see <http://www.gnu.org/licenses/>. 017 */ 018 019package org.jpos.q2.iso; 020 021import org.jpos.q2.QBeanSupportMBean; 022 023/** 024 * MBean interface. 025 * 026 * @author Alejandro Revilla 027 * @author Thomas L. Kjeldsen 028 * @author Victor Salaman 029 */ 030public interface OneShotChannelAdaptorMK2MBean extends QBeanSupportMBean 031{ 032 /** 033 * Indicates whether the adaptor's underlying channel is currently connected. 034 * 035 * @return {@code true} if the channel is up 036 */ 037 boolean isConnected(); 038 039 /** 040 * Returns the inbound queue name. 041 * 042 * @return queue name 043 */ 044 java.lang.String getInQueue(); 045 046 /** 047 * Sets the inbound queue name. 048 * 049 * @param in queue name 050 */ 051 void setInQueue(java.lang.String in); 052 053 /** 054 * Returns the outbound queue name. 055 * 056 * @return queue name 057 */ 058 java.lang.String getOutQueue(); 059 060 /** 061 * Sets the outbound queue name. 062 * 063 * @param out queue name 064 */ 065 void setOutQueue(java.lang.String out); 066 067 /** 068 * Returns the configured remote host. 069 * 070 * @return host name or address 071 */ 072 java.lang.String getHost(); 073 074 /** 075 * Sets the remote host. 076 * 077 * @param host host name or address 078 */ 079 void setHost(java.lang.String host); 080 081 /** 082 * Returns the configured remote port. 083 * 084 * @return TCP port number 085 */ 086 int getPort(); 087 088 /** 089 * Sets the remote port. 090 * 091 * @param port TCP port number 092 */ 093 void setPort(int port); 094 095 /** 096 * Returns the configured socket-factory class name. 097 * 098 * @return socket factory class name 099 */ 100 java.lang.String getSocketFactory(); 101 102 /** 103 * Sets the socket-factory class name. 104 * 105 * @param sFac socket factory class name 106 */ 107 void setSocketFactory(java.lang.String sFac); 108 109}