com.arunta.app.remote
Class TRRemoteUtility

java.lang.Object
  extended by com.arunta.app.remote.TRRemoteUtility

public class TRRemoteUtility
extends java.lang.Object

A collection of helper methods which simplify the access to Total Recall VR RMI based services.


Constructor Summary
TRRemoteUtility()
           
 
Method Summary
static TRAgentServiceRI getAgentService(java.lang.String rmiRegistryHost, int rmiRegistryPort)
          Creates an instance of the remote interface to the Agent service on the specified Total Recall VR system.
static java.lang.String getAgentServiceUrl(java.lang.String rmiRegistryHost, int rmiRegistryPort)
          Returns the correct RMI URL for the Agent service.
static TRArchiveServiceRI getArchiveService(java.lang.String rmiRegistryHost, int rmiRegistryPort)
          Creates an instance of the remote interface to the Archive service on the specified Total Recall VR system.
static java.lang.String getArchiveServiceUrl(java.lang.String rmiRegistryHost, int rmiRegistryPort)
          Returns the correct RMI URL for the Archive service.
static TRConfigurationServiceRI getConfigurationService(java.lang.String rmiRegistryHost, int rmiRegistryPort)
          Creates an instance of the remote interface to the Configuration service on the specified Total Recall VR system.
static java.lang.String getConfigurationServiceUrl(java.lang.String rmiRegistryHost, int rmiRegistryPort)
          Returns the correct RMI URL for the Configuration service.
static TRDatabaseServiceRI getDatabaseService(java.lang.String rmiRegistryHost, int rmiRegistryPort)
          Creates an instance of the remote interface to the Database service on the specified Total Recall VR system.
static java.lang.String getDatabaseServiceUrl(java.lang.String rmiRegistryHost, int rmiRegistryPort)
          Returns the correct RMI URL for the Database service.
static TRManualCallControlServiceRI getManualCallControlService(java.lang.String rmiRegistryHost, int rmiRegistryPort)
          Creates an instance of the remote interface to the Manual Call Control service on the specified Total Recall VR system.
static java.lang.String getManualCallControlServiceUrl(java.lang.String rmiRegistryHost, int rmiRegistryPort)
          Returns the correct RMI URL for the Manual Call Control service.
static TRMonitorServiceRI getMonitorService(java.lang.String rmiRegistryHost, int rmiRegistryPort)
          Creates an instance of the remote interface to the Monitor service on the specified Total Recall VR system.
static java.lang.String getMonitorServiceUrl(java.lang.String rmiRegistryHost, int rmiRegistryPort)
          Returns the correct RMI URL for the Monitor service.
static TROperatorServiceRI getOperatorService(java.lang.String rmiRegistryHost, int rmiRegistryPort)
          Creates an instance of the remote interface to the Operator service on the specified Total Recall VR system.
static java.lang.String getOperatorServiceUrl(java.lang.String rmiRegistryHost, int rmiRegistryPort)
          Returns the correct RMI URL for the Operator service.
static TRPlayServiceRI getPlayService(java.lang.String rmiRegistryHost, int rmiRegistryPort)
          Creates an instance of the remote interface to the Play service on the specified Total Recall VR system.
static java.lang.String getPlayServiceUrl(java.lang.String rmiRegistryHost, int rmiRegistryPort)
          Returns the correct RMI URL for the Play service.
static TRSmdrServiceRI getSmdrService(java.lang.String rmiRegistryHost, int rmiRegistryPort)
          Creates an instance of the remote interface to the SMDR service on the specified Total Recall VR system.
static java.lang.String getSmdrServiceUrl(java.lang.String rmiRegistryHost, int rmiRegistryPort)
          Returns the correct RMI URL for the SMDR service.
static TRSystemServiceRI getSystemService(java.lang.String rmiRegistryHost, int rmiRegistryPort)
          Creates an instance of the remote interface to the System service on the specified Total Recall VR system.
static java.lang.String getSystemServiceUrl(java.lang.String rmiRegistryHost, int rmiRegistryPort)
          Returns the correct RMI URL for the System service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TRRemoteUtility

public TRRemoteUtility()
Method Detail

getSystemServiceUrl

public static java.lang.String getSystemServiceUrl(java.lang.String rmiRegistryHost,
                                                   int rmiRegistryPort)
