org.mftech.dawn.runtime.client.communication
Class DawnRemoteConnector

java.lang.Object
  extended by org.mftech.dawn.runtime.client.communication.DawnRemoteConnector

public class DawnRemoteConnector
extends java.lang.Object

Author:
killa

Field Summary
static int RMI
           
static java.lang.String servername
           
static int SOAP
           
 
Constructor Summary
DawnRemoteConnector()
           
 
Method Summary
static DawnRemoteConnection getInstance()
          returns an instance of the Connector
static void initialize(java.lang.String serverName)
           
static void initRemoteController()
          initializes the connection to the server
static boolean isServerAvailable()
           
static void setCurrentType(int currentType)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RMI

public static final int RMI
See Also:
Constant Field Values

SOAP

public static final int SOAP
See Also:
Constant Field Values

servername

public static java.lang.String servername
Constructor Detail

DawnRemoteConnector

public DawnRemoteConnector()
Method Detail

getInstance

public static DawnRemoteConnection getInstance()
                                        throws ServerNotAvailableException,
                                               DawnRemoteConnectorNotInitializedException
returns an instance of the Connector

Returns:
Throws:
ServerNotAvailableException
DawnRemoteConnectorNotInitializedException

initialize

public static void initialize(java.lang.String serverName)
Parameters:
serverName -

initRemoteController

public static void initRemoteController()
                                 throws DawnRemoteConnectorNotInitializedException
initializes the connection to the server

Throws:
DawnRemoteConnectorNotInitializedException

isServerAvailable

public static boolean isServerAvailable()
Returns:
true if the server is available, false otherwise

setCurrentType

public static void setCurrentType(int currentType)