// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __gnu_java_rmi_server_UnicastRef__
#define __gnu_java_rmi_server_UnicastRef__

#pragma interface

#include <java/lang/Object.h>
#include <gcj/array.h>

extern "Java"
{
  namespace gnu
  {
    namespace java
    {
      namespace rmi
      {
        namespace server
        {
          class UnicastRef;
          class UnicastConnection;
          class UnicastConnectionManager;
        }
      }
    }
  }
  namespace java
  {
    namespace rmi
    {
      class Remote;
      namespace server
      {
        class RemoteRef;
        class RemoteCall;
        class Operation;
        class RemoteObject;
        class RMIClientSocketFactory;
        class ObjID;
      }
    }
  }
};

class ::gnu::java::rmi::server::UnicastRef : public ::java::lang::Object
{
private:
  UnicastRef ();
public:
  UnicastRef (::java::rmi::server::ObjID *, ::java::lang::String *, jint, ::java::rmi::server::RMIClientSocketFactory *);
  UnicastRef (::java::rmi::server::ObjID *);
  virtual ::java::lang::Object *invoke (::java::rmi::Remote *, ::java::lang::reflect::Method *, JArray< ::java::lang::Object *> *, jlong);
private:
  ::java::lang::Object *invokeCommon (::java::rmi::Remote *, ::java::lang::reflect::Method *, JArray< ::java::lang::Object *> *, jint, jlong);
public:
  virtual ::java::rmi::server::RemoteCall *newCall (::java::rmi::server::RemoteObject *, JArray< ::java::rmi::server::Operation *> *, jint, jlong);
  virtual void invoke (::java::rmi::server::RemoteCall *);
  virtual void done (::java::rmi::server::RemoteCall *) { }
  virtual void writeExternal (::java::io::ObjectOutput *);
  virtual void readExternal (::java::io::ObjectInput *);
  virtual jboolean remoteEquals (::java::rmi::server::RemoteRef *);
  virtual jint remoteHashCode ();
  virtual ::java::lang::String *getRefClass (::java::io::ObjectOutput *);
  virtual ::java::lang::String *remoteToString ();
  virtual void dump (::gnu::java::rmi::server::UnicastConnection *);
  ::java::rmi::server::ObjID *objid;
public: // actually package-private
  ::gnu::java::rmi::server::UnicastConnectionManager *manager;
public:

  static ::java::lang::Class class$;
};

#endif /* __gnu_java_rmi_server_UnicastRef__ */