Returns the correct RMI URL for the System service.

Parameters:
rmiRegistryHost - The value of the IP Address or Host Name parameter from the Remote Manager configuration on a Total Recall VR system.
rmiRegistryPort - The value of the Base Port parameter from the Remote Manager configuration on a Total Recall VR system.
Returns:
The string form of a RMI URL.

getSystemService

public static TRSystemServiceRI getSystemService(java.lang.String rmiRegistryHost,
                                                 int rmiRegistryPort)
                                          throws java.rmi.RemoteException
Creates an instance of the remote interface to the System service on the specified Total Recall VR system.

Parameters:
rmiRegistryHost - The value of the IP Address or Host Name parameter from the Remote Manager configuration on a Total Recall VR system.
rmiRegistryPort - The value of the Base Port parameter from the Remote Manager configuration on a Total Recall VR system.
Returns:
An instance of the the remote interface to the System service, or null if the service is not bound in the RMI registry on the specified Total Recall VR system.
Throws:
java.rmi.RemoteException - On failing to contact the RMI registry on the specified Total Recall VR system.

getOperatorServiceUrl

public static java.lang.String getOperatorServiceUrl(java.lang.String rmiRegistryHost,
                                                     int rmiRegistryPort)
Returns the correct RMI URL for the Operator service.

Parameters:
rmiRegistryHost - The value of the IP Address or Host Name parameter from the Remote Manager configuration on a Total Recall VR system.
rmiRegistryPort - The value of the Base Port parameter from the Remote Manager configuration on a Total Recall VR system.
Returns:
The string form of a RMI URL.

getOperatorService

public static TROperatorServiceRI getOperatorService(java.lang.String rmiRegistryHost,
                                                     int rmiRegistryPort)
                                              throws java.rmi.RemoteException
Creates an instance of the remote interface to the Operator service on the specified Total Recall VR system.

Parameters:
rmiRegistryHost - The value of the IP Address or Host Name parameter from the Remote Manager configuration on a Total Recall VR system.
rmiRegistryPort - The value of the Base Port parameter from the Remote Manager configuration on a Total Recall VR system.
Returns:
An instance of the the remote interface to the Operator service, or null if the service is not bound in the RMI registry on the specified Total Recall VR system.
Throws:
java.rmi.RemoteException - On failing to contact the RMI registry on the specified Total Recall VR system.

getManualCallControlServiceUrl

public static java.lang.String getManualCallControlServiceUrl(java.lang.String rmiRegistryHost,
                                                              int rmiRegistryPort)
Returns the correct RMI URL for the Manual Call Control service.

Parameters:
rmiRegistryHost - The value of the IP Address or Host Name parameter from the Remote Manager configuration on a Total Recall VR system.
rmiRegistryPort - The value of the Base Port parameter from the Remote Manager configuration on a Total Recall VR system.
Returns:
The string form of a RMI URL.

getManualCallControlService

public static TRManualCallControlServiceRI getManualCallControlService(java.lang.String rmiRegistryHost,
                                                                       int rmiRegistryPort)
                                                                throws java.rmi.RemoteException
Creates an instance of the remote interface to the Manual Call Control service on the specified Total Recall VR system.

Parameters:
rmiRegistryHost - The value of the IP Address or Host Name parameter from the Remote Manager configuration on a Total Recall VR system.
rmiRegistryPort - The value of the Base Port parameter from the Remote Manager configuration on a Total Recall VR system.
Returns:
An instance of the the remote interface to the Manual Call Control service, or null if the service is not bound in the RMI registry on the specified Total Recall VR system.
Throws:
java.rmi.RemoteException - On failing to contact the RMI registry on the specified Total Recall VR system.

getMonitorServiceUrl

public static java.lang.String getMonitorServiceUrl(java.lang.String rmiRegistryHost,
                                                    int rmiRegistryPort)
Returns the correct RMI URL for the Monitor service.

Parameters:
rmiRegistryHost - The value of the IP Address or Host Name parameter from the Remote Manager configuration on a Total Recall VR system.
rmiRegistryPort - The value of the Base Port parameter from the Remote Manager configuration on a Total Recall VR system.
Returns:
The string form of a RMI URL.

getMonitorService

public static TRMonitorServiceRI getMonitorService(java.lang.String rmiRegistryHost,
                                                   int rmiRegistryPort)
                                            throws java.rmi.RemoteException
Creates an instance of the remote interface to the Monitor service on the specified Total Recall VR system.

Parameters:
rmiRegistryHost - The value of the IP Address or Host Name parameter from the Remote Manager configuration on a Total Recall VR system.
rmiRegistryPort - The value of the Base Port parameter from the Remote Manager configuration on a Total Recall VR system.
Returns:
An instance of the the remote interface to the Monitor service, or null if the service is not bound in the RMI registry on the specified Total Recall VR system.
Throws:
java.rmi.RemoteException - On failing to contact the RMI registry on the specified Total Recall VR system.

getPlayServiceUrl

public static java.lang.String getPlayServiceUrl(java.lang.String rmiRegistryHost,
                                                 int rmiRegistryPort)
Returns the correct RMI URL for the Play service.

Parameters:
rmiRegistryHost - The value of the IP Address or Host Name parameter from the Remote Manager configuration on a Total Recall VR system.
rmiRegistryPort - The value of the Base Port parameter from the Remote Manager configuration on a Total Recall VR system.
Returns:
The string form of a RMI URL.

getPlayService

public static TRPlayServiceRI getPlayService(java.lang.String rmiRegistryHost,
                                             int rmiRegistryPort)
                                      throws java.rmi.RemoteException
Creates an instance of the remote interface to the Play service on the specified Total Recall VR system.

Parameters:
rmiRegistryHost - The value of the IP Address or Host Name parameter from the Remote Manager configuration on a Total Recall VR system.
rmiRegistryPort - The value of the Base Port parameter from the Remote Manager configuration on a Total Recall VR system.
Returns:
An instance of the the remote interface to the Play service, or null if the service is not bound in the RMI registry on the specified Total Recall VR system.
Throws:
java.rmi.RemoteException - On failing to contact the RMI registry on the specified Total Recall VR system.

getArchiveServiceUrl

public static java.lang.String getArchiveServiceUrl(java.lang.String rmiRegistryHost,
                                                    int rmiRegistryPort)
Returns the correct RMI URL for the Archive service.

Parameters:
rmiRegistryHost - The value of the IP Address or Host Name parameter from the Remote Manager configuration on a Total Recall VR system.
rmiRegistryPort - The value of the Base Port parameter from the Remote Manager configuration on a Total Recall VR system.
Returns:
The string form of a RMI URL.

getArchiveService

public static TRArchiveServiceRI getArchiveService(java.lang.String rmiRegistryHost,
                                                   int rmiRegistryPort)
                                            throws java.rmi.RemoteException
Creates an instance of the remote interface to the Archive service on the specified Total Recall VR system.

Parameters:
rmiRegistryHost - The value of the IP Address or Host Name parameter from the Remote Manager configuration on a Total Recall VR system.
rmiRegistryPort - The value of the Base Port parameter from the Remote Manager configuration on a Total Recall VR system.
Returns:
An instance of the the remote interface to the Archive service, or null if the service is not bound in the RMI registry on the specified Total Recall VR system.
Throws:
java.rmi.RemoteException - On failing to contact the RMI registry on the specified Total Recall VR system.

getDatabaseServiceUrl

public static java.lang.String getDatabaseServiceUrl(java.lang.String rmiRegistryHost,
                                                     int rmiRegistryPort)
Returns the correct RMI URL for the Database service.

Parameters:
rmiRegistryHost - The value of the IP Address or Host Name parameter from the Remote Manager configuration on a Total Recall VR system.
rmiRegistryPort - The value of the Base Port parameter from the Remote Manager configuration on a Total Recall VR system.
Returns:
The string form of a RMI URL.

getDatabaseService

public static TRDatabaseServiceRI getDatabaseService(java.lang.String rmiRegistryHost,
                                                     int rmiRegistryPort)
                                              throws java.rmi.RemoteException
Creates an instance of the remote interface to the Database service on the specified Total Recall VR system.

