Module: Baykit::BayServer::Docker::Harbor

Includes:
Docker
Included in:
BuiltIn::BuiltInHarborDocker
Defined in:
lib/baykit/bayserver/docker/harbor.rb

Constant Summary collapse

MULTIPLEXER_TYPE_SPIDER =
1
MULTIPLEXER_TYPE_SPIN =
2
MULTIPLEXER_TYPE_PIGEON =
3
MULTIPLEXER_TYPE_JOB =
4
MULTIPLEXER_TYPE_TAXI =
5
MULTIPLEXER_TYPE_TRAIN =
6
RECIPIENT_TYPE_SPIDER =
1
RECIPIENT_TYPE_PIPE =
2

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Docker

#init, #type

Class Method Details

.get_multiplexer_type(type) ⇒ Object



144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
# File 'lib/baykit/bayserver/docker/harbor.rb', line 144

def self.get_multiplexer_type(type)
  if type != nil
    type = type.downcase
  end

  case type
  when "spider"
    return MULTIPLEXER_TYPE_SPIDER
  when "spin"
    return MULTIPLEXER_TYPE_SPIN
  when "pigeon"
    return MULTIPLEXER_TYPE_PIGEON
  when "job"
    return MULTIPLEXER_TYPE_JOB
  when "taxi"
    return MULTIPLEXER_TYPE_TAXI
  when "train"
    return MULTIPLEXER_TYPE_TRAIN
  else
    raise ArgumentError
  end
end

.get_multiplexer_type_name(type) ⇒ Object



125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# File 'lib/baykit/bayserver/docker/harbor.rb', line 125

def self.get_multiplexer_type_name(type)
  case type
  when MULTIPLEXER_TYPE_SPIDER
    return "spider"
  when MULTIPLEXER_TYPE_SPIN
    return "spin"
  when MULTIPLEXER_TYPE_PIGEON
    return "pigeon"
  when MULTIPLEXER_TYPE_JOB
    return "job"
  when MULTIPLEXER_TYPE_TAXI
    return "taxi"
  when MULTIPLEXER_TYPE_TRAIN
    return "train"
  else
    return nil
  end
end

.get_recipient_type(type) ⇒ Object



178
179
180
181
182
183
184
185
186
187
188
189
190
191
# File 'lib/baykit/bayserver/docker/harbor.rb', line 178

def self.get_recipient_type(type)
  if type != nil
    type = type.downcase
  end

  case type
  when "spider"
    return RECIPIENT_TYPE_SPIDER
  when "pipe"
    return RECIPIENT_TYPE_PIPE
  else
    raise ArgumentError
  end
end

.get_recipient_type_name(type) ⇒ Object



167
168
169
170
171
172
173
174
175
176
# File 'lib/baykit/bayserver/docker/harbor.rb', line 167

def self.get_recipient_type_name(type)
  case type
  when RECIPIENT_TYPE_SPIDER
    return "spider"
  when RECIPIENT_TYPE_PIPE
    return "pipe"
  else
    return nil
  end
end

Instance Method Details

#cgi_multiplexerObject

Multiplexer of CGI input

Raises:

  • (NotImplementedError)


105
106
107
# File 'lib/baykit/bayserver/docker/harbor.rb', line 105

def cgi_multiplexer
  raise NotImplementedError.new
end

#charsetObject

Default charset

Raises:

  • (NotImplementedError)


20
21
22
# File 'lib/baykit/bayserver/docker/harbor.rb', line 20

def charset
  raise NotImplementedError.new
end

#control_portObject

Port number of signal agent

Raises:

  • (NotImplementedError)


80
81
82
# File 'lib/baykit/bayserver/docker/harbor.rb', line 80

def control_port
  raise NotImplementedError.new
end

#file_multiplexerObject

Multiplexer of File I/O

Raises:

  • (NotImplementedError)


95
96
97
# File 'lib/baykit/bayserver/docker/harbor.rb', line 95

def file_multiplexer
  raise NotImplementedError.new
end

#grand_agentsObject

