ora.core.remote.client
Class DataClient

java.lang.Object
  extended by ora.core.remote.client.DataClient

public class DataClient
extends java.lang.Object

Author:
Kristian Martin

Constructor Summary
DataClient(DataClient dc)
          Copy Constructor to open Dataclient for remote connectivity
DataClient(Session session)
          Constructor to open Dataclient for remote connectivity
 
Method Summary
 Reply fireCommand(java.lang.String command)
           
 java.lang.Object getData()
          Returns data (SerializedOra or UrlFile)
 java.util.HashMap getInstances()
          Returns known instances retrieved from the remote side.
 int getProviderType()
          Get providertype RemoteInterface_provider.TYPE_FILE = 0; RemoteInterface_provider.TYPE_OBJECT = 1;
 Session getSession()
          Returns session of current dataclient
 boolean hasFeature(java.lang.String key)
           
 boolean isValid()
           
 Reply reload()
          Requests reload of remote instances
 Reply setRules(AnalyserRules rules)
          Sets excluded packages list
 void setSession(Session session)
          Sets session of current dataclient
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataClient

public DataClient(Session session)
Constructor to open Dataclient for remote connectivity

Parameters:
session -

DataClient

public DataClient(DataClient dc)
Copy Constructor to open Dataclient for remote connectivity

Parameters:
dc - DataClient to be copied
Method Detail

getInstances

public java.util.HashMap getInstances()
                               throws java.lang.Exception
  • Returns known instances retrieved from the remote side.
  • Returned map contains key(session-key)-value(RemoteInterface_provider) entries
  • Returns:
    HashMap of instances
    Throws:
    java.lang.Exception

    getData

    public java.lang.Object getData()
                             throws java.lang.Exception
    Returns data (SerializedOra or UrlFile)

    Returns:
    Object
    Throws:
    java.lang.Exception

    fireCommand

    public Reply fireCommand(java.lang.String command)
                      throws java.lang.Exception
    Parameters:
    command -
    Returns:
    reply
    Throws:
    java.lang.Exception

    reload

    public Reply reload()
                 throws java.lang.Exception
    Requests reload of remote instances

    Returns:
    reply
    Throws:
    java.lang.Exception

    setRules

    public Reply setRules(AnalyserRules rules)
                   throws java.lang.Exception
    Sets excluded packages list

    Parameters:
    rules - AnalyserRules
    Returns:
    reply
    Throws:
    java.lang.Exception

    getProviderType

    public int getProviderType()
                        throws java.lang.Exception
    Get providertype
  • RemoteInterface_provider.TYPE_FILE = 0;
  • RemoteInterface_provider.TYPE_OBJECT = 1;
  • Returns:
    int
    Throws:
    java.lang.Exception

    hasFeature

    public boolean hasFeature(java.lang.String key)

    setSession

    public void setSession(Session session)
                    throws java.lang.Exception
    Sets session of current dataclient

    Parameters:
    session -
    Throws:
    java.lang.Exception

    getSession

    public Session getSession()
    Returns session of current dataclient

    Returns:
    Session current Session

    isValid

    public boolean isValid()