ch.ethz.iks.r_osgi.messages
Class InvokeMethodMessage

java.lang.Object
  extended by ch.ethz.iks.r_osgi.messages.RemoteOSGiMessage
      extended by ch.ethz.iks.r_osgi.messages.InvokeMethodMessage

public final class InvokeMethodMessage
extends RemoteOSGiMessage

InvokeMethodMessage is used to invoke a method of a remote service.

Since:
0.1
Author:
Jan S. Rellermeyer, ETH Zurich

Field Summary
 
Fields inherited from class ch.ethz.iks.r_osgi.messages.RemoteOSGiMessage
DELIVER_BUNDLE, DELIVER_SERVICE, FETCH_SERVICE, INVOKE_METHOD, LEASE, LEASE_UPDATE, METHOD_RESULT, REMOTE_EVENT, STREAM_REQUEST, STREAM_RESULT, TIME_OFFSET, xid
 
Constructor Summary
InvokeMethodMessage()
          creates a new InvokeMethodMessage.
 
Method Summary
 Object[] getArgs()
          get the arguments for the invoked method.
 String getMethodSignature()
          get the method signature.
 String getServiceID()
          get the service ID.
 void setArgs(Object[] arguments)
          set the arguments.
 void setMethodSignature(String methodSignature)
          set the method signature.
 void setServiceID(String serviceID)
          set the service ID.
 String toString()
          String representation for debug outputs.
 void writeBody(ObjectOutputStream out)
          write the body of the message to a stream.
 
Methods inherited from class ch.ethz.iks.r_osgi.messages.RemoteOSGiMessage
getFuncID, getXID, parse, readBytes, readStringArray, send, setXID, writeBytes, writeStringArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvokeMethodMessage

public InvokeMethodMessage()
creates a new InvokeMethodMessage.

Method Detail

writeBody

public void writeBody(ObjectOutputStream out)
               throws IOException
write the body of the message to a stream.

Specified by:
writeBody in class RemoteOSGiMessage
Parameters:
out - the ObjectOutputStream.
Throws:
IOException - in case of IO failures.
See Also:
ch.ethz.iks.r_osgi.messages.RemoteOSGiMessage#getBody()

getServiceID

public String getServiceID()
get the service ID.

Returns:
the service ID.

setServiceID

public void setServiceID(String serviceID)
set the service ID.

Parameters:
serviceID - the service ID.

getArgs

public Object[] getArgs()
get the arguments for the invoked method.

Returns:
the arguments.

setArgs

public void setArgs(Object[] arguments)
set the arguments.

Parameters:
arguments - the arguments.

getMethodSignature

public String getMethodSignature()
get the method signature.

Returns:
the method signature.

setMethodSignature

public void setMethodSignature(String methodSignature)
set the method signature.

Parameters:
methodSignature - the method signature.

toString

public String toString()
String representation for debug outputs.

Overrides:
toString in class Object
Returns:
a string representation.
See Also:
Object.toString()