Inventor.ConstructorCommandVERBOSE_LEVEL, ZeroHandle| Constructor and Description |
|---|
ServiceListener()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onConnectedClient(java.lang.String clientId,
NetworkPerformance networkPerformance)
Triggered when a client is connected to the service.
|
void |
onDisconnectedClient(java.lang.String clientId)
Triggered when a client is disconnected from the service.
|
void |
onDisposedRenderArea(java.lang.String renderAreaId)
Triggered when a renderArea has been disposed.
|
void |
onInitializedClient(Client client,
NetworkPerformance networkPerformance)
Triggered when a client is initialized.
|
void |
onInstantiatedRenderArea(RenderArea renderArea)
Triggered when a renderArea has been instantiated.
|
void |
onMissingLicense(java.lang.String renderAreaId,
ConnectionParameters parameters)
Triggered when a new client is about connecting and a license is missing.
|
boolean |
onPendingCreateRenderArea(java.lang.String renderAreaId,
int[] size,
RenderAreaHardware renderAreaHardware,
Client client,
ConnectionParameters parameters)
Triggered when a connection is pending and the requested renderArea does
not exist.\n\n Default behavior : accept the connection by returning true.
|
boolean |
onPendingShareRenderArea(RenderArea renderArea,
Client client,
ConnectionParameters parameters)
Triggered when a connection is pending and the requested renderArea exists.
|
java.lang.String |
onRequestedPrivateKeyPassphrase()
Triggered when the secure connection is enabled.
|
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreadspublic boolean onPendingCreateRenderArea(java.lang.String renderAreaId,
int[] size,
RenderAreaHardware renderAreaHardware,
Client client,
ConnectionParameters parameters)
renderAreaId - ID identifying the renderArea requested by the clientsize - client requested width (size[0]) and height (
size[1]) if the connection parameters contain this
information, otherwise it's the renderArea default size. This
value can be modified, it determines the created RenderArea size.client - client that is being connected to the service. If the client does
not exist yet, the pointer value will be NULL.parameters - field-value pairs included in the url during the client
connection. See connectTo function in RemoteVizRenderArea.Otherwise returns false. In this case, the client will be notified by an REFUSED disconnect message.
If there are many listeners, the logical operator OR will be applied on all the returned value of listeners.\n
If there are no listeners to call, the connection will be accepted.\n
IMPORTANT : This callback must not contain any calls to the OpenInventor library.
public boolean onPendingShareRenderArea(RenderArea renderArea, Client client, ConnectionParameters parameters)
renderArea - : the requested renderArea
client - : client that is being connected to the service. If the client does not exist yet, this parameter will be null.
parameters - : field-value pairs included in the url during the client connection. See connectTo function in RemoteVizRenderArea.
public void onDisconnectedClient(java.lang.String clientId)
clientId - : ID identifying the clientpublic java.lang.String onRequestedPrivateKeyPassphrase()
If the private key does not contain a passphrase, do not implement this callback. The default implementation will return an empty string.
Security warning !! DO NOT hard-code the passphrase into this callback !!
Read it from a SECURE location on your system.
ServiceSettings.enableSecureConnection
Default behavior : returns an empty string.public void onInitializedClient(Client client, NetworkPerformance networkPerformance)
ClientSettings.setBandwidth) is set to the estimated network bandwidth value (NetworkPerformance.getBandwidth).
client - : client that is being connected to the service.
networkPerformance - : network performance for the client.NetworkPerformance.getBandwidth and NetworkPerformance.getLatency)public void onMissingLicense(java.lang.String renderAreaId,
ConnectionParameters parameters)
public void onConnectedClient(java.lang.String clientId,
NetworkPerformance networkPerformance)
clientId - : ID identifying the client
networkPerformance - : network performance for the client.NetworkPerformance.enableCalibration and NetworkPerformance.setMaxCalibrationDuration)public void onInstantiatedRenderArea(RenderArea renderArea)
renderArea - : the instantiated renderAreapublic void onDisposedRenderArea(java.lang.String renderAreaId)
RenderArea.closeConnectionsAndDispose.
renderAreaId - : ID identifying the disposed renderAreaGenerated on February 24, 2026, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com