edu.ntnu.cikmr.services.resources
Class Resource

java.lang.Object
  extended by edu.ntnu.cikmr.services.resources.Resource

public class Resource
extends java.lang.Object


Field Summary
protected  int ticker
           
 
Constructor Summary
Resource()
           
 
Method Summary
 java.lang.String getPeerID()
           
 java.lang.String getPeerName()
           
 java.lang.String getPipeID()
           
 ResourceDescription getResourceDescription()
           
 InvocationResult invokeMethod(ResourceMethod method, java.lang.Object[] parameters)
           
 InvocationResult[] invokeMethods(ResourceMethod[] methods, java.lang.Object[][] parameters)
           
protected  void setPeerID(java.lang.String peerID)
           
protected  void setPeerName(java.lang.String peerName)
           
protected  void setPipeID(java.lang.String pipeID)
           
protected  void setResourceDescription(ResourceDescription resourceDescription)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ticker

protected int ticker
Constructor Detail

Resource

public Resource()
Method Detail

setResourceDescription

protected void setResourceDescription(ResourceDescription resourceDescription)

setPeerID

protected void setPeerID(java.lang.String peerID)

setPeerName

protected void setPeerName(java.lang.String peerName)

setPipeID

protected void setPipeID(java.lang.String pipeID)

getResourceDescription

public ResourceDescription getResourceDescription()

getPeerID

public java.lang.String getPeerID()

getPeerName

public java.lang.String getPeerName()

getPipeID

public java.lang.String getPipeID()

invokeMethod

public InvocationResult invokeMethod(ResourceMethod method,
                                     java.lang.Object[] parameters)
                              throws java.lang.reflect.InvocationTargetException
Throws:
java.lang.reflect.InvocationTargetException

invokeMethods

public InvocationResult[] invokeMethods(ResourceMethod[] methods,
                                        java.lang.Object[][] parameters)
                                 throws java.lang.reflect.InvocationTargetException
Throws:
java.lang.reflect.InvocationTargetException