public class QAConnection
extends java.lang.Object
getConnection()
.Constructor and Description |
---|
QAConnection(java.lang.String connectionName) |
Modifier and Type | Method and Description |
---|---|
void |
addStateListener(org.opendof.core.oal.DOFConnection.StateListener listener)
Adds a state listener to this object's connection.
|
void |
connect(int timeout)
Attempts to connect this object's connection.
|
void |
create(org.opendof.core.oal.DOF dof,
org.opendof.core.oal.DOFAddress address,
org.opendof.core.oal.DOFConnection.Type type,
org.opendof.core.oal.DOF.SecurityDesire securityDesire) |
void |
create(org.opendof.core.oal.DOF dof,
org.opendof.core.oal.DOFAddress address,
org.opendof.core.oal.DOFConnection.Type type,
org.opendof.core.oal.DOF.SecurityDesire securityDesire,
org.opendof.core.oal.DOFCredentials creds) |
void |
create(org.opendof.core.oal.DOF dof,
org.opendof.core.oal.DOFConnection.Config config) |
void |
createAsGroup(org.opendof.core.oal.DOF dof,
org.opendof.core.oal.DOFGroupAddress groupAddress,
org.opendof.core.oal.DOFCredentials credentials) |
void |
createAsPoint(org.opendof.core.oal.DOF dof,
org.opendof.core.oal.DOFGroupAddress groupAddress,
org.opendof.core.oal.DOFAddress hubAddress,
org.opendof.core.oal.DOFCredentials credentials) |
void |
createAsPoint(org.opendof.core.oal.DOF dof,
org.opendof.core.oal.DOFGroupAddress groupAddress,
org.opendof.core.oal.DOFAddress hubAddress,
org.opendof.core.oal.DOFCredentials credentials,
org.opendof.core.oal.DOFConnection.StreamRequestListener listener) |
void |
createAsSecure(org.opendof.core.oal.DOF dof,
org.opendof.core.oal.DOFAddress address,
org.opendof.core.oal.DOFConnection.Type type,
org.opendof.core.oal.DOFCredentials creds,
boolean isASConnection)
Create a secure connection using the specified parameters.
|
void |
createAsSecureASConnection(org.opendof.core.oal.DOF dof,
org.opendof.core.oal.DOFAddress address,
org.opendof.core.oal.DOFConnection.Type type,
org.opendof.core.oal.DOFCredentials creds)
Create a secure connection to an Authentication Server using the specified parameters.
|
void |
createAsUnsecure(org.opendof.core.oal.DOF dof,
org.opendof.core.oal.DOFAddress address,
org.opendof.core.oal.DOFConnection.Type type,
boolean isMcast)
Create an unsecure connection using the specified parameters.
|
void |
createAsUnsecureASConnection(org.opendof.core.oal.DOF dof,
org.opendof.core.oal.DOFAddress address,
org.opendof.core.oal.DOFConnection.Type type,
org.opendof.core.oal.DOFCredentials creds)
Create an unsecure connection to an Authentication Server using the specified parameters.
|
void |
destroy()
Destroys this object's connection, if it exists, disconnecting it in the process.
|
void |
disconnect()
Disconnects this object's connection, if it exists.
|
org.opendof.core.oal.DOFConnection |
getConnection()
Returns this object's connection.
|
void |
setConnection(org.opendof.core.oal.DOFConnection connection) |
void |
setInetBlocking(boolean inetBlocking) |
public void setInetBlocking(boolean inetBlocking)
public void create(org.opendof.core.oal.DOF dof, org.opendof.core.oal.DOFConnection.Config config)
public void create(org.opendof.core.oal.DOF dof, org.opendof.core.oal.DOFAddress address, org.opendof.core.oal.DOFConnection.Type type, org.opendof.core.oal.DOF.SecurityDesire securityDesire, org.opendof.core.oal.DOFCredentials creds) throws java.lang.Exception
java.lang.Exception
public void create(org.opendof.core.oal.DOF dof, org.opendof.core.oal.DOFAddress address, org.opendof.core.oal.DOFConnection.Type type, org.opendof.core.oal.DOF.SecurityDesire securityDesire) throws java.lang.Exception
java.lang.Exception
public void createAsSecure(org.opendof.core.oal.DOF dof, org.opendof.core.oal.DOFAddress address, org.opendof.core.oal.DOFConnection.Type type, org.opendof.core.oal.DOFCredentials creds, boolean isASConnection) throws java.lang.Exception
dof
- The DOF to use for the connection.address
- The address to connect to.type
- The type of connection (Datagram or Stream).creds
- The credentials to use for the secure connection.isASConnection
- True if the connection is to an Authentication Server.java.lang.Exception
- if the creation of the connection fails.public void createAsUnsecure(org.opendof.core.oal.DOF dof, org.opendof.core.oal.DOFAddress address, org.opendof.core.oal.DOFConnection.Type type, boolean isMcast) throws java.lang.Exception
dof
- The DOF to use for the connection.address
- The address to connect to.type
- The type of connection. Ignored if isMcast is set to true.isMcast
- True if the type of connection to be created is multicast.java.lang.Exception
- if the creation of the connection fails.public void createAsGroup(org.opendof.core.oal.DOF dof, org.opendof.core.oal.DOFGroupAddress groupAddress, org.opendof.core.oal.DOFCredentials credentials) throws java.lang.Exception
java.lang.Exception
public void createAsPoint(org.opendof.core.oal.DOF dof, org.opendof.core.oal.DOFGroupAddress groupAddress, org.opendof.core.oal.DOFAddress hubAddress, org.opendof.core.oal.DOFCredentials credentials) throws java.lang.Exception
java.lang.Exception
public void createAsPoint(org.opendof.core.oal.DOF dof, org.opendof.core.oal.DOFGroupAddress groupAddress, org.opendof.core.oal.DOFAddress hubAddress, org.opendof.core.oal.DOFCredentials credentials, org.opendof.core.oal.DOFConnection.StreamRequestListener listener) throws java.lang.Exception
java.lang.Exception
public void createAsUnsecureASConnection(org.opendof.core.oal.DOF dof, org.opendof.core.oal.DOFAddress address, org.opendof.core.oal.DOFConnection.Type type, org.opendof.core.oal.DOFCredentials creds) throws java.lang.Exception
dof
- The DOF to use for the connection.address
- The address to connect to.type
- The type of connection (Datagram or Stream).creds
- The credentials to use for the AS connection.java.lang.Exception
public void createAsSecureASConnection(org.opendof.core.oal.DOF dof, org.opendof.core.oal.DOFAddress address, org.opendof.core.oal.DOFConnection.Type type, org.opendof.core.oal.DOFCredentials creds) throws java.lang.Exception
dof
- The DOF to use for the connection.address
- The address to connect to.type
- The type of connection (Datagram or Stream).creds
- The credentials to use for the AS connection.java.lang.Exception
public void connect(int timeout) throws java.lang.Exception
timeout
- Time in milliseconds to wait for the connection to connect.java.lang.Exception
public void addStateListener(org.opendof.core.oal.DOFConnection.StateListener listener) throws java.lang.Exception
listener
- The listener to add.java.lang.Exception
- if the connection is null.public void disconnect()
java.lang.Exception
- if the connection is null.public void destroy()
public org.opendof.core.oal.DOFConnection getConnection()
public void setConnection(org.opendof.core.oal.DOFConnection connection)