summaryrefslogtreecommitdiff
path: root/libjava/gnu/java/rmi/server/UnicastConnectionManager.h
blob: 26c19ccc2ba118fa83236b7f0785764184370b45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __gnu_java_rmi_server_UnicastConnectionManager__
#define __gnu_java_rmi_server_UnicastConnectionManager__

#pragma interface

#include <java/lang/Object.h>
extern "Java"
{
  namespace gnu
  {
    namespace java
    {
      namespace rmi
      {
        namespace server
        {
            class UnicastConnection;
            class UnicastConnectionManager;
        }
      }
    }
  }
  namespace java
  {
    namespace net
    {
        class ServerSocket;
    }
    namespace rmi
    {
      namespace server
      {
          class RMIClientSocketFactory;
          class RMIServerSocketFactory;
          class RMISocketFactory;
      }
    }
  }
}

class gnu::java::rmi::server::UnicastConnectionManager : public ::java::lang::Object
{

  static void startScavenger();
  UnicastConnectionManager(::java::lang::String *, jint, ::java::rmi::server::RMIClientSocketFactory *);
  UnicastConnectionManager(jint, ::java::rmi::server::RMIServerSocketFactory *);
public:
  static ::gnu::java::rmi::server::UnicastConnectionManager * getInstance(::java::lang::String *, jint, ::java::rmi::server::RMIClientSocketFactory *);
  static ::gnu::java::rmi::server::UnicastConnectionManager * getInstance(jint, ::java::rmi::server::RMIServerSocketFactory *);
  virtual ::gnu::java::rmi::server::UnicastConnection * getConnection();
private:
  ::gnu::java::rmi::server::UnicastConnection * getServerConnection();
  ::gnu::java::rmi::server::UnicastConnection * getClientConnection();
public:
  virtual ::java::lang::String * toString();
  virtual void discardConnection(::gnu::java::rmi::server::UnicastConnection *);
  virtual void startServer();
  virtual void stopServer();
  virtual void run();
public: // actually package-private
  virtual void write(::java::io::ObjectOutput *);
  static ::gnu::java::rmi::server::UnicastConnectionManager * read(::java::io::ObjectInput *);
private:
  static ::java::lang::String * localhost;
  static ::java::util::Hashtable * servers;
public: // actually package-private
  static ::java::util::Hashtable * clients;
  ::java::util::ArrayList * __attribute__((aligned(__alignof__( ::java::lang::Object)))) connections;
private:
  ::java::lang::Thread * volatile serverThread;
  ::java::net::ServerSocket * ssock;
public: // actually package-private
  ::java::lang::String * serverName;
  jint serverPort;
  static ::java::lang::Thread * scavenger;
  ::java::lang::Object * serverobj;
private:
  static ::java::rmi::server::RMISocketFactory * defaultSocketFactory;
  ::java::rmi::server::RMIServerSocketFactory * serverFactory;
  ::java::rmi::server::RMIClientSocketFactory * clientFactory;
  static jint ncsock;
  static jint nssock;
  static jint ncmanager;
  static jint nsmanager;
  static const jboolean debug = 0;
  static ::java::lang::Object * GLOBAL_LOCK;
public:
  static ::java::lang::Class class$;
};

#endif // __gnu_java_rmi_server_UnicastConnectionManager__