public class OCSSwitchboard extends Object
Constructor and Description |
---|
OCSSwitchboard(String host,
int port,
int switchBoardSize) |
Modifier and Type | Method and Description |
---|---|
void |
disconnect()
Disconnects all OCSClients in the Switchboard
|
DocumentBuilder |
getOutputXMLDocumentBuilder()
Returns the XML document builder for this OCS switchboard
|
void |
login(BroadWorksServer broadWorksServer,
String username,
String password)
Performs the Login Procedure for each OCS client in the switchboard
|
Future<String> |
sendMessage(String message)
Send a message through the OCS socket using the default timeout as
specified in the Alpaca properties file.
|
public OCSSwitchboard(String host, int port, int switchBoardSize) throws BroadWorksServerException, IOException
BroadWorksServerException
IOException
public DocumentBuilder getOutputXMLDocumentBuilder()
public void disconnect() throws IOException
IOException
- Thrown if an error occurs during closepublic Future<String> sendMessage(String message)
message
- The message to send through the socket.@GwtIncompatible public void login(BroadWorksServer broadWorksServer, String username, String password) throws BroadWorksServerException
username
- The username to login aspassword
- The password to login asBroadWorksServerException
- Thrown if the login fails for any reason.Copyright © 2016 ECG. All rights reserved.