|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.red5.server.service.Call
public class Call
Basic service call (remote call) implementation
| Field Summary | |
|---|---|
protected Object[] |
arguments
Call arguments |
protected Exception |
exception
Call exception if any, null by default |
protected String |
serviceMethodName
Service method name |
protected String |
serviceName
Service name |
protected byte |
status
Call status, initial one is pending |
static byte |
STATUS_ACCESS_DENIED
Access denied constant |
static byte |
STATUS_APP_SHUTTING_DOWN
The application for this service is currently shutting down |
static byte |
STATUS_GENERAL_EXCEPTION
General exception constant |
static byte |
STATUS_INVOCATION_EXCEPTION
Exception on invocation constant |
static byte |
STATUS_METHOD_NOT_FOUND
Service's method not found constant |
static byte |
STATUS_PENDING
Pending status constant |
static byte |
STATUS_SERVICE_NOT_FOUND
Service not found constant |
static byte |
STATUS_SUCCESS_NULL
Returned value is null constant |
static byte |
STATUS_SUCCESS_RESULT
Success result constant |
static byte |
STATUS_SUCCESS_VOID
Service returns no value constant |
| Constructor Summary | |
|---|---|
Call()
|
|
Call(String method)
Creates call from method name |
|
Call(String method,
Object[] args)
Creates call from method name and array of call parameters |
|
Call(String name,
String method,
Object[] args)
Creates call from given service name, method name and array of call parameters |
|
| Method Summary | |
|---|---|
Object[] |
getArguments()
Returns array of service method arguments |
Exception |
getException()
Get service call exception |
String |
getServiceMethodName()
Returns service method name |
String |
getServiceName()
Returns service name |
byte |
getStatus()
Get service call status |
boolean |
isSuccess()
Whether call was successful or not |
void |
readExternal(ObjectInput in)
|
void |
setArguments(Object[] args)
Setter for arguments. |
void |
setException(Exception exception)
Sets exception |
void |
setServiceMethodName(String serviceMethodName)
Setter for service method name |
void |
setServiceName(String serviceName)
Setter for service name |
void |
setStatus(byte status)
Sets status |
String |
toString()
|
void |
writeExternal(ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final byte STATUS_PENDING
public static final byte STATUS_SUCCESS_RESULT
public static final byte STATUS_SUCCESS_NULL
public static final byte STATUS_SUCCESS_VOID
public static final byte STATUS_SERVICE_NOT_FOUND
public static final byte STATUS_METHOD_NOT_FOUND
public static final byte STATUS_ACCESS_DENIED
public static final byte STATUS_INVOCATION_EXCEPTION
public static final byte STATUS_GENERAL_EXCEPTION
public static final byte STATUS_APP_SHUTTING_DOWN
protected String serviceName
protected String serviceMethodName
protected Object[] arguments
protected byte status
protected Exception exception
| Constructor Detail |
|---|
public Call()
public Call(String method)
method - Method name
public Call(String method,
Object[] args)
method - Method nameargs - Call parameters
public Call(String name,
String method,
Object[] args)
name - Service namemethod - Service method nameargs - Call parameters| Method Detail |
|---|
public boolean isSuccess()
isSuccess in interface IServiceCalltrue on success, false otherwisepublic String getServiceMethodName()
getServiceMethodName in interface IServiceCallpublic void setServiceMethodName(String serviceMethodName)
serviceMethodName - New service method name valuepublic String getServiceName()
getServiceName in interface IServiceCallpublic void setServiceName(String serviceName)
serviceName - New service name valuepublic Object[] getArguments()
getArguments in interface IServiceCallpublic void setArguments(Object[] args)
args - Arguments.public byte getStatus()
getStatus in interface IServiceCallpublic void setStatus(byte status)
setStatus in interface IServiceCallstatus - Status as bytepublic Exception getException()
getException in interface IServiceCallpublic void setException(Exception exception)
setException in interface IServiceCallexception - Call exceptionpublic String toString()
toString in class Object
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundException
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizableIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||