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);
-
accept(long)
- accept invitation.
-
dispatch(IOCI, short, short)
- (internal) Method dispatcher.
-
getMajorVersion()
- Returns major version number of this proxy class.
-
getMinorVersion()
- Returns minor version number of this proxy class.
-
getObject()
- (internal) get an object of this skeleton.
-
invited(Proxy)
- (internal) Tells the invitation has come.
-
isInvited()
- returns true if already invited.
-
setObject(Object)
- (internal) set an object to this skeleton.
-
threadEndHook()
- (internal) calls HORB server's finalize().
getMajorVersion
public abstract short getMajorVersion()
- Returns major version number of this proxy class.
getMinorVersion
public abstract short getMinorVersion()
- Returns minor version number of this proxy class.
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.
isInvited
public abstract boolean isInvited()
- returns true if already invited.
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.
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.
getObject
public abstract Object getObject() throws ClassNotFoundException, InstantiationException, IllegalAccessException
- (internal) get an object of this skeleton.
threadEndHook
public abstract void threadEndHook()
- (internal) calls HORB server's finalize().
invited
public abstract void invited(Proxy proxy)
- (internal) Tells the invitation has come.
All Packages Class Hierarchy This Package Previous Next Index