Interface horb.orb.Skeleton
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface horb.orb.Skeleton

public interface Skeleton
extends Object
Skeleton object interface. If a server object needs the skeleton of the current thread, call HORBServer.getSkeleton().
	Skeleton s = HORBServer.getSkeleton();
	s.accept(0);
 

Method Index

 o accept(long)
accept invitation.
 o dispatch(IOCI, short, short)
(internal) Method dispatcher.
 o getMajorVersion()
Returns major version number of this proxy class.
 o getMinorVersion()
Returns minor version number of this proxy class.
 o getObject()
(internal) get an object of this skeleton.
 o invited(Proxy)
(internal) Tells the invitation has come.
 o isInvited()
returns true if already invited.
 o setObject(Object)
(internal) set an object to this skeleton.
 o threadEndHook()
(internal) calls HORB server's finalize().

Methods

 o getMajorVersion
  public abstract short getMajorVersion()
Returns major version number of this proxy class.
 o getMinorVersion
  public abstract short getMinorVersion()
Returns minor version number of this proxy class.
 o accept
  public abstract Proxy accept(long millis) throws InterruptedException
accept invitation. Wait for the invitation while specified duration. When invitation comes, this returns a proxy object to the invitor object. In case of timeout, this returns null.
Parameters:
millis - the maximum time to wait in milli seconds.
Returns:
Proxy object of the invitor.
 o isInvited
  public abstract boolean isInvited()
returns true if already invited.
 o dispatch
  public abstract boolean dispatch(IOCI ioci,
                                   short classNo,
                                   short methodNo) throws IOException
(internal) Method dispatcher. A method stub routing selected by methodNo receives arguments from ioci, then returns value to ioci.
Parameters:
ioci - communication channel
classNo - class number in class hierarchy
methodNo - method number in the class
Returns:
true if constructor fails
Throws: IOException
occurs when network error occurs.
 o setObject
  public abstract void setObject(Object o) throws HORBException
(internal) set an object to this skeleton. This method is valid only once. should be used for registerObject().
Parameters:
o - object to be set. This must be the same type as the skeleton.
 o getObject
  public abstract Object getObject() throws ClassNotFoundException, InstantiationException, IllegalAccessException
(internal) get an object of this skeleton.
 o threadEndHook
  public abstract void threadEndHook()
(internal) calls HORB server's finalize().
 o invited
  public abstract void invited(Proxy proxy)
(internal) Tells the invitation has come.

All Packages  Class Hierarchy  This Package  Previous  Next  Index