|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.net.connect.RemoteObject
public class RemoteObject
RemoteObject
This class contains tools that can be used to make method calls on remote SCL objects.
USAGE:
RemoteObject mySclObject = connectClient.createRemoteInstance("SASLIB.SASCAT.MY_OBJ");
mySclObject.clearArguments();
mySclObject.add***Argument(arg1,RemoteObject.Output); mySclObject.add***Argument(arg2,RemoteObject.Input);
mySclObject.invokeRemoteMethod("myMethodName");
arg1 = mySclObject.get***Argument();
mySclObject.destroy();
Field Summary | |
---|---|
static int |
Input
|
static int |
Output
|
int |
SASV8
|
static int |
typBoolean
|
static int |
typBooleanArray
|
static int |
typBooleanArray2D
|
static int |
typByte
|
static int |
typByteArray
|
static int |
typByteArray2D
|
static int |
typChar
|
static int |
typCharArray
|
static int |
typCharArray2D
|
static int |
typDouble
|
static int |
typDoubleArray
|
static int |
typDoubleArray2D
|
static int |
typFloat
|
static int |
typFloatArray
|
static int |
typFloatArray2D
|
static int |
typInt
|
static int |
typIntArray
|
static int |
typIntArray2D
|
static int |
typList
|
static int |
typLong
|
static int |
typLongArray
|
static int |
typLongArray2D
|
static int |
typMissing
|
static int |
typShort
|
static int |
typShortArray
|
static int |
typShortArray2D
|
static int |
typString
|
static int |
typStringArray
|
static int |
typStringArray2D
|
static int |
Update
|
Constructor Summary | |
---|---|
|
RemoteObject(ConnectClient client,
java.lang.Double handle)
Create a proxy for a pre-existing remote object. |
protected |
RemoteObject(ConnectClient client,
java.lang.String name,
java.lang.Double handle)
Creates an instance of RemoteObject for a given Remote SCL Object |
Method Summary | |
---|---|
void |
addBooleanArgument(boolean number,
int attrib)
Adds a boolean argument to the list of parameters for the next remote method invocation. |
void |
addBooleanArray2DArgument(boolean[][] number,
int attrib)
Adds an boolean two dimensions array argument to the list of parameters for the next remote method invocation. |
void |
addBooleanArrayArgument(boolean[] number,
int attrib)
Adds a boolean array argument to the list of parameters for the next remote method invocation. |
void |
addByteArgument(byte number,
int attrib)
Adds a byte argument to the list of parameters for the next remote method invocation. |
void |
addByteArray2DArgument(byte[][] number,
int attrib)
Adds a byte two dimensions array argument to the list of parameters for the next remote method invocation. |
void |
addByteArrayArgument(byte[] number,
int attrib)
Adds a byte array argument to the list of parameters for the next remote method invocation. |
void |
addCharacterArgument(java.lang.String string,
int attrib)
Adds a character string argument to the list of parameters for the next remote method invocation. |
void |
addCharacterArray2DArgument(java.lang.String[][] string,
int attrib)
Adds a character string array2D argument to the list of parameters for the next remote method invocation. |
void |
addCharacterArrayArgument(java.lang.String[] string,
int attrib)
Adds a character string array argument to the list of parameters for the next remote method invocation. |
void |
addCharArgument(char number,
int attrib)
Adds a char argument to the list of parameters for the next remote method invocation. |
void |
addCharArray2DArgument(char[][] number,
int attrib)
Adds a character string two dimensions array argument to the list of parameters for the next remote method invocation. |
void |
addCharArrayArgument(char[] number,
int attrib)
Adds a char array argument to the list of parameters for the next remote method invocation. |
void |
addDoubleArgument(double number,
int attrib)
Adds a double argument to the list of parameters for the next remote method invocation. |
void |
addDoubleArray2DArgument(double[][] number,
int attrib)
Adds an double two dimensions array argument to the list of parameters for the next remote method invocation. |
void |
addDoubleArrayArgument(double[] number,
int attrib)
Adds a double array argument to the list of parameters for the next remote method invocation. |
void |
addFloatArgument(float number,
int attrib)
Adds a float argument to the list of parameters for the next remote method invocation. |
void |
addFloatArray2DArgument(float[][] number,
int attrib)
Adds a float two dimensions array argument to the list of parameters for the next remote method invocation. |
void |
addFloatArrayArgument(float[] number,
int attrib)
Adds a float array argument to the list of parameters for the next remote method invocation. |
void |
addIntArgument(int number,
int attrib)
Adds an int argument to the list of parameters for the next remote method invocation. |
void |
addIntArray2DArgument(int[][] number,
int attrib)
Adds a int two dimensions array argument to the list of parameters for the next remote method invocation. |
void |
addIntArrayArgument(int[] number,
int attrib)
Adds an int array argument to the list of parameters for the next remote method invocation. |
void |
addListArgument(com.sas.collection.hlist.HListInterface hList,
int attrib)
Adds an HList argument to the list of parameters for the next remote method invocation. |
void |
addLongArgument(long number,
int attrib)
Adds a long argument to the list of parameters for the next remote method invocation. |
void |
addLongArray2DArgument(long[][] number,
int attrib)
Adds a long two dimensions array argument to the list of parameters for the next remote method invocation. |
void |
addLongArrayArgument(long[] number,
int attrib)
Adds a long array argument to the list of parameters for the next remote method invocation. |
void |
addMissingArgument(com.sas.MissingValues value,
int attrib)
Adds a missing value argument to the list of parameters for the next remote method invocation. |
void |
addNumberArgument(double number,
int attrib)
Adds a Number argument to the list of parameters for the next remote method invocation. |
void |
addNumberArrayArgument(double[] number,
int attrib)
Adds a Number array argument to the list of parameters for the next remote method invocation. |
void |
addShortArgument(short number,
int attrib)
Adds a short argument to the list of parameters for the next remote method invocation. |
void |
addShortArray2DArgument(short[][] number,
int attrib)
Adds a short two dimensions array argument to the list of parameters for the next remote method invocation. |
void |
addShortArrayArgument(short[] number,
int attrib)
Adds a short array argument to the list of parameters for the next remote method invocation. |
void |
addStringArgument(java.lang.String string,
int attrib)
Adds a String argument to the list of parameters for the next remote method invocation. |
void |
addStringArray2DArgument(java.lang.String[][] string,
int attrib)
Adds a two dimensions character string array argument to the list of parameters for the next remote method invocation. |
void |
addStringArrayArgument(java.lang.String[] string,
int attrib)
Adds a character string array argument to the list of parameters for the next remote method invocation. |
void |
clearArguments()
Clears out the arguments from the last method call. |
void |
destroy()
Destroys the remote SCL object on the server |
protected void |
finalize()
|
protected int |
getArgumentCount()
Returns the argument count for the pending remote method invocation |
protected com.sas.collection.hlist.HListInterface |
getArguments()
Returns the arguments for the pending remote method invocation. |
protected int |
getAttributeCount()
Returns the attribute count for the pending remote method invocation. |
protected java.util.Vector |
getAttributes()
Returns the argument attributes for the pending remote method invocation. |
boolean |
getBooleanArgument()
Gets the value of the next updated Update or Output parameter after a method invocation. |
boolean[][] |
getBooleanArray2DArgument()
Gets the value of the next updated Update or Output parameter after a method invocation. |
boolean[] |
getBooleanArrayArgument()
Gets the value of the next updated Update or Output parameter after a method invocation. |
byte |
getByteArgument()
Gets the value of the next updated Update or Output parameter after a method invocation. |
byte[][] |
getByteArray2DArgument()
Gets the value of the next updated Update or Output parameter after a method invocation. |
byte[] |
getByteArrayArgument()
Gets the value of the next updated Update or Output parameter after a method invocation. |
java.lang.String |
getCharacterArgument()
Gets the value of the next updated Update or Output parameter after a method invocation. |
java.lang.String[] |
getCharacterArrayArgument()
Gets the value of the next updated Update or Output parameter after a method invocation. |
char |
getCharArgument()
Gets the value of the next updated Update or Output parameter after a method invocation. |
char[][] |
getCharArray2DArgument()
Gets the value of the next updated Update or Output parameter after a method invocation. |
char[] |
getCharArrayArgument()
Gets the value of the next updated Update or Output parameter after a method invocation. |
double |
getDoubleArgument()
Gets the value of the next updated Update or Output parameter after a method invocation. |
double[][] |
getDoubleArray2DArgument()
Gets the value of the next updated Update or Output parameter after a method invocation. |
double[] |
getDoubleArrayArgument()
Gets the value of the next updated Update or Output parameter after a method invocation. |
float |
getFloatArgument()
Gets the value of the next updated Update or Output parameter after a method invocation. |
float[][] |
getFloatArray2DArgument()
Gets the value of the next updated Update or Output parameter after a method invocation. |
float[] |
getFloatArrayArgument()
Gets the value of the next updated Update or Output parameter after a method invocation. |
java.lang.Double |
getHandle()
Returns the handle of the remote SCL object |
int |
getIntArgument()
Gets the value of the next updated Update or Output parameter after a method invocation. |
int[][] |
getIntArray2DArgument()
Gets the value of the next updated Update or Output parameter after a method invocation. |
int[] |
getIntArrayArgument()
Gets the value of the next updated Update or Output parameter after a method invocation. |
com.sas.collection.hlist.HListInterface |
getListArgument()
Gets the value of the next updated Update or Output parameter after a method invocation. |
long |
getLongArgument()
Gets the value of the next updated Update or Output parameter after a method invocation. |
long[][] |
getLongArray2DArgument()
Gets the value of the next updated Update or Output parameter after a method invocation. |
long[] |
getLongArrayArgument()
Gets the value of the next updated Update or Output parameter after a method invocation. |
com.sas.MissingValues |
getMissingArgument()
Gets the value of the next updated Update or Output parameter after a method invocation. |
protected java.lang.String |
getName()
Returns the name of the remote SCL class |
double |
getNumberArgument()
Gets the value of the next updated Update or Output parameter after a method invocation. |
double[] |
getNumberArrayArgument()
Gets the value of the next updated Update or Output parameter after a method invocation. |
short |
getShortArgument()
Gets the value of the next updated Update or Output parameter after a method invocation. |
short[][] |
getShortArray2DArgument()
Gets the value of the next updated Update or Output parameter after a method invocation. |
short[] |
getShortArrayArgument()
Gets the value of the next updated Update or Output parameter after a method invocation. |
java.lang.String |
getStringArgument()
Gets the value of the next updated Update or Output parameter after a method invocation. |
java.lang.String[][] |
getStringArray2DArgument()
Gets the value of the next updated Update or Output parameter after a method invocation. |
java.lang.String[] |
getStringArrayArgument()
Gets the value of the next updated Update or Output parameter after a method invocation. |
void |
invokeRemoteMethod(java.lang.String methodName)
Calls a method on the remote SCL object with the parameters that have been added previously |
boolean |
isOwner()
|
protected void |
setArguments(com.sas.collection.hlist.HListInterface returnArgs)
Sets the list of updated Update and Output parameters |
Field Detail |
---|
public static final int typDouble
public static final int typFloat
public static final int typLong
public static final int typInt
public static final int typString
public static final int typMissing
public static final int typList
public static final int typDoubleArray
public static final int typFloatArray
public static final int typLongArray
public static final int typIntArray
public static final int typStringArray
public static final int typShortArray
public static final int typCharArray
public static final int typByteArray
public static final int typBooleanArray
public static final int typShort
public static final int typChar
public static final int typByte
public static final int typBoolean
public static final int typDoubleArray2D
public static final int typFloatArray2D
public static final int typLongArray2D
public static final int typIntArray2D
public static final int typStringArray2D
public static final int typShortArray2D
public static final int typCharArray2D
public static final int typByteArray2D
public static final int typBooleanArray2D
public static final int Input
public static final int Update
public static final int Output
public int SASV8
Constructor Detail |
---|
public RemoteObject(ConnectClient client, java.lang.Double handle) throws ConnectException
client
- the client handling the connection to the remote SAS sessionhandle
- the handle for the pre-existing remote object
ConnectException
- if the RemoteObjectExtension isn't installedprotected RemoteObject(ConnectClient client, java.lang.String name, java.lang.Double handle) throws ConnectException
client
- The client connected to the SAS/CONNECT server on the
machine that holds the remote SCL objectname
- The name of the remote SCL classhandle
- The handle assigned the remote SCL object when it was created
on the server.
ConnectException
- if the RemoteObjectExtension isn't installedMethod Detail |
---|
public void clearArguments()
public void addNumberArgument(double number, int attrib) throws ConnectException
number
- the argumentattrib
- RemoteObject.Input, RemoteObject.Output, or RemoteObject.Update
ConnectException
- if clearArguments has not
been called or the attribute flag is invalidpublic void addDoubleArgument(double number, int attrib) throws ConnectException
number
- the argumentattrib
- RemoteObject.Input, RemoteObject.Output, or RemoteObject.Update
ConnectException
public void addFloatArgument(float number, int attrib) throws ConnectException
number
- the argumentattrib
- RemoteObject.Input, RemoteObject.Output, or RemoteObject.Update
ConnectException
- if clearArguments has not
been called or the attribute flag is invalidpublic void addLongArgument(long number, int attrib) throws ConnectException
number
- the argumentattrib
- RemoteObject.Input, RemoteObject.Output, or RemoteObject.Update
ConnectException
- if clearArguments has not
been called or the attribute flag is invalidpublic void addIntArgument(int number, int attrib) throws ConnectException
number
- the argumentattrib
- RemoteObject.Input, RemoteObject.Output, or RemoteObject.Update
ConnectException
- if clearArguments has not
been called or the attribute flag is invalidpublic void addShortArgument(short number, int attrib) throws ConnectException
number
- the argumentattrib
- RemoteObject.Input, RemoteObject.Output, or RemoteObject.Update
ConnectException
- if clearArguments has not
been called or the attribute flag is invalidpublic void addCharArgument(char number, int attrib) throws ConnectException
number
- the argumentattrib
- RemoteObject.Input, RemoteObject.Output, or RemoteObject.Update
ConnectException
- if clearArguments has not
been called or the attribute flag is invalidpublic void addByteArgument(byte number, int attrib) throws ConnectException
number
- the argumentattrib
- RemoteObject.Input, RemoteObject.Output, or RemoteObject.Update
ConnectException
- if clearArguments has not
been called or the attribute flag is invalidpublic void addBooleanArgument(boolean number, int attrib) throws ConnectException
number
- the argumentattrib
- RemoteObject.Input, RemoteObject.Output, or RemoteObject.Update
ConnectException
- if clearArguments has not
been called or the attribute flag is invalidpublic void addMissingArgument(com.sas.MissingValues value, int attrib) throws ConnectException
value
- the argumentattrib
- RemoteObject.Input, RemoteObject.Output, or RemoteObject.Update
ConnectException
- if clearArguments has not
been called or the attribute flag is invalidpublic void addCharacterArgument(java.lang.String string, int attrib) throws ConnectException
string
- the argumentattrib
- RemoteObject.Input, RemoteObject.Output, or RemoteObject.Update
ConnectException
- if clearArguments has not
been called or the attribute flag is invalidpublic void addStringArgument(java.lang.String string, int attrib) throws ConnectException
string
- the argumentattrib
- RemoteObject.Input, RemoteObject.Output, or RemoteObject.Update
ConnectException
- if clearArguments has not
been called or the attribute flag is invalidpublic void addNumberArrayArgument(double[] number, int attrib) throws ConnectException
number
- the argumentattrib
- RemoteObject.Input, RemoteObject.Output, or RemoteObject.Update
ConnectException
- if clearArguments has not
been called or the attribute flag is invalidpublic void addDoubleArrayArgument(double[] number, int attrib) throws ConnectException
number
- the argumentattrib
- RemoteObject.Input, RemoteObject.Output, or RemoteObject.Update
ConnectException
- if clearArguments has not
been called or the attribute flag is invalidpublic void addFloatArrayArgument(float[] number, int attrib) throws ConnectException
number
- the argumentattrib
- RemoteObject.Input, RemoteObject.Output, or RemoteObject.Update
ConnectException
- if clearArguments has not
been called or the attribute flag is invalidpublic void addLongArrayArgument(long[] number, int attrib) throws ConnectException
number
- the argumentattrib
- RemoteObject.Input, RemoteObject.Output, or RemoteObject.Update
ConnectException
- if clearArguments has not
been called or the attribute flag is invalidpublic void addIntArrayArgument(int[] number, int attrib) throws ConnectException
number
- the argumentattrib
- RemoteObject.Input, RemoteObject.Output, or RemoteObject.Update
ConnectException
- if clearArguments has not
been called or the attribute flag is invalidpublic void addShortArrayArgument(short[] number, int attrib) throws ConnectException
number
- the argumentattrib
- RemoteObject.Input, RemoteObject.Output, or RemoteObject.Update
ConnectException
- if clearArguments has not
been called or the attribute flag is invalidpublic void addCharArrayArgument(char[] number, int attrib) throws ConnectException
number
- the argumentattrib
- RemoteObject.Input, RemoteObject.Output, or RemoteObject.Update
ConnectException
- if clearArguments has not
been called or the attribute flag is invalidpublic void addByteArrayArgument(byte[] number, int attrib) throws ConnectException
number
- the argumentattrib
- RemoteObject.Input, RemoteObject.Output, or RemoteObject.Update
ConnectException
- if clearArguments has not
been called or the attribute flag is invalidpublic void addBooleanArrayArgument(boolean[] number, int attrib) throws ConnectException
number
- the argumentattrib
- RemoteObject.Input, RemoteObject.Output, or RemoteObject.Update
ConnectException
- if clearArguments has not
been called or the attribute flag is invalidpublic void addCharacterArrayArgument(java.lang.String[] string, int attrib) throws ConnectException
string
- the argumentattrib
- RemoteObject.Input, RemoteObject.Output, or RemoteObject.Update
ConnectException
- if clearArguments has not
been called or the attribute flag is invalidpublic void addStringArrayArgument(java.lang.String[] string, int attrib) throws ConnectException
string
- the argumentattrib
- RemoteObject.Input, RemoteObject.Output, or RemoteObject.Update
ConnectException
- if clearArguments has not
been called or the attribute flag is invalidpublic void addListArgument(com.sas.collection.hlist.HListInterface hList, int attrib) throws ConnectException
hList
- the argumentattrib
- RemoteObject.Input, RemoteObject.Output, or RemoteObject.Update
ConnectException
- if clearArguments has not
been called or the attribute flag is invalidpublic void addDoubleArray2DArgument(double[][] number, int attrib) throws ConnectException
two
- dimensions double array argumentattrib
- RemoteObject.Input, RemoteObject.Output, or RemoteObject.Update
ConnectException
- if clearArguments has not
been called or the attribute flag is invalidpublic void addFloatArray2DArgument(float[][] number, int attrib) throws ConnectException
two
- dimensions float array argumentattrib
- RemoteObject.Input, RemoteObject.Output, or RemoteObject.Update
ConnectException
- if clearArguments has not
been called or the attribute flag is invalidpublic void addLongArray2DArgument(long[][] number, int attrib) throws ConnectException
two
- dimensions long array argumentattrib
- RemoteObject.Input, RemoteObject.Output, or RemoteObject.Update
ConnectException
- if clearArguments has not
been called or the attribute flag is invalidpublic void addIntArray2DArgument(int[][] number, int attrib) throws ConnectException
two
- dimensions int array argumentattrib
- RemoteObject.Input, RemoteObject.Output, or RemoteObject.Update
ConnectException
- if clearArguments has not
been called or the attribute flag is invalidpublic void addShortArray2DArgument(short[][] number, int attrib) throws ConnectException
two
- dimensions short array argumentattrib
- RemoteObject.Input, RemoteObject.Output, or RemoteObject.Update
ConnectException
- if clearArguments has not
been called or the attribute flag is invalidpublic void addCharArray2DArgument(char[][] number, int attrib) throws ConnectException
two
- dimensions character string array argumentattrib
- RemoteObject.Input, RemoteObject.Output, or RemoteObject.Update
ConnectException
- if clearArguments has not
been called or the attribute flag is invalidpublic void addByteArray2DArgument(byte[][] number, int attrib) throws ConnectException
two
- dimensions byte array argumentattrib
- RemoteObject.Input, RemoteObject.Output, or RemoteObject.Update
ConnectException
- if clearArguments has not
been called or the attribute flag is invalidpublic void addBooleanArray2DArgument(boolean[][] number, int attrib) throws ConnectException
two
- dimensions boolean array argumentattrib
- RemoteObject.Input, RemoteObject.Output, or RemoteObject.Update
ConnectException
- if clearArguments has not
been called or the attribute flag is invalidpublic void addStringArray2DArgument(java.lang.String[][] string, int attrib) throws ConnectException
two
- dimension string array argumentattrib
- RemoteObject.Input, RemoteObject.Output, or RemoteObject.Update
ConnectException
- if clearArguments has not
been called or the attribute flag is invalidpublic void addCharacterArray2DArgument(java.lang.String[][] string, int attrib) throws ConnectException
string
- the argumentattrib
- RemoteObject.Input, RemoteObject.Output, or RemoteObject.Update
ConnectException
- if clearArguments has not
been called or the attribute flag is invalidpublic void invokeRemoteMethod(java.lang.String methodName) throws ConnectException
methodName
- the name of the method to invoke
ConnectException
- if there is an error
invoking the remote SCL methodpublic double getNumberArgument()
public double getDoubleArgument()
public float getFloatArgument()
public long getLongArgument()
public int getIntArgument()
public short getShortArgument()
public char getCharArgument()
public byte getByteArgument()
public boolean getBooleanArgument()
public com.sas.MissingValues getMissingArgument()
public java.lang.String getCharacterArgument()
public java.lang.String getStringArgument()
public double[] getNumberArrayArgument()
public double[] getDoubleArrayArgument()
public float[] getFloatArrayArgument()
public long[] getLongArrayArgument()
public int[] getIntArrayArgument()
public short[] getShortArrayArgument()
public char[] getCharArrayArgument()
public byte[] getByteArrayArgument()
public boolean[] getBooleanArrayArgument()
public java.lang.String[] getCharacterArrayArgument()
public java.lang.String[] getStringArrayArgument()
public com.sas.collection.hlist.HListInterface getListArgument()
public double[][] getDoubleArray2DArgument()
public float[][] getFloatArray2DArgument()
public long[][] getLongArray2DArgument()
public int[][] getIntArray2DArgument()
public short[][] getShortArray2DArgument()
public char[][] getCharArray2DArgument()
public byte[][] getByteArray2DArgument()
public boolean[][] getBooleanArray2DArgument()
public java.lang.String[][] getStringArray2DArgument()
public void destroy() throws ConnectException
if
- there is an error while destroying the remote SCL object
ConnectException
public java.lang.Double getHandle()
public boolean isOwner()
protected java.lang.String getName()
protected int getAttributeCount()
protected java.util.Vector getAttributes()
protected com.sas.collection.hlist.HListInterface getArguments()
protected int getArgumentCount()
protected void setArguments(com.sas.collection.hlist.HListInterface returnArgs)
returnArgs
- the list of updated Update and Output parametersprotected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |