Package com.apama.net.beans.interfaces
Interface BaseClientInterface
- 
- All Superinterfaces:
- java.lang.AutoCloseable
 - All Known Subinterfaces:
- EngineClientInterface,- GenericComponentManagementOperationsInterface,- PingClientInterface
 - All Known Implementing Classes:
- AbstractGenericComponentManagementBean,- EngineClientBean,- GenericComponentManagementBean,- PingBean
 
 public interface BaseClientInterface extends java.lang.AutoCloseable
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringCOPYRIGHTThe copyright statement that is displayed in the usage string of a number of components.static intDEFAULT_CONNECTION_POLLING_INTERVALThe default value for the connectionPollingInterval property in milliseconds.static java.lang.StringDEFAULT_HOSTThe default value for the host property, seeConnectionConstants.DEFAULT_HOSTstatic intDEFAULT_PORTThe default value for the port property, initialised for an Engine, seeConnectionConstants.DEFAULT_PORT.static java.lang.StringDEFAULT_PROCESS_NAMEThe default value for the process name, initialised for an Engine, seeConnectionConstants.DEFAULT_PROCESS_NAME.static java.lang.StringPRODUCTNAMEThe name of the product - this is just one component of the name that the user sees.static java.lang.StringPROPERTY_BEAN_CONNECTEDThe string name of the bound property that is used for "beanConnected" updates (typically "beanConnected", but this constant should be used to be sure).static java.lang.StringPROPERTY_CONNECTION_POLLING_INTERVALThe string name of the bound property that is used for "connectionPollingInterval" updates (typically "connectionPollingInterval", but this constant should be used to be sure).static java.lang.StringPROPERTY_HOSTThe string name of the bound property that is used for "host" updates (typically "host", but this constant should be used to be sure).static java.lang.StringPROPERTY_PORTThe string name of the bound property that is used for "port" updates (typically "port", but this constant should be used to be sure).static java.lang.StringPROPERTY_PROCESS_NAMEThe string name of the bound property that is used for "processName" updates (typically "processName", but this constant should be used to be sure).static java.lang.StringPROPERTY_VERBOSEThe string name of the bound property that is used for "verbose" updates (typically "verbose", but this constant should be used to be sure).static java.lang.StringVERSIONThe marketing version number for the product as a whole.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidaddPropertyChangeListener(java.beans.PropertyChangeListener listener)Add a property change listener.voidaddPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)Add a property change listener for a specific named property.voidclose()Disconnects the client and also waits to ensure that all background threads and other resources associated with this object have been terminated or freed.voidconnectNow()Manually request that the bean connects to the remote server.voiddisconnect()Disconnect from a server.voiddispose()Deprecated.Replaced byclose()as of Apama version 9.10booleangetBeanConnected()Get the beanConnected property value.intgetConnectionPollingInterval()Get the polling interval (in milliseconds) for the internal connection test thread.java.lang.StringgetHost()Get the name of the host to be connected to.intgetPort()Get the port number to be connected to.java.lang.StringgetProcessName()Get the process name of this client This is the process name used when initialising the clientbooleanisBeanConnected()Another name for the getBeanConnected() method.voidremovePropertyChangeListener(java.beans.PropertyChangeListener listener)Remove a property change listener.voidremovePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)Remove a property change listener for a specific named property.voidsetConnectionPollingInterval(int milliseconds)Set the polling interval (in milliseconds) for the internal connection test thread.voidsetHost(java.lang.String newHostValue)Setter for the host property.voidsetPort(int newPortValue)Setter for the port property.voidsetProcessName(java.lang.String newProcessName)Setter for the process name property.
 
- 
- 
- 
Field Detail- 
VERSIONstatic final java.lang.String VERSION The marketing version number for the product as a whole.- See Also:
- Constant Field Values
 
 - 
PRODUCTNAMEstatic final java.lang.String PRODUCTNAME The name of the product - this is just one component of the name that the user sees.- See Also:
- Constant Field Values
 
 - 
COPYRIGHTstatic final java.lang.String COPYRIGHT The copyright statement that is displayed in the usage string of a number of components.- See Also:
- Constant Field Values
 
 - 
DEFAULT_HOSTstatic final java.lang.String DEFAULT_HOST The default value for the host property, seeConnectionConstants.DEFAULT_HOST- See Also:
- Constant Field Values
 
 - 
DEFAULT_PORTstatic final int DEFAULT_PORT The default value for the port property, initialised for an Engine, seeConnectionConstants.DEFAULT_PORT.
 - 
DEFAULT_PROCESS_NAMEstatic final java.lang.String DEFAULT_PROCESS_NAME The default value for the process name, initialised for an Engine, seeConnectionConstants.DEFAULT_PROCESS_NAME.- See Also:
- Constant Field Values
 
 - 
DEFAULT_CONNECTION_POLLING_INTERVALstatic final int DEFAULT_CONNECTION_POLLING_INTERVAL The default value for the connectionPollingInterval property in milliseconds.- See Also:
- Constant Field Values
 
 - 
PROPERTY_HOSTstatic final java.lang.String PROPERTY_HOST The string name of the bound property that is used for "host" updates (typically "host", but this constant should be used to be sure).- See Also:
- Constant Field Values
 
 - 
PROPERTY_PORTstatic final java.lang.String PROPERTY_PORT The string name of the bound property that is used for "port" updates (typically "port", but this constant should be used to be sure).- See Also:
- Constant Field Values
 
 - 
PROPERTY_PROCESS_NAMEstatic final java.lang.String PROPERTY_PROCESS_NAME The string name of the bound property that is used for "processName" updates (typically "processName", but this constant should be used to be sure).- See Also:
- Constant Field Values
 
 - 
