com.tibco.rta
Interface RtaConnection


@ThreadSafe
public interface RtaConnection

A connection to the metrics engine. A client application gets an instance of a connection using RtaConnectionFactory This connection is used by the RtaSession for all communication with the engine.

example : RtaConnectionFactory connectionFac = new RtaConnectionFactory(); RtaConnection connection = connectionFac.getConnection(connectionUrl, "username", "", new HashMap>()); RtaSession session = connection.createSession(new HashMap>());


Method Summary
 void close()
          Close the connection and release any resources used.
 RtaSession createSession(java.util.Map<ConfigProperty,com.tibco.rta.property.PropertyAtom<?>> sessionProps)
          Creates the session.
 RtaSession createSession(java.lang.String name, java.util.Map<ConfigProperty,com.tibco.rta.property.PropertyAtom<?>> sessionProps)
          Creates the session with name
 

Method Detail

createSession

RtaSession createSession(java.util.Map<ConfigProperty,com.tibco.rta.property.PropertyAtom<?>> sessionProps)
                         throws RtaException
Creates the session.

Parameters:
sessionProps - the session props
Returns:
the rta session
Throws:
RtaException
java.lang.NullPointerException - if any key or value in the properties is null

createSession

RtaSession createSession(java.lang.String name,
                         java.util.Map<ConfigProperty,com.tibco.rta.property.PropertyAtom<?>> sessionProps)
                         throws RtaException
Creates the session with name

Parameters:
name - Name for session.
sessionProps - the session props
Returns:
the rta session
Throws:
RtaException
java.lang.NullPointerException - if any key or value in the properties is null

close

void close()
           throws RtaException
Close the connection and release any resources used.

Throws:
RtaException - if the connection could not be closed.


Copyright © 2000-2014 TIBCO Inc. All Rights Reserved.