Integratec API Platform
opJavaApi.OPControlConnection Class Reference

This class provides an interface for controlling the modules. More...

Public Member Functions

 OPControlConnection ()
 Initializes the instance without opening a control connection.
 
 OPControlConnection (String ip, int port) throws OPException
 Initializes the instance and opens a control connection. More...
 
void open (String ip, int port) throws OPException
 Opens a control connection to a control hub. More...
 
void close ()
 Closes the control connection. More...
 
void start () throws OPException
 Sends a signal to the control hub to start registered processes on each control node. More...
 
void stop () throws OPException
 Sends a signal to the control hub to stop registered processes on each control node. More...
 
boolean isOpen ()
 Indicates whether or not a control connection is open. More...
 

Detailed Description

This class provides an interface for controlling the modules.

Attention
An opControlConnection object is NOT thread-safe, meaning that while you are allowed to use the object in multiple threads, you must ensure that you are not calling its methods simultaneously in multiple threads.