Parameters:
rmiRegistryHost - The value of the IP Address or Host Name parameter from the Remote Manager configuration on a Total Recall VR system.
rmiRegistryPort - The value of the Base Port parameter from the Remote Manager configuration on a Total Recall VR system.
Returns:
An instance of the the remote interface to the Database service, or null if the service is not bound in the RMI registry on the specified Total Recall VR system.
Throws:
java.rmi.RemoteException - On failing to contact the RMI registry on the specified Total Recall VR system.

getConfigurationServiceUrl

public static java.lang.String getConfigurationServiceUrl(java.lang.String rmiRegistryHost,
                                                          int rmiRegistryPort)
Returns the correct RMI URL for the Configuration service.

Parameters:
rmiRegistryHost - The value of the IP Address or Host Name parameter from the Remote Manager configuration on a Total Recall VR system.
rmiRegistryPort - The value of the Base Port parameter from the Remote Manager configuration on a Total Recall VR system.
Returns:
The string form of a RMI URL.

getConfigurationService

public static TRConfigurationServiceRI getConfigurationService(java.lang.String rmiRegistryHost,
                                                               int rmiRegistryPort)
                                                        throws java.rmi.RemoteException
Creates an instance of the remote interface to the Configuration service on the specified Total Recall VR system.

Parameters:
rmiRegistryHost - The value of the IP Address or Host Name parameter from the Remote Manager configuration on a Total Recall VR system.
rmiRegistryPort - The value of the Base Port parameter from the Remote Manager configuration on a Total Recall VR system.
Returns:
An instance of the the remote interface to the Configuration service, or null if the service is not bound in the RMI registry on the specified Total Recall VR system.
Throws:
java.rmi.RemoteException - On failing to contact the RMI registry on the specified Total Recall VR system.

getAgentServiceUrl

public static java.lang.String getAgentServiceUrl(java.lang.String rmiRegistryHost,
                                                  int rmiRegistryPort)
Returns the correct RMI URL for the Agent service.

Parameters:
rmiRegistryHost - The value of the IP Address or Host Name parameter from the Remote Manager configuration on a Total Recall VR system.
rmiRegistryPort - The value of the Base Port parameter from the Remote Manager configuration on a Total Recall VR system.
Returns:
The string form of a RMI URL.

getAgentService

public static TRAgentServiceRI getAgentService(java.lang.String rmiRegistryHost,
                                               int rmiRegistryPort)
                                        throws java.rmi.RemoteException
Creates an instance of the remote interface to the Agent service on the specified Total Recall VR system.

Parameters:
rmiRegistryHost - The value of the IP Address or Host Name parameter from the Remote Manager configuration on a Total Recall VR system.
rmiRegistryPort - The value of the Base Port parameter from the Remote Manager configuration on a Total Recall VR system.
Returns:
An instance of the the remote interface to the Agent service, or null if the service is not bound in the RMI registry on the specified Total Recall VR system.
Throws:
java.rmi.RemoteException - On failing to contact the RMI registry on the specified Total Recall VR system.

getSmdrServiceUrl

public static java.lang.String getSmdrServiceUrl(java.lang.String rmiRegistryHost,
                                                 int rmiRegistryPort)
Returns the correct RMI URL for the SMDR service.

Parameters:
rmiRegistryHost - The value of the IP Address or Host Name parameter from the Remote Manager configuration on a Total Recall VR system.
rmiRegistryPort - The value of the Base Port parameter from the Remote Manager configuration on a Total Recall VR system.
Returns:
The string form of a RMI URL.

getSmdrService

public static TRSmdrServiceRI getSmdrService(java.lang.String rmiRegistryHost,
                                             int rmiRegistryPort)
                                      throws java.rmi.RemoteException
Creates an instance of the remote interface to the SMDR service on the specified Total Recall VR system.

Parameters:
rmiRegistryHost - The value of the IP Address or Host Name parameter from the Remote Manager configuration on a Total Recall VR system.
rmiRegistryPort - The value of the Base Port parameter from the Remote Manager configuration on a Total Recall VR system.
Returns:
An instance of the the remote interface to the SMDR service, or null if the service is not bound in the RMI registry on the specified Total Recall VR system.
Throws:
java.rmi.RemoteException - On failing to contact the RMI registry on the specified Total Recall VR system.


Copyright ©, 2005-2012 Prolancer Pty Ltd, Sydney Australia.