release() - trillium_quality - 17.2

Trillium Director SDK Reference Guide

Product type
Software
Portfolio
Verify
Product family
Trillium
Product
Trillium > Trillium Quality
Version
17.2
Language
English
Product name
Trillium Quality
Title
Trillium Director SDK Reference Guide
Topic type
Overview
Administration
Configuration
Installation
Reference
How Do I
First publish date
2008

The release() method releases an instance of a Director server. Use this method when the services of the server are no longer required.

Note: Failure to release a server could cause degraded performance, memory leaks, or loss of use of the server.

Syntax

public void release(int handle, int retCode[]);

Parameters

Name

Type

Use

Length

Description

handle

int

In

––

Handle to server instance being released. After release completes, the handle is no longer valid.

retCode

int[ ]

Out

4

Error code that indicates status of method call.

Example

TrilTGenClient testClient = new TrilTGenClient();

// Return code and handle
int[] retCode = new int[1];
int handle = 0;

// System and Server ID for attach()
char systemID = 'G';
String serverName = “Cleanser”;
handle = testClient.attach(systemID, serverName, retCode);
if (retCode[0] == 0) {

    // Perform relevant processing and then release server
    testClient.release(handle, retCode);
}