Number of grand agents

Raises:

  • (NotImplementedError)


30
31
32
# File 'lib/baykit/bayserver/docker/harbor.rb', line 30

def grand_agents
  raise NotImplementedError.new
end

#gzip_compObject

Gzip compression flag

Raises:

  • (NotImplementedError)


85
86
87
# File 'lib/baykit/bayserver/docker/harbor.rb', line 85

def gzip_comp
  raise NotImplementedError.new
end

#keep_timeout_secObject

Keep-Alive timeout in seconds

Raises:

  • (NotImplementedError)


60
61
62
# File 'lib/baykit/bayserver/docker/harbor.rb', line 60

def keep_timeout_sec
  raise NotImplementedError.new
end

#localeObject

Default locale

Raises:

  • (NotImplementedError)


25
26
27
# File 'lib/baykit/bayserver/docker/harbor.rb', line 25

def locale
  raise NotImplementedError.new
end

#log_multiplexerObject

Multiplexer of Log output

Raises:

  • (NotImplementedError)


100
101
102
# File 'lib/baykit/bayserver/docker/harbor.rb', line 100

def log_multiplexer
  raise NotImplementedError.new
end

#max_shipsObject

Max count of ships

Raises:

  • (NotImplementedError)


45
46
47
# File 'lib/baykit/bayserver/docker/harbor.rb', line 45

def max_ships
  raise NotImplementedError.new
end

#multi_coreObject

Multi core flag

Raises:

  • (NotImplementedError)


120
121
122
# File 'lib/baykit/bayserver/docker/harbor.rb', line 120

def multi_core
  raise NotImplementedError
end

#net_multiplexerObject

Multiplexer of Network I/O

Raises:

  • (NotImplementedError)


90
91
92
# File 'lib/baykit/bayserver/docker/harbor.rb', line 90

def net_multiplexer
  raise NotImplementedError.new
end

#pid_fileObject

PID file name

Raises:

  • (NotImplementedError)


115
116
117
# File 'lib/baykit/bayserver/docker/harbor.rb', line 115

def pid_file
  raise NotImplementedError
end

#recipientObject

Recipient

Raises:

  • (NotImplementedError)


110
111
112
# File 'lib/baykit/bayserver/docker/harbor.rb', line 110

def recipient
  raise NotImplementedError
end

#redirect_fileObject

File name to redirect stdout/stderr

Raises:

  • (NotImplementedError)


75
76
77
# File 'lib/baykit/bayserver/docker/harbor.rb', line 75

def redirect_file
  raise NotImplementedError.new
end

#socket_timeout_secObject

Socket timeout in seconds

Raises:

  • (NotImplementedError)


55
56
57
# File 'lib/baykit/bayserver/docker/harbor.rb', line 55

def socket_timeout_sec
  raise NotImplementedError.new
end

#taxi_runnersObject

Number of taxi runners

Raises:

  • (NotImplementedError)


40
41
42
# File 'lib/baykit/bayserver/docker/harbor.rb', line 40

def taxi_runners
  raise NotImplementedError.new
end

#tour_buffer_sizeObject

Internal buffer size of Tour

Raises:

  • (NotImplementedError)


70
71
72
# File 'lib/baykit/bayserver/docker/harbor.rb', line 70

def tour_buffer_size
  raise NotImplementedError.new
end

#trace_headerObject

Trace req/res header flag

Raises:

  • (NotImplementedError)


65
66
67
# File 'lib/baykit/bayserver/docker/harbor.rb', line 65

def trace_header
  raise NotImplementedError.new
end

#train_runnersObject

Number of train runners

Raises:

  • (NotImplementedError)


35
36
37
# File 'lib/baykit/bayserver/docker/harbor.rb', line 35

def train_runners
  raise NotImplementedError.new
end

#troubleObject

Trouble docker

Raises:

  • (NotImplementedError)


50
51
52
# File 'lib/baykit/bayserver/docker/harbor.rb', line 50

def trouble
  raise NotImplementedError.new
end