Package com.piketec.tpt.api
Class TptApiUtils
- java.lang.Object
-
- com.piketec.tpt.api.TptApiUtils
-
public class TptApiUtils extends java.lang.Object
This class contains static utility methods that can be used when working with the TPT RMI API.- Author:
- Copyright (c) 2014-2022 Piketec GmbH - MIT License (MIT) - All rights reserved
-
-
Constructor Summary
Constructors Constructor Description TptApiUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TptApi
connect(java.lang.String binding, int port)
Connect to TPT api with the given binding name and port.
-
-
-
Method Detail
-
connect
public static TptApi connect(java.lang.String binding, int port) throws java.rmi.RemoteException, java.rmi.NotBoundException
Connect to TPT api with the given binding name and port.- Parameters:
binding
- The binding name to be used for lookup. This should match the configuration in TPT via the Preference page "TPT API".port
- The port to connect to. This should match the configuration in TPT via the Preference page "TPT API".- Returns:
- The {link: TptApi} object which is the root object for all further operations with the TPT API
- Throws:
java.rmi.RemoteException
- remote communication problemjava.rmi.NotBoundException
- If There is no binding with the given binding name
-
-