|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.blacktie.jatmibroker.xatmi.Connection
public class Connection
This is the connection to remote BlackTie services. It must be created using the ConnectionFactory.
ConnectionFactory.getConnection()
Field Summary | |
---|---|
static int |
TPCONV
|
static int |
TPEBADDESC
|
static int |
TPEBLOCK
|
static int |
TPEEVENT
|
static int |
TPEINVAL
|
static int |
TPEITYPE
|
static int |
TPELIMIT
|
static int |
TPEMATCH
|
static int |
TPENOENT
|
static int |
TPEOS
|
static int |
TPEOTYPE
|
static int |
TPEPROTO
|
static int |
TPESVCERR
|
static int |
TPESVCFAIL
|
static int |
TPESYSTEM
|
static int |
TPETIME
|
static int |
TPETRAN
|
static long |
TPEV_DISCONIMM
|
static long |
TPEV_SENDONLY
|
static long |
TPEV_SVCERR
|
static long |
TPEV_SVCFAIL
|
static long |
TPEV_SVCSUCC
|
static short |
TPFAIL
|
static int |
TPGETANY
|
static int |
TPGOTSIG
|
static int |
TPNOBLOCK
|
static int |
TPNOCHANGE
|
static int |
TPNOREPLY
|
static int |
TPNOTIME
|
static int |
TPNOTRAN
|
static int |
TPRECVONLY
|
static int |
TPSENDONLY
|
static int |
TPSIGRSTRT
|
static short |
TPSUCCESS
|
static int |
TPTRAN
|
static int |
XATMI_SERVICE_NAME_LENGTH
|
Method Summary | |
---|---|
void |
close()
Close any resources associated with this connection |
int |
tpacall(String svc,
Buffer toSend,
int flags)
Asynchronous call |
Buffer |
tpalloc(String type,
String subtype,
int len)
Allocate a new buffer |
Response |
tpcall(String svc,
Buffer buffer,
int flags)
Synchronous call. |
int |
tpcancel(int cd)
Cancel the outstanding asynchronous call. |
Session |
tpconnect(String svc,
Buffer toSend,
int flags)
Handle the initiation of a conversation with the server. |
Response |
tpgetrply(int cd,
int flags)
Get the reply for an asynchronous call. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TPNOBLOCK
public static final int TPSIGRSTRT
public static final int TPNOREPLY
public static final int TPNOTRAN
public static final int TPTRAN
public static final int TPNOTIME
public static final int TPGETANY
public static final int TPNOCHANGE
public static final int TPCONV
public static final int TPSENDONLY
public static final int TPRECVONLY
public static final int TPEBADDESC
public static final int TPEBLOCK
public static final int TPEINVAL
public static final int TPELIMIT
public static final int TPENOENT
public static final int TPEOS
public static final int TPEPROTO
public static final int TPESVCERR
public static final int TPESVCFAIL
public static final int TPESYSTEM
public static final int TPETIME
public static final int TPETRAN
public static final int TPGOTSIG
public static final int TPEITYPE
public static final int TPEOTYPE
public static final int TPEEVENT
public static final int TPEMATCH
public static final short TPFAIL
public static final short TPSUCCESS
public static final long TPEV_DISCONIMM
public static final long TPEV_SVCERR
public static final long TPEV_SVCFAIL
public static final long TPEV_SVCSUCC
public static final long TPEV_SENDONLY
public static final int XATMI_SERVICE_NAME_LENGTH
Method Detail |
---|
public Buffer tpalloc(String type, String subtype, int len) throws ConnectionException
type
- The type of the buffersubtype
- The subtype of the buffer
ConnectionException
- If the buffer was unknown or invalid.public Response tpcall(String svc, Buffer buffer, int flags) throws ConnectionException
svc
- The name of the service to callbuffer
- The inbound datalen
- The length of the dataflags
- The flags to use
ConnectionException
- If the service cannot be contacted.public int tpacall(String svc, Buffer toSend, int flags) throws ConnectionException
svc
- The name of the service to calltoSend
- The inbound datalen
- The length of the dataflags
- The flags to use
ConnectionException
- If the service cannot be contacted.public int tpcancel(int cd) throws ConnectionException
cd
- The connection descriptor
ConnectionException
- If the client cannot be cleaned up.public Response tpgetrply(int cd, int flags) throws ConnectionException
cd
- The connection descriptor to useflags
- The flags to use
ConnectionException
- If the service cannot be contacted.public Session tpconnect(String svc, Buffer toSend, int flags) throws ConnectionException
svc
- The name of the servicetoSend
- The outbound bufferlen
- The length of the dataflags
- The flags to use
ConnectionException
- If the service cannot be contacted.public void close() throws ConnectionException
ConnectionException
- If an open session cannot be cancelled or disconnected.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |