Package com.basis.api.admin
Class RemoteCall
java.lang.Object
com.basis.api.admin.RemoteCall
- All Implemented Interfaces:
Serializable
Represents a single call to a remote server including the type
of call, the method name, and the parameters.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTypically used to create an empty instance that will be populated by a call to readObject().RemoteCall
(int p_type, String p_methodName, Object[] p_parameters) Typically called to create an instance with all the necessary information that will be sent to a server with a call to the send() method. -
Method Summary
Modifier and TypeMethodDescriptionObject[]
int
getType()
void
void
setMethodName
(String p_methodName) void
setParameters
(Object[] p_parameters) void
setType
(int p_type)
-
Field Details
-
SERVER
public static final int SERVER- See Also:
-
DATABASE
public static final int DATABASE- See Also:
-
USER
public static final int USER- See Also:
-
m_type
public int m_type -
m_methodName
-
m_parameters
-
-
Constructor Details
-
RemoteCall
public RemoteCall()Typically used to create an empty instance that will be populated by a call to readObject(). -
RemoteCall
Typically called to create an instance with all the necessary information that will be sent to a server with a call to the send() method.- Parameters:
p_type
- Type of call.p_methodName
- Name of method to call.p_parameters
- Parameters to pass to the method call.
-
-
Method Details
-
getType
public int getType() -
getMethodName
-
getParameters
-
setMethodName
-
setParameters
-
setType
public void setType(int p_type) -
initFromStream
- Throws:
IOException
ClassNotFoundException
-