com.tensegrity.palojava
Class Palo

java.lang.Object
  extended by com.tensegrity.palojava.Palo

public class Palo
extends java.lang.Object

Palo A singleton which loads the required palo libraries and provides methods for creating and destroying connections to the palo server.

Version:
$ID:$
Author:
Stepan Rutz

Method Summary
 void destroy()
          Releases any resources associated with the internal used library functions.
static Palo getInstance()
          Returns the globally used Palo instance for connecting to the palo server
 void init()
          Initializes this Palo instance if it was not initialized before.
 IConnection newConnection(java.lang.String server, java.lang.String service, java.lang.String username, java.lang.String password)
          Creates a new IConnection object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static Palo getInstance()
Returns the globally used Palo instance for connecting to the palo server

Returns:
the Palo instance

init

public void init()
Initializes this Palo instance if it was not initialized before.


destroy

public void destroy()
Releases any resources associated with the internal used library functions.


newConnection

public IConnection newConnection(java.lang.String server,
                                 java.lang.String service,
                                 java.lang.String username,
                                 java.lang.String password)
Creates a new IConnection object.

Parameters:
server - the server name, e.g. localhost
service - the port number
username - the login name
password - the login password
Returns:
a newly created IConnection instance.