com.intrinsyc.janet
Class RemoteProxy

java.lang.Object
  |
  +--com.intrinsyc.janet.RemoteProxy
All Implemented Interfaces:
JanetProxy

public class RemoteProxy
extends java.lang.Object
implements JanetProxy

The base class for all generated proxies representing objects marshalled by reference. Usually this class should not be accessed directly by the user.

© 2007 Intrinsyc Software International, Inc. All rights reserved.

Version:
1.4

Field Summary
static int ARRAY
           
static int ARRAY_MASK
           
 java.lang.String assemblyName
           
static int BOOLEAN
           
static int BYTE
           
static int CHAR
           
 java.lang.String className
           
static int DOUBLE
           
static int FLOAT
           
 java.lang.String format
           
static int IN_OUT
           
static int IN_OUT_RETURN_MASK
           
static int INT
           
static int JAGGED_ARRAY
           
static int LONG
           
static int OBJECT_BY_REF
           
static int OBJECT_BY_VALUE
           
static int OUT
           
static int RETURN
           
static int SHORT
           
static int STRING
           
static int TYPE_MASK
           
 java.net.URL URI
           
static int VOID
           
 
Constructor Summary
RemoteProxy(com.intrinsyc.janet.remoting.ObjRef objRef)
          Constructor RemoteProxy Constructs a remote object for a specific object reference.
RemoteProxy(java.lang.String className, java.lang.String assembly, int[] parameterTypes, java.lang.Object[] parameterValues, java.lang.String[] parameterTypeNames)
          Constructor RemoteProxy Constructs a new RemoteProxy object, reads the configuration settings for the remote class and activates a new remote object, if the class is client activated.
RemoteProxy(java.lang.String className, java.lang.String assembly, java.lang.String URI, java.lang.String format, boolean clientActivated, int[] parameterTypes, java.lang.Object[] parameterValues, java.lang.String[] parameterTypeNames)
          Constructs a new RemoteProxy object and activates a new remote object, if the value of the clientActivated parameter is true.
 
Method Summary
 java.lang.Object getField(java.lang.String propertyName)
          Gets a property value from a remote object.
static java.lang.String getGuid()
          Method getGuid Creates and returns a new Guid.
 com.intrinsyc.janet.System.Runtime.Remoting.Lifetime.ILease getLifetimeService()
          Method getLifetimeService Gets the Lease for the remote object
 com.intrinsyc.janet.remoting.ObjRef getObjRef()
          Method getObjRef Returns the object reference supplied
 java.lang.Object getProperty(java.lang.String propertyName, int type)
          Gets a property value from a remote object.
 void invokeMethod(java.lang.String methodName, int[] parameterTypes, java.lang.Object[] parameterValues, java.lang.String[] parameterTypeNames)
          Invokes a method on a remote object.
static void setAuthentication(java.lang.String className, java.lang.String method, java.lang.String domain, java.lang.String userid, java.lang.String password)
          Method setAuthentication Sets authentication parameters.
 void setField(java.lang.String fieldName, java.lang.Object value, int type)
          Sets a field value in a remote object.
 void setProperty(java.lang.String propertyName, java.lang.Object value, int type)
          Sets a property value in a remote object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ARRAY

public static final int ARRAY
See Also:
Constant Field Values

ARRAY_MASK

public static final int ARRAY_MASK
See Also:
Constant Field Values

assemblyName

public java.lang.String assemblyName

BOOLEAN

public static final int BOOLEAN
See Also:
Constant Field Values

BYTE

public static final int BYTE
See Also:
Constant Field Values

CHAR

public static final int CHAR
See Also:
Constant Field Values

className

public java.lang.String className

DOUBLE

public static final int DOUBLE
See Also:
Constant Field Values

FLOAT

public static final int FLOAT
See Also:
Constant Field Values

format

public java.lang.String format

IN_OUT

public static final int IN_OUT
See Also:
Constant Field Values

IN_OUT_RETURN_MASK

public static final int IN_OUT_RETURN_MASK
See Also:
Constant Field Values

INT

public static final int INT
See Also:
Constant Field Values

JAGGED_ARRAY

public static final int JAGGED_ARRAY
See Also:
Constant Field Values

LONG

public static final int LONG
See Also:
Constant Field Values

OBJECT_BY_REF

public static final int OBJECT_BY_REF
See Also:
Constant Field Values

OBJECT_BY_VALUE

public static final int OBJECT_BY_VALUE
See Also:
Constant Field Values

OUT

public static final int OUT
See Also:
Constant Field Values

RETURN

public static final int RETURN
See Also:
Constant Field Values

SHORT

public static final int SHORT
See Also:
Constant Field Values

STRING

public static final int STRING
See Also:
Constant Field Values

TYPE_MASK

public static final int TYPE_MASK
See Also:
Constant Field Values

URI

public java.net.URL URI

VOID

public static final int VOID
See Also:
Constant Field Values
Constructor Detail

RemoteProxy

public RemoteProxy(com.intrinsyc.janet.remoting.ObjRef objRef)
            throws RemoteException
Constructor RemoteProxy Constructs a remote object for a specific object reference.

Parameters:
objRef - the object reference
Throws:
RemoteException

RemoteProxy

public RemoteProxy(java.lang.String className,
                   java.lang.String assembly,
                   int[] parameterTypes,
                   java.lang.Object[] parameterValues,
                   java.lang.String[] parameterTypeNames)
            throws RemoteException
Constructor RemoteProxy Constructs a new RemoteProxy object, reads the configuration settings for the remote class and activates a new remote object, if the class is client activated.

Parameters:
className -
assembly -
parameterTypes -
parameterValues -
parameterTypeNames -
Throws:
RemoteException

RemoteProxy

public RemoteProxy(java.lang.String className,
                   java.lang.String assembly,
                   java.lang.String URI,
                   java.lang.String format,
                   boolean clientActivated,
                   int[] parameterTypes,
                   java.lang.Object[] parameterValues,
                   java.lang.String[] parameterTypeNames)
            throws RemoteException
Constructs a new RemoteProxy object and activates a new remote object, if the value of the clientActivated parameter is true.

Parameters:
assembly -
URI -
clientActivated -
className -
format -
Method Detail

getField

public java.lang.Object getField(java.lang.String propertyName)
Gets a property value from a remote object.

Parameters:
propertyName -
Returns:
Object

getGuid

public static java.lang.String getGuid()
Method getGuid Creates and returns a new Guid.

Returns:
the Guid

getLifetimeService

public com.intrinsyc.janet.System.Runtime.Remoting.Lifetime.ILease getLifetimeService()
                                                                               throws RemoteException
Method getLifetimeService Gets the Lease for the remote object

Returns:
the Lease for the remote object
RemoteException

getObjRef

public com.intrinsyc.janet.remoting.ObjRef getObjRef()
Method getObjRef Returns the object reference supplied

Returns:
the object reference, returns null if the class represents a server activated object.

getProperty

public java.lang.Object getProperty(java.lang.String propertyName,
                                    int type)
Gets a property value from a remote object.

Parameters:
propertyName -
type -
Returns:
Object

invokeMethod

public void invokeMethod(java.lang.String methodName,
                         int[] parameterTypes,
                         java.lang.Object[] parameterValues,
                         java.lang.String[] parameterTypeNames)
                  throws RemoteException
Invokes a method on a remote object.

Parameters:
methodName -
parameterTypes -
parameterValues -
parameterTypeNames -
Throws:
RemoteException

setAuthentication

public static void setAuthentication(java.lang.String className,
                                     java.lang.String method,
                                     java.lang.String domain,
                                     java.lang.String userid,
                                     java.lang.String password)
Method setAuthentication Sets authentication parameters.

Parameters:
className -
method -
domain -
userid -
password -

setField

public void setField(java.lang.String fieldName,
                     java.lang.Object value,
                     int type)
Sets a field value in a remote object.

Parameters:
fieldName -
value -
type -

setProperty

public void setProperty(java.lang.String propertyName,
                        java.lang.Object value,
                        int type)
Sets a property value in a remote object.

Parameters:
propertyName -
value -
type -