DOFServerbeginRestart Method (Int32, DOFServerStartOperationListener)OpenDOF Object Access Library
Restart a server, waiting up to timeout for the server to be restarted.

Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax

C#
public DOFOperationStart beginRestart(
	int timeout,
	DOFServerStartOperationListener operationListener
)

Parameters

timeout
Type: SystemInt32
Maximum time to wait, in milliseconds, for the server to be restarted. Note, however, that the server may still start if the underlying transport cannot cancel the request. Must be >= 0. Zero is allowed, in which case the operationListener is immediately called indicating the current state.
operationListener
Type: org.opendof.core.oalDOFServerStartOperationListener
An associated completion operationListener. This may be null.

Return Value

Type: DOFOperationStart
The new operation, or null if there is a related server that won't restart.
Remarks

Restart a server, waiting up to timeout for the server to be restarted. However, control may be returned to the caller while the server is restarted. The call may also establish a operationListener routine with associated context data that will be called when the server has restarted.

Will also start any related server.

See Also

Reference