PROPERTY_BEAN_CONNECTEDstatic final java.lang.String PROPERTY_BEAN_CONNECTED The string name of the bound property that is used for "beanConnected" updates (typically "beanConnected", but this constant should be used to be sure).- See Also:
- Constant Field Values
 
 - 
PROPERTY_CONNECTION_POLLING_INTERVALstatic final java.lang.String PROPERTY_CONNECTION_POLLING_INTERVAL The string name of the bound property that is used for "connectionPollingInterval" updates (typically "connectionPollingInterval", but this constant should be used to be sure).- See Also:
- Constant Field Values
 
 - 
PROPERTY_VERBOSEstatic final java.lang.String PROPERTY_VERBOSE The string name of the bound property that is used for "verbose" updates (typically "verbose", but this constant should be used to be sure).- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
connectNowvoid connectNow() throws com.apama.util.CompoundExceptionManually request that the bean connects to the remote server. Repeated calls are permitted, and attempting to connect a bean that is already connected is identical to callingpingServer()from the PingOperationsInterface.- Throws:
- com.apama.util.CompoundException- Thrown if any exceptions occur in the Client SDK.
 
 - 
disconnectvoid disconnect() throws com.apama.util.CompoundExceptionDisconnect from a server. Removes the reference to the underlying RPC object, and unhooks the ShutdownHook.The beanConnected property is set to false, and the connection polling thread is terminated. - Throws:
- com.apama.util.CompoundException- When there was a problem during the disconnection. Some implementations use a subclass of CompoundException.
 
 - 
closevoid close() Disconnects the client and also waits to ensure that all background threads and other resources associated with this object have been terminated or freed. This method should always be called before quitting the program. Never call this method while the target object is locked, or from a thread that is receiving events or handling a property change notification event from the target object.This method is invoked automatically on objects managed by the try-with-resources statement. - Specified by:
- closein interface- java.lang.AutoCloseable
- See Also:
- AutoCloseable.close()
 
 - 
dispose@Deprecated void dispose() Deprecated.Replaced byclose()as of Apama version 9.10Disconnects the client and also waits to ensure that all background threads and other resources associated with this object have been terminated or freed. This method should always be called before quitting the program. Never call this method while the target object is locked, or from a thread that is receiving events or handling a property change notification event from the target object.
 - 
getHostjava.lang.String getHost() Get the name of the host to be connected to. This is the name of the host on which the server to be monitored is running.- Returns:
- Name of the host where the server to be monitored is running.
 
 - 
setHostvoid setHost(java.lang.String newHostValue) throws com.apama.util.CompoundExceptionSetter for the host property. This is the name of the host on which the server to be monitored is running. Changing this property will cause any existing connection to be lost. If there was an existing connection, then a new connection will be created.- Parameters:
- newHostValue- The new value for the Host property.
- Throws:
- com.apama.util.CompoundException- Thrown if any exceptions occur in the Client SDK.
 
 - 
getPortint getPort() Get the port number to be connected to. This is the port number on which the server to be monitored is listening.- Returns:
- Port number on which the server to be monitored is listening.
 
 - 
setPortvoid setPort(int newPortValue) throws com.apama.util.CompoundExceptionSetter for the port property. This is the port number on which the server to be monitored is listening. Changing this property will cause any existing connection to be lost. If there was an existing connection, then a new connection will be created.- Parameters:
- newPortValue- The new value for the Port property.
- Throws:
- com.apama.util.CompoundException- Thrown if any exceptions occur in the Client SDK.
 
 - 
getProcessNamejava.lang.String getProcessName() Get the process name of this client This is the process name used when initialising the client- Returns:
- ProcessName the process name in use
 
 - 
setProcessNamevoid setProcessName(java.lang.String newProcessName) throws com.apama.util.CompoundExceptionSetter for the process name property. This is the process name the client will use. Changing this property will cause any existing connection to be lost. If there was an existing connection, then a new connection will be created.- Parameters:
- newProcessName- The new value for the Process Name
- Throws:
- com.apama.util.CompoundException- Thrown if any exceptions occur in the Client SDK.
 
 - 
isBeanConnectedboolean isBeanConnected() Another name for the getBeanConnected() method.- Returns:
- true if the bean has a connection to a server, false if not.
 
 - 
getBeanConnectedboolean getBeanConnected() Get the beanConnected property value. This is the status of the bean - connected, or not connected. It indicates if the Bean has a valid instance of the underlying RPC interface.- Returns:
- true if the bean has a connection to a server, false if not.
 
 - 
getConnectionPollingIntervalint getConnectionPollingInterval() Get the polling interval (in milliseconds) for the internal connection test thread.- Returns:
- the current interval in milliseconds
 
 - 
setConnectionPollingIntervalvoid setConnectionPollingInterval(int milliseconds) Set the polling interval (in milliseconds) for the internal connection test thread. If the parameter is negative, then the default value will be used instead.- Parameters:
- milliseconds- the polling interval in milliseconds
 
 - 
removePropertyChangeListenervoid removePropertyChangeListener(java.beans.PropertyChangeListener listener) Remove a property change listener.- Parameters:
- listener- the listener to be removed.
 
 - 
removePropertyChangeListenervoid removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)Remove a property change listener for a specific named property.- Parameters:
- propertyName- the name of the property that was listened on.
- listener- the listener to be removed.
 
 - 
addPropertyChangeListenervoid addPropertyChangeListener(java.beans.PropertyChangeListener listener) Add a property change listener. Use this method to be informed whenever the a property value is changed.- Parameters:
- listener- the listener to be added.
 
 - 
addPropertyChangeListenervoid addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)Add a property change listener for a specific named property.- Parameters:
- propertyName- the name of the property to listen on.
- listener- the listener to be added.
 
 
- 
 
-