public class QAServer
extends java.lang.Object
getServer()
.Constructor and Description |
---|
QAServer(java.lang.String serverName) |
Modifier and Type | Method and Description |
---|---|
void |
addStateListener(org.opendof.core.oal.DOFServer.StateListener listener)
Adds a state listener to this object's server.
|
void |
create(org.opendof.core.oal.DOF dof,
org.opendof.core.oal.DOFAddress address,
org.opendof.core.oal.DOFServer.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.DOFServer.Type type,
org.opendof.core.oal.DOF.SecurityDesire securityDesire,
org.opendof.core.oal.DOFCredentials creds) |
void |
createAsSecure(org.opendof.core.oal.DOF dof,
org.opendof.core.oal.DOFAddress address,
org.opendof.core.oal.DOFServer.Type type,
org.opendof.core.oal.DOFCredentials creds)
Create a secure server using the specified parameters.
|
void |
createAsUnsecure(org.opendof.core.oal.DOF dof,
org.opendof.core.oal.DOFAddress address,
org.opendof.core.oal.DOFServer.Type type)
Create and unsecure server using the specified parameters.
|
void |
createAsUnsecureMulticast(org.opendof.core.oal.DOF dof,
org.opendof.core.oal.DOFAddress address,
org.opendof.core.oal.DOFServer relatedServer)
Create an unsecure multicast server.
|
void |
destroy()
Stops the server, if necessary, then destroys it.
|
org.opendof.core.oal.DOFServer |
getServer()
Returns the DOFServer represented by this object.
|
void |
start(int timeout)
Starts the server.
|
void |
stop()
Stops the server, but does not destroy it.
|
public void create(org.opendof.core.oal.DOF dof, org.opendof.core.oal.DOFAddress address, org.opendof.core.oal.DOFServer.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.DOFServer.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.DOFServer.Type type, org.opendof.core.oal.DOFCredentials creds) throws java.lang.Exception
dof
- The DOF on which to create the server.address
- The address that the server will listen to.type
- The type of server (Datagram, Stream, etc.).creds
- The credentials for the server.java.lang.Exception
public void createAsUnsecure(org.opendof.core.oal.DOF dof, org.opendof.core.oal.DOFAddress address, org.opendof.core.oal.DOFServer.Type type) throws java.lang.Exception
dof
- The DOF on which to create the server.address
- The address that the server will listen to.type
- The type of server (Datagram, Stream, etc.).java.lang.Exception
public void createAsUnsecureMulticast(org.opendof.core.oal.DOF dof, org.opendof.core.oal.DOFAddress address, org.opendof.core.oal.DOFServer relatedServer) throws java.lang.Exception
dof
- The DOF on which to create the server.address
- The address that the server will listen to.relatedServer
- The server to build the multicast server off of.java.lang.Exception
public org.opendof.core.oal.DOFServer getServer()
public void addStateListener(org.opendof.core.oal.DOFServer.StateListener listener) throws java.lang.Exception
listener
- The listener to add.java.lang.Exception
- if the connection has not been created.public void start(int timeout) throws java.lang.Exception
timeout
- Max time to wait for the server to start.java.lang.Exception
public void stop()
java.lang.Exception
public void destroy()
java.lang.Exception