passenger 3.0.0.pre2 → 3.0.0.pre3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of passenger might be problematic. Click here for more details.
- data/bin/passenger-status +1 -1
- data/build/packaging.rb +4 -7
- data/build/ruby_extension.rb +5 -5
- data/ext/common/Constants.h +1 -1
- data/ext/common/LoggingAgent/RemoteSender.h +3 -1
- data/ext/nginx/ngx_http_passenger_module.c +1 -1
- data/ext/{phusion_passenger → ruby}/extconf.rb +1 -1
- data/ext/{phusion_passenger/native_support.c → ruby/passenger_native_support.c} +1 -1
- data/lib/phusion_passenger.rb +5 -6
- data/lib/phusion_passenger/dependencies.rb +23 -0
- data/lib/phusion_passenger/native_support.rb +123 -65
- data/lib/phusion_passenger/packaging.rb +1 -1
- data/lib/phusion_passenger/platform_info/apache.rb +1 -1
- data/lib/phusion_passenger/platform_info/compiler.rb +25 -1
- data/lib/phusion_passenger/platform_info/ruby.rb +36 -5
- data/lib/phusion_passenger/standalone/runtime_installer.rb +5 -4
- data/lib/phusion_passenger/utils.rb +62 -1
- data/test/ruby/utils_spec.rb +62 -0
- data/test/support/test_helper.rb +2 -0
- metadata +6 -168
- data/doc/rdoc/classes/ConditionVariable.html +0 -215
- data/doc/rdoc/classes/Exception.html +0 -120
- data/doc/rdoc/classes/GC.html +0 -113
- data/doc/rdoc/classes/IO.html +0 -221
- data/doc/rdoc/classes/PhusionPassenger.html +0 -368
- data/doc/rdoc/classes/PhusionPassenger/AbstractInstaller.html +0 -180
- data/doc/rdoc/classes/PhusionPassenger/AbstractRequestHandler.html +0 -647
- data/doc/rdoc/classes/PhusionPassenger/AbstractServer.html +0 -654
- data/doc/rdoc/classes/PhusionPassenger/AbstractServer/InvalidPassword.html +0 -92
- data/doc/rdoc/classes/PhusionPassenger/AbstractServer/ServerAlreadyStarted.html +0 -97
- data/doc/rdoc/classes/PhusionPassenger/AbstractServer/ServerError.html +0 -96
- data/doc/rdoc/classes/PhusionPassenger/AbstractServer/ServerNotStarted.html +0 -97
- data/doc/rdoc/classes/PhusionPassenger/AbstractServer/UnknownMessage.html +0 -96
- data/doc/rdoc/classes/PhusionPassenger/AbstractServerCollection.html +0 -619
- data/doc/rdoc/classes/PhusionPassenger/AdminTools.html +0 -142
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/MemoryStats.html +0 -368
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/MemoryStats/Process.html +0 -231
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance.html +0 -588
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/CorruptedDirectoryError.html +0 -92
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/GenerationsAbsentError.html +0 -92
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/Group.html +0 -147
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/Process.html +0 -279
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/RoleDeniedError.html +0 -92
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/StaleDirectoryError.html +0 -92
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/Stats.html +0 -123
- data/doc/rdoc/classes/PhusionPassenger/AdminTools/ServerInstance/UnsupportedGenerationStructureVersionError.html +0 -92
- data/doc/rdoc/classes/PhusionPassenger/AnalyticsLogger.html +0 -341
- data/doc/rdoc/classes/PhusionPassenger/AnalyticsLogger/Log.html +0 -294
- data/doc/rdoc/classes/PhusionPassenger/AnalyticsLogger/SharedData.html +0 -199
- data/doc/rdoc/classes/PhusionPassenger/AppInitError.html +0 -155
- data/doc/rdoc/classes/PhusionPassenger/AppProcess.html +0 -367
- data/doc/rdoc/classes/PhusionPassenger/ClassicRails.html +0 -95
- data/doc/rdoc/classes/PhusionPassenger/ClassicRails/ApplicationSpawner.html +0 -351
- data/doc/rdoc/classes/PhusionPassenger/ClassicRails/ApplicationSpawner/Error.html +0 -98
- data/doc/rdoc/classes/PhusionPassenger/ClassicRails/CGIFixed.html +0 -200
- data/doc/rdoc/classes/PhusionPassenger/ClassicRails/FrameworkSpawner.html +0 -410
- data/doc/rdoc/classes/PhusionPassenger/ClassicRails/FrameworkSpawner/Error.html +0 -98
- data/doc/rdoc/classes/PhusionPassenger/ClassicRails/RequestHandler.html +0 -156
- data/doc/rdoc/classes/PhusionPassenger/ClassicRailsExtensions.html +0 -115
- data/doc/rdoc/classes/PhusionPassenger/ClassicRailsExtensions/AnalyticsLogging.html +0 -202
- data/doc/rdoc/classes/PhusionPassenger/ConsoleTextTemplate.html +0 -172
- data/doc/rdoc/classes/PhusionPassenger/DebugLogging.html +0 -273
- data/doc/rdoc/classes/PhusionPassenger/FrameworkInitError.html +0 -145
- data/doc/rdoc/classes/PhusionPassenger/HTMLTemplate.html +0 -162
- data/doc/rdoc/classes/PhusionPassenger/InitializationError.html +0 -141
- data/doc/rdoc/classes/PhusionPassenger/InvalidPath.html +0 -92
- data/doc/rdoc/classes/PhusionPassenger/MessageChannel.html +0 -673
- data/doc/rdoc/classes/PhusionPassenger/MessageChannel/InvalidHashError.html +0 -92
- data/doc/rdoc/classes/PhusionPassenger/MessageClient.html +0 -415
- data/doc/rdoc/classes/PhusionPassenger/NativeSupport.html +0 -494
- data/doc/rdoc/classes/PhusionPassenger/NativeSupport/FileSystemWatcher.html +0 -96
- data/doc/rdoc/classes/PhusionPassenger/Packaging.html +0 -129
- data/doc/rdoc/classes/PhusionPassenger/PlatformInfo.html +0 -1758
- data/doc/rdoc/classes/PhusionPassenger/Plugin.html +0 -237
- data/doc/rdoc/classes/PhusionPassenger/Rack.html +0 -91
- data/doc/rdoc/classes/PhusionPassenger/Rack/ApplicationSpawner.html +0 -312
- data/doc/rdoc/classes/PhusionPassenger/Rack/ApplicationSpawner/Error.html +0 -98
- data/doc/rdoc/classes/PhusionPassenger/Rack/RequestHandler.html +0 -218
- data/doc/rdoc/classes/PhusionPassenger/Rails3Extensions.html +0 -114
- data/doc/rdoc/classes/PhusionPassenger/Rails3Extensions/AnalyticsLogging.html +0 -256
- data/doc/rdoc/classes/PhusionPassenger/Rails3Extensions/AnalyticsLogging/ACExtension.html +0 -139
- data/doc/rdoc/classes/PhusionPassenger/Rails3Extensions/AnalyticsLogging/ASBenchmarkableExtension.html +0 -118
- data/doc/rdoc/classes/PhusionPassenger/Rails3Extensions/AnalyticsLogging/ExceptionLogger.html +0 -135
- data/doc/rdoc/classes/PhusionPassenger/SpawnManager.html +0 -378
- data/doc/rdoc/classes/PhusionPassenger/Standalone.html +0 -111
- data/doc/rdoc/classes/PhusionPassenger/Standalone/AppFinder.html +0 -252
- data/doc/rdoc/classes/PhusionPassenger/Standalone/Command.html +0 -161
- data/doc/rdoc/classes/PhusionPassenger/Standalone/ConfigFile.html +0 -368
- data/doc/rdoc/classes/PhusionPassenger/Standalone/ConfigFile/DisallowedContextError.html +0 -132
- data/doc/rdoc/classes/PhusionPassenger/Standalone/HelpCommand.html +0 -151
- data/doc/rdoc/classes/PhusionPassenger/Standalone/Main.html +0 -189
- data/doc/rdoc/classes/PhusionPassenger/Standalone/PackageRuntimeCommand.html +0 -177
- data/doc/rdoc/classes/PhusionPassenger/Standalone/RuntimeInstaller.html +0 -341
- data/doc/rdoc/classes/PhusionPassenger/Standalone/StartCommand.html +0 -203
- data/doc/rdoc/classes/PhusionPassenger/Standalone/StatusCommand.html +0 -156
- data/doc/rdoc/classes/PhusionPassenger/Standalone/StopCommand.html +0 -168
- data/doc/rdoc/classes/PhusionPassenger/Standalone/Utils.html +0 -86
- data/doc/rdoc/classes/PhusionPassenger/Standalone/VersionCommand.html +0 -135
- data/doc/rdoc/classes/PhusionPassenger/UnknownError.html +0 -125
- data/doc/rdoc/classes/PhusionPassenger/Utils.html +0 -1468
- data/doc/rdoc/classes/PhusionPassenger/Utils/FileSystemWatcher.html +0 -204
- data/doc/rdoc/classes/PhusionPassenger/Utils/FileSystemWatcher/DirInfo.html +0 -171
- data/doc/rdoc/classes/PhusionPassenger/Utils/FileSystemWatcher/FileInfo.html +0 -140
- data/doc/rdoc/classes/PhusionPassenger/Utils/HostsFileParser.html +0 -260
- data/doc/rdoc/classes/PhusionPassenger/Utils/PseudoIO.html +0 -169
- data/doc/rdoc/classes/PhusionPassenger/Utils/RewindableInput.html +0 -265
- data/doc/rdoc/classes/PhusionPassenger/Utils/RewindableInput/Tempfile.html +0 -120
- data/doc/rdoc/classes/PhusionPassenger/Utils/UnseekableSocket.html +0 -561
- data/doc/rdoc/classes/PhusionPassenger/VersionNotFound.html +0 -140
- data/doc/rdoc/classes/PhusionPassenger/WSGI.html +0 -89
- data/doc/rdoc/classes/PhusionPassenger/WSGI/ApplicationSpawner.html +0 -182
- data/doc/rdoc/classes/Process.html +0 -115
- data/doc/rdoc/classes/Signal.html +0 -139
- data/doc/rdoc/created.rid +0 -1
- data/doc/rdoc/files/DEVELOPERS_TXT.html +0 -276
- data/doc/rdoc/files/README.html +0 -157
- data/doc/rdoc/files/ext/phusion_passenger/native_support_c.html +0 -92
- data/doc/rdoc/files/lib/phusion_passenger/abstract_installer_rb.html +0 -130
- data/doc/rdoc/files/lib/phusion_passenger/abstract_request_handler_rb.html +0 -135
- data/doc/rdoc/files/lib/phusion_passenger/abstract_server_collection_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/abstract_server_rb.html +0 -128
- data/doc/rdoc/files/lib/phusion_passenger/admin_tools/memory_stats_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/admin_tools/server_instance_rb.html +0 -132
- data/doc/rdoc/files/lib/phusion_passenger/admin_tools_rb.html +0 -122
- data/doc/rdoc/files/lib/phusion_passenger/analytics_logger_rb.html +0 -129
- data/doc/rdoc/files/lib/phusion_passenger/app_process_rb.html +0 -127
- data/doc/rdoc/files/lib/phusion_passenger/classic_rails/application_spawner_rb.html +0 -141
- data/doc/rdoc/files/lib/phusion_passenger/classic_rails/cgi_fixed_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/classic_rails/framework_spawner_rb.html +0 -146
- data/doc/rdoc/files/lib/phusion_passenger/classic_rails/request_handler_rb.html +0 -125
- data/doc/rdoc/files/lib/phusion_passenger/classic_rails_extensions/init_rb.html +0 -132
- data/doc/rdoc/files/lib/phusion_passenger/console_text_template_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/constants_rb.html +0 -122
- data/doc/rdoc/files/lib/phusion_passenger/debug_logging_rb.html +0 -122
- data/doc/rdoc/files/lib/phusion_passenger/dependencies_rb.html +0 -147
- data/doc/rdoc/files/lib/phusion_passenger/exceptions_rb.html +0 -122
- data/doc/rdoc/files/lib/phusion_passenger/html_template_rb.html +0 -127
- data/doc/rdoc/files/lib/phusion_passenger/message_channel_rb.html +0 -120
- data/doc/rdoc/files/lib/phusion_passenger/message_client_rb.html +0 -127
- data/doc/rdoc/files/lib/phusion_passenger/native_support_rb.html +0 -131
- data/doc/rdoc/files/lib/phusion_passenger/packaging_rb.html +0 -122
- data/doc/rdoc/files/lib/phusion_passenger/platform_info/apache_rb.html +0 -127
- data/doc/rdoc/files/lib/phusion_passenger/platform_info/binary_compatibility_rb.html +0 -129
- data/doc/rdoc/files/lib/phusion_passenger/platform_info/compiler_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/platform_info/curl_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/platform_info/documentation_tools_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/platform_info/linux_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/platform_info/operating_system_rb.html +0 -127
- data/doc/rdoc/files/lib/phusion_passenger/platform_info/ruby_rb.html +0 -128
- data/doc/rdoc/files/lib/phusion_passenger/platform_info/zlib_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/platform_info_rb.html +0 -122
- data/doc/rdoc/files/lib/phusion_passenger/plugin_rb.html +0 -127
- data/doc/rdoc/files/lib/phusion_passenger/public_api_rb.html +0 -127
- data/doc/rdoc/files/lib/phusion_passenger/rack/application_spawner_rb.html +0 -137
- data/doc/rdoc/files/lib/phusion_passenger/rack/request_handler_rb.html +0 -125
- data/doc/rdoc/files/lib/phusion_passenger/rails3_extensions/init_rb.html +0 -127
- data/doc/rdoc/files/lib/phusion_passenger/simple_benchmarking_rb.html +0 -122
- data/doc/rdoc/files/lib/phusion_passenger/spawn_manager_rb.html +0 -160
- data/doc/rdoc/files/lib/phusion_passenger/standalone/app_finder_rb.html +0 -127
- data/doc/rdoc/files/lib/phusion_passenger/standalone/command_rb.html +0 -135
- data/doc/rdoc/files/lib/phusion_passenger/standalone/config_file_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/standalone/help_command_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/standalone/main_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/standalone/package_runtime_command_rb.html +0 -127
- data/doc/rdoc/files/lib/phusion_passenger/standalone/runtime_installer_rb.html +0 -132
- data/doc/rdoc/files/lib/phusion_passenger/standalone/start_command_rb.html +0 -136
- data/doc/rdoc/files/lib/phusion_passenger/standalone/status_command_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/standalone/stop_command_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/standalone/utils_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/standalone/version_command_rb.html +0 -127
- data/doc/rdoc/files/lib/phusion_passenger/utils/file_system_watcher_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/utils/hosts_file_parser_rb.html +0 -120
- data/doc/rdoc/files/lib/phusion_passenger/utils/rewindable_input_rb.html +0 -100
- data/doc/rdoc/files/lib/phusion_passenger/utils/tmpdir_rb.html +0 -122
- data/doc/rdoc/files/lib/phusion_passenger/utils/unseekable_socket_rb.html +0 -126
- data/doc/rdoc/files/lib/phusion_passenger/utils_rb.html +0 -179
- data/doc/rdoc/files/lib/phusion_passenger/wsgi/application_spawner_rb.html +0 -132
- data/doc/rdoc/fr_class_index.html +0 -139
- data/doc/rdoc/fr_file_index.html +0 -109
- data/doc/rdoc/fr_method_index.html +0 -435
- data/doc/rdoc/index.html +0 -26
- data/doc/rdoc/rdoc-style.css +0 -187
@@ -1,92 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
<html>
|
6
|
-
<head>
|
7
|
-
<title>Class: PhusionPassenger::AdminTools::ServerInstance::RoleDeniedError</title>
|
8
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
-
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
10
|
-
|
11
|
-
<script language="JavaScript" type="text/javascript">
|
12
|
-
// <![CDATA[
|
13
|
-
|
14
|
-
function toggleSource( id )
|
15
|
-
{
|
16
|
-
var elem
|
17
|
-
var link
|
18
|
-
|
19
|
-
if( document.getElementById )
|
20
|
-
{
|
21
|
-
elem = document.getElementById( id )
|
22
|
-
link = document.getElementById( "l_" + id )
|
23
|
-
}
|
24
|
-
else if ( document.all )
|
25
|
-
{
|
26
|
-
elem = eval( "document.all." + id )
|
27
|
-
link = eval( "document.all.l_" + id )
|
28
|
-
}
|
29
|
-
else
|
30
|
-
return false;
|
31
|
-
|
32
|
-
if( elem.style.display == "block" )
|
33
|
-
{
|
34
|
-
elem.style.display = "none"
|
35
|
-
link.innerHTML = "show source"
|
36
|
-
}
|
37
|
-
else
|
38
|
-
{
|
39
|
-
elem.style.display = "block"
|
40
|
-
link.innerHTML = "hide source"
|
41
|
-
}
|
42
|
-
}
|
43
|
-
|
44
|
-
function openCode( url )
|
45
|
-
{
|
46
|
-
window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
|
47
|
-
}
|
48
|
-
// ]]>
|
49
|
-
</script>
|
50
|
-
</head>
|
51
|
-
|
52
|
-
<body>
|
53
|
-
<table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
|
54
|
-
<td class="file-title"><span class="file-title-prefix">Class</span><br />PhusionPassenger::AdminTools::ServerInstance::RoleDeniedError</td>
|
55
|
-
<td align="right">
|
56
|
-
<table cellspacing="0" cellpadding="2">
|
57
|
-
<tr valign="top">
|
58
|
-
<td>In:</td>
|
59
|
-
<td>
|
60
|
-
<a href="../../../../files/lib/phusion_passenger/admin_tools/server_instance_rb.html">lib/phusion_passenger/admin_tools/server_instance.rb</a>
|
61
|
-
</td>
|
62
|
-
</tr>
|
63
|
-
<tr>
|
64
|
-
<td>Parent:</td>
|
65
|
-
<td>
|
66
|
-
StandardError
|
67
|
-
</td>
|
68
|
-
</tr>
|
69
|
-
</table>
|
70
|
-
</td>
|
71
|
-
</tr>
|
72
|
-
</table>
|
73
|
-
<!-- banner header -->
|
74
|
-
|
75
|
-
<div id="bodyContent">
|
76
|
-
<div id="content">
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
</div>
|
88
|
-
|
89
|
-
</div>
|
90
|
-
|
91
|
-
</body>
|
92
|
-
</html>
|
@@ -1,92 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
<html>
|
6
|
-
<head>
|
7
|
-
<title>Class: PhusionPassenger::AdminTools::ServerInstance::StaleDirectoryError</title>
|
8
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
-
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
10
|
-
|
11
|
-
<script language="JavaScript" type="text/javascript">
|
12
|
-
// <![CDATA[
|
13
|
-
|
14
|
-
function toggleSource( id )
|
15
|
-
{
|
16
|
-
var elem
|
17
|
-
var link
|
18
|
-
|
19
|
-
if( document.getElementById )
|
20
|
-
{
|
21
|
-
elem = document.getElementById( id )
|
22
|
-
link = document.getElementById( "l_" + id )
|
23
|
-
}
|
24
|
-
else if ( document.all )
|
25
|
-
{
|
26
|
-
elem = eval( "document.all." + id )
|
27
|
-
link = eval( "document.all.l_" + id )
|
28
|
-
}
|
29
|
-
else
|
30
|
-
return false;
|
31
|
-
|
32
|
-
if( elem.style.display == "block" )
|
33
|
-
{
|
34
|
-
elem.style.display = "none"
|
35
|
-
link.innerHTML = "show source"
|
36
|
-
}
|
37
|
-
else
|
38
|
-
{
|
39
|
-
elem.style.display = "block"
|
40
|
-
link.innerHTML = "hide source"
|
41
|
-
}
|
42
|
-
}
|
43
|
-
|
44
|
-
function openCode( url )
|
45
|
-
{
|
46
|
-
window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
|
47
|
-
}
|
48
|
-
// ]]>
|
49
|
-
</script>
|
50
|
-
</head>
|
51
|
-
|
52
|
-
<body>
|
53
|
-
<table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
|
54
|
-
<td class="file-title"><span class="file-title-prefix">Class</span><br />PhusionPassenger::AdminTools::ServerInstance::StaleDirectoryError</td>
|
55
|
-
<td align="right">
|
56
|
-
<table cellspacing="0" cellpadding="2">
|
57
|
-
<tr valign="top">
|
58
|
-
<td>In:</td>
|
59
|
-
<td>
|
60
|
-
<a href="../../../../files/lib/phusion_passenger/admin_tools/server_instance_rb.html">lib/phusion_passenger/admin_tools/server_instance.rb</a>
|
61
|
-
</td>
|
62
|
-
</tr>
|
63
|
-
<tr>
|
64
|
-
<td>Parent:</td>
|
65
|
-
<td>
|
66
|
-
StandardError
|
67
|
-
</td>
|
68
|
-
</tr>
|
69
|
-
</table>
|
70
|
-
</td>
|
71
|
-
</tr>
|
72
|
-
</table>
|
73
|
-
<!-- banner header -->
|
74
|
-
|
75
|
-
<div id="bodyContent">
|
76
|
-
<div id="content">
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
</div>
|
88
|
-
|
89
|
-
</div>
|
90
|
-
|
91
|
-
</body>
|
92
|
-
</html>
|
@@ -1,123 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
<html>
|
6
|
-
<head>
|
7
|
-
<title>Class: PhusionPassenger::AdminTools::ServerInstance::Stats</title>
|
8
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
-
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
10
|
-
|
11
|
-
<script language="JavaScript" type="text/javascript">
|
12
|
-
// <![CDATA[
|
13
|
-
|
14
|
-
function toggleSource( id )
|
15
|
-
{
|
16
|
-
var elem
|
17
|
-
var link
|
18
|
-
|
19
|
-
if( document.getElementById )
|
20
|
-
{
|
21
|
-
elem = document.getElementById( id )
|
22
|
-
link = document.getElementById( "l_" + id )
|
23
|
-
}
|
24
|
-
else if ( document.all )
|
25
|
-
{
|
26
|
-
elem = eval( "document.all." + id )
|
27
|
-
link = eval( "document.all.l_" + id )
|
28
|
-
}
|
29
|
-
else
|
30
|
-
return false;
|
31
|
-
|
32
|
-
if( elem.style.display == "block" )
|
33
|
-
{
|
34
|
-
elem.style.display = "none"
|
35
|
-
link.innerHTML = "show source"
|
36
|
-
}
|
37
|
-
else
|
38
|
-
{
|
39
|
-
elem.style.display = "block"
|
40
|
-
link.innerHTML = "hide source"
|
41
|
-
}
|
42
|
-
}
|
43
|
-
|
44
|
-
function openCode( url )
|
45
|
-
{
|
46
|
-
window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
|
47
|
-
}
|
48
|
-
// ]]>
|
49
|
-
</script>
|
50
|
-
</head>
|
51
|
-
|
52
|
-
<body>
|
53
|
-
<table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
|
54
|
-
<td class="file-title"><span class="file-title-prefix">Class</span><br />PhusionPassenger::AdminTools::ServerInstance::Stats</td>
|
55
|
-
<td align="right">
|
56
|
-
<table cellspacing="0" cellpadding="2">
|
57
|
-
<tr valign="top">
|
58
|
-
<td>In:</td>
|
59
|
-
<td>
|
60
|
-
<a href="../../../../files/lib/phusion_passenger/admin_tools/server_instance_rb.html">lib/phusion_passenger/admin_tools/server_instance.rb</a>
|
61
|
-
</td>
|
62
|
-
</tr>
|
63
|
-
<tr>
|
64
|
-
<td>Parent:</td>
|
65
|
-
<td>
|
66
|
-
Object
|
67
|
-
</td>
|
68
|
-
</tr>
|
69
|
-
</table>
|
70
|
-
</td>
|
71
|
-
</tr>
|
72
|
-
</table>
|
73
|
-
<!-- banner header -->
|
74
|
-
|
75
|
-
<div id="bodyContent">
|
76
|
-
<div id="content">
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
<div class="sectiontitle">Attributes</div>
|
87
|
-
<table border='0' cellpadding='5'>
|
88
|
-
<tr valign='top'>
|
89
|
-
<td class='attr-rw'>
|
90
|
-
[RW]
|
91
|
-
</td>
|
92
|
-
<td class='attr-name'>active</td>
|
93
|
-
<td class='attr-desc'></td>
|
94
|
-
</tr>
|
95
|
-
<tr valign='top'>
|
96
|
-
<td class='attr-rw'>
|
97
|
-
[RW]
|
98
|
-
</td>
|
99
|
-
<td class='attr-name'>count</td>
|
100
|
-
<td class='attr-desc'></td>
|
101
|
-
</tr>
|
102
|
-
<tr valign='top'>
|
103
|
-
<td class='attr-rw'>
|
104
|
-
[RW]
|
105
|
-
</td>
|
106
|
-
<td class='attr-name'>global_queue_size</td>
|
107
|
-
<td class='attr-desc'></td>
|
108
|
-
</tr>
|
109
|
-
<tr valign='top'>
|
110
|
-
<td class='attr-rw'>
|
111
|
-
[RW]
|
112
|
-
</td>
|
113
|
-
<td class='attr-name'>max</td>
|
114
|
-
<td class='attr-desc'></td>
|
115
|
-
</tr>
|
116
|
-
</table>
|
117
|
-
|
118
|
-
</div>
|
119
|
-
|
120
|
-
</div>
|
121
|
-
|
122
|
-
</body>
|
123
|
-
</html>
|
@@ -1,92 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
<html>
|
6
|
-
<head>
|
7
|
-
<title>Class: PhusionPassenger::AdminTools::ServerInstance::UnsupportedGenerationStructureVersionError</title>
|
8
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
-
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
10
|
-
|
11
|
-
<script language="JavaScript" type="text/javascript">
|
12
|
-
// <![CDATA[
|
13
|
-
|
14
|
-
function toggleSource( id )
|
15
|
-
{
|
16
|
-
var elem
|
17
|
-
var link
|
18
|
-
|
19
|
-
if( document.getElementById )
|
20
|
-
{
|
21
|
-
elem = document.getElementById( id )
|
22
|
-
link = document.getElementById( "l_" + id )
|
23
|
-
}
|
24
|
-
else if ( document.all )
|
25
|
-
{
|
26
|
-
elem = eval( "document.all." + id )
|
27
|
-
link = eval( "document.all.l_" + id )
|
28
|
-
}
|
29
|
-
else
|
30
|
-
return false;
|
31
|
-
|
32
|
-
if( elem.style.display == "block" )
|
33
|
-
{
|
34
|
-
elem.style.display = "none"
|
35
|
-
link.innerHTML = "show source"
|
36
|
-
}
|
37
|
-
else
|
38
|
-
{
|
39
|
-
elem.style.display = "block"
|
40
|
-
link.innerHTML = "hide source"
|
41
|
-
}
|
42
|
-
}
|
43
|
-
|
44
|
-
function openCode( url )
|
45
|
-
{
|
46
|
-
window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
|
47
|
-
}
|
48
|
-
// ]]>
|
49
|
-
</script>
|
50
|
-
</head>
|
51
|
-
|
52
|
-
<body>
|
53
|
-
<table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
|
54
|
-
<td class="file-title"><span class="file-title-prefix">Class</span><br />PhusionPassenger::AdminTools::ServerInstance::UnsupportedGenerationStructureVersionError</td>
|
55
|
-
<td align="right">
|
56
|
-
<table cellspacing="0" cellpadding="2">
|
57
|
-
<tr valign="top">
|
58
|
-
<td>In:</td>
|
59
|
-
<td>
|
60
|
-
<a href="../../../../files/lib/phusion_passenger/admin_tools/server_instance_rb.html">lib/phusion_passenger/admin_tools/server_instance.rb</a>
|
61
|
-
</td>
|
62
|
-
</tr>
|
63
|
-
<tr>
|
64
|
-
<td>Parent:</td>
|
65
|
-
<td>
|
66
|
-
StandardError
|
67
|
-
</td>
|
68
|
-
</tr>
|
69
|
-
</table>
|
70
|
-
</td>
|
71
|
-
</tr>
|
72
|
-
</table>
|
73
|
-
<!-- banner header -->
|
74
|
-
|
75
|
-
<div id="bodyContent">
|
76
|
-
<div id="content">
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
</div>
|
88
|
-
|
89
|
-
</div>
|
90
|
-
|
91
|
-
</body>
|
92
|
-
</html>
|
@@ -1,341 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
<html>
|
6
|
-
<head>
|
7
|
-
<title>Class: PhusionPassenger::AnalyticsLogger</title>
|
8
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
-
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
10
|
-
|
11
|
-
<script language="JavaScript" type="text/javascript">
|
12
|
-
// <![CDATA[
|
13
|
-
|
14
|
-
function toggleSource( id )
|
15
|
-
{
|
16
|
-
var elem
|
17
|
-
var link
|
18
|
-
|
19
|
-
if( document.getElementById )
|
20
|
-
{
|
21
|
-
elem = document.getElementById( id )
|
22
|
-
link = document.getElementById( "l_" + id )
|
23
|
-
}
|
24
|
-
else if ( document.all )
|
25
|
-
{
|
26
|
-
elem = eval( "document.all." + id )
|
27
|
-
link = eval( "document.all.l_" + id )
|
28
|
-
}
|
29
|
-
else
|
30
|
-
return false;
|
31
|
-
|
32
|
-
if( elem.style.display == "block" )
|
33
|
-
{
|
34
|
-
elem.style.display = "none"
|
35
|
-
link.innerHTML = "show source"
|
36
|
-
}
|
37
|
-
else
|
38
|
-
{
|
39
|
-
elem.style.display = "block"
|
40
|
-
link.innerHTML = "hide source"
|
41
|
-
}
|
42
|
-
}
|
43
|
-
|
44
|
-
function openCode( url )
|
45
|
-
{
|
46
|
-
window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
|
47
|
-
}
|
48
|
-
// ]]>
|
49
|
-
</script>
|
50
|
-
</head>
|
51
|
-
|
52
|
-
<body>
|
53
|
-
<table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
|
54
|
-
<td class="file-title"><span class="file-title-prefix">Class</span><br />PhusionPassenger::AnalyticsLogger</td>
|
55
|
-
<td align="right">
|
56
|
-
<table cellspacing="0" cellpadding="2">
|
57
|
-
<tr valign="top">
|
58
|
-
<td>In:</td>
|
59
|
-
<td>
|
60
|
-
<a href="../../files/lib/phusion_passenger/analytics_logger_rb.html">lib/phusion_passenger/analytics_logger.rb</a>
|
61
|
-
</td>
|
62
|
-
</tr>
|
63
|
-
<tr>
|
64
|
-
<td>Parent:</td>
|
65
|
-
<td>
|
66
|
-
Object
|
67
|
-
</td>
|
68
|
-
</tr>
|
69
|
-
</table>
|
70
|
-
</td>
|
71
|
-
</tr>
|
72
|
-
</table>
|
73
|
-
<!-- banner header -->
|
74
|
-
|
75
|
-
<div id="bodyContent">
|
76
|
-
<div id="content">
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
<div class="sectiontitle">Methods</div>
|
82
|
-
<ul>
|
83
|
-
<li><a href="#M000291">clear_connection</a></li>
|
84
|
-
<li><a href="#M000292">close</a></li>
|
85
|
-
<li><a href="#M000294">continue_transaction</a></li>
|
86
|
-
<li><a href="#M000290">new</a></li>
|
87
|
-
<li><a href="#M000289">new_from_options</a></li>
|
88
|
-
<li><a href="#M000293">new_transaction</a></li>
|
89
|
-
</ul>
|
90
|
-
|
91
|
-
<div class="sectiontitle">Included Modules</div>
|
92
|
-
<ul>
|
93
|
-
<li><a href="Utils.html">Utils</a></li>
|
94
|
-
</ul>
|
95
|
-
|
96
|
-
|
97
|
-
<div class="sectiontitle">Classes and Modules</div>
|
98
|
-
Class <a href="AnalyticsLogger/Log.html" class="link">PhusionPassenger::AnalyticsLogger::Log</a><br />
|
99
|
-
Class <a href="AnalyticsLogger/SharedData.html" class="link">PhusionPassenger::AnalyticsLogger::SharedData</a><br />
|
100
|
-
|
101
|
-
|
102
|
-
<div class="sectiontitle">Constants</div>
|
103
|
-
<table border='0' cellpadding='5'>
|
104
|
-
<tr valign='top'>
|
105
|
-
<td class="attr-name">RETRY_SLEEP</td>
|
106
|
-
<td>=</td>
|
107
|
-
<td class="attr-value">0.2</td>
|
108
|
-
</tr>
|
109
|
-
<tr valign='top'>
|
110
|
-
<td class="attr-name">NETWORK_ERRORS</td>
|
111
|
-
<td>=</td>
|
112
|
-
<td class="attr-value">[Errno::EPIPE, Errno::ECONNREFUSED, Errno::ECONNRESET, Errno::EHOSTUNREACH, Errno::ENETDOWN, Errno::ENETUNREACH, Errno::ETIMEDOUT]</td>
|
113
|
-
</tr>
|
114
|
-
<tr valign='top'>
|
115
|
-
<td class="attr-name">RANDOM_CHARS</td>
|
116
|
-
<td>=</td>
|
117
|
-
<td class="attr-value">['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9']</td>
|
118
|
-
</tr>
|
119
|
-
</table>
|
120
|
-
|
121
|
-
<div class="sectiontitle">Attributes</div>
|
122
|
-
<table border='0' cellpadding='5'>
|
123
|
-
<tr valign='top'>
|
124
|
-
<td class='attr-rw'>
|
125
|
-
[RW]
|
126
|
-
</td>
|
127
|
-
<td class='attr-name'>max_connect_tries</td>
|
128
|
-
<td class='attr-desc'></td>
|
129
|
-
</tr>
|
130
|
-
<tr valign='top'>
|
131
|
-
<td class='attr-rw'>
|
132
|
-
[RW]
|
133
|
-
</td>
|
134
|
-
<td class='attr-name'>reconnect_timeout</td>
|
135
|
-
<td class='attr-desc'></td>
|
136
|
-
</tr>
|
137
|
-
</table>
|
138
|
-
|
139
|
-
<div class="sectiontitle">Public Class methods</div>
|
140
|
-
<div class="method">
|
141
|
-
<div class="title">
|
142
|
-
<a name="M000290"></a><b>new</b>(logging_agent_address, username, password, node_name)
|
143
|
-
</div>
|
144
|
-
<div class="sourcecode">
|
145
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000290_source')" id="l_M000290_source">show source</a> ]</p>
|
146
|
-
<div id="M000290_source" class="dyn-source">
|
147
|
-
<pre>
|
148
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/analytics_logger.rb, line 145</span>
|
149
|
-
145: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">logging_agent_address</span>, <span class="ruby-identifier">username</span>, <span class="ruby-identifier">password</span>, <span class="ruby-identifier">node_name</span>)
|
150
|
-
146: <span class="ruby-ivar">@server_address</span> = <span class="ruby-identifier">logging_agent_address</span>
|
151
|
-
147: <span class="ruby-ivar">@username</span> = <span class="ruby-identifier">username</span>
|
152
|
-
148: <span class="ruby-ivar">@password</span> = <span class="ruby-identifier">password</span>
|
153
|
-
149: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">node_name</span> <span class="ruby-operator">&&</span> <span class="ruby-operator">!</span><span class="ruby-identifier">node_name</span>.<span class="ruby-identifier">empty?</span>
|
154
|
-
150: <span class="ruby-ivar">@node_name</span> = <span class="ruby-identifier">node_name</span>
|
155
|
-
151: <span class="ruby-keyword kw">else</span>
|
156
|
-
152: <span class="ruby-ivar">@node_name</span> = <span class="ruby-value">`hostname`</span>.<span class="ruby-identifier">strip</span>
|
157
|
-
153: <span class="ruby-keyword kw">end</span>
|
158
|
-
154: <span class="ruby-ivar">@random_dev</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-value str">"/dev/urandom"</span>)
|
159
|
-
155: <span class="ruby-ivar">@shared_data</span> = <span class="ruby-constant">SharedData</span>.<span class="ruby-identifier">new</span>
|
160
|
-
156: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@server_address</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">local_socket_address?</span>(<span class="ruby-ivar">@server_address</span>)
|
161
|
-
157: <span class="ruby-ivar">@max_connect_tries</span> = <span class="ruby-value">10</span>
|
162
|
-
158: <span class="ruby-keyword kw">else</span>
|
163
|
-
159: <span class="ruby-ivar">@max_connect_tries</span> = <span class="ruby-value">1</span>
|
164
|
-
160: <span class="ruby-keyword kw">end</span>
|
165
|
-
161: <span class="ruby-ivar">@reconnect_timeout</span> = <span class="ruby-value">60</span>
|
166
|
-
162: <span class="ruby-ivar">@next_reconnect_time</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">utc</span>(<span class="ruby-value">1980</span>, <span class="ruby-value">1</span>, <span class="ruby-value">1</span>)
|
167
|
-
163: <span class="ruby-keyword kw">end</span>
|
168
|
-
</pre>
|
169
|
-
</div>
|
170
|
-
</div>
|
171
|
-
</div>
|
172
|
-
<div class="method">
|
173
|
-
<div class="title">
|
174
|
-
<a name="M000289"></a><b>new_from_options</b>(options)
|
175
|
-
</div>
|
176
|
-
<div class="sourcecode">
|
177
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000289_source')" id="l_M000289_source">show source</a> ]</p>
|
178
|
-
<div id="M000289_source" class="dyn-source">
|
179
|
-
<pre>
|
180
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/analytics_logger.rb, line 131</span>
|
181
|
-
131: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">new_from_options</span>(<span class="ruby-identifier">options</span>)
|
182
|
-
132: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-value str">"analytics"</span>] <span class="ruby-operator">&&</span> <span class="ruby-identifier">options</span>[<span class="ruby-value str">"logging_agent_address"</span>]
|
183
|
-
133: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>[<span class="ruby-value str">"logging_agent_address"</span>],
|
184
|
-
134: <span class="ruby-identifier">options</span>[<span class="ruby-value str">"logging_agent_username"</span>],
|
185
|
-
135: <span class="ruby-identifier">options</span>[<span class="ruby-value str">"logging_agent_password_base64"</span>].<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">'m'</span>).<span class="ruby-identifier">first</span>,
|
186
|
-
136: <span class="ruby-identifier">options</span>[<span class="ruby-value str">"node_name"</span>])
|
187
|
-
137: <span class="ruby-keyword kw">else</span>
|
188
|
-
138: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
189
|
-
139: <span class="ruby-keyword kw">end</span>
|
190
|
-
140: <span class="ruby-keyword kw">end</span>
|
191
|
-
</pre>
|
192
|
-
</div>
|
193
|
-
</div>
|
194
|
-
</div>
|
195
|
-
<div class="sectiontitle">Public Instance methods</div>
|
196
|
-
<div class="method">
|
197
|
-
<div class="title">
|
198
|
-
<a name="M000291"></a><b>clear_connection</b>()
|
199
|
-
</div>
|
200
|
-
<div class="sourcecode">
|
201
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000291_source')" id="l_M000291_source">show source</a> ]</p>
|
202
|
-
<div id="M000291_source" class="dyn-source">
|
203
|
-
<pre>
|
204
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/analytics_logger.rb, line 165</span>
|
205
|
-
165: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clear_connection</span>
|
206
|
-
166: <span class="ruby-ivar">@shared_data</span>.<span class="ruby-identifier">synchronize</span> <span class="ruby-keyword kw">do</span>
|
207
|
-
167: <span class="ruby-ivar">@random_dev</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-value str">"/dev/urandom"</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@random_dev</span>.<span class="ruby-identifier">closed?</span>
|
208
|
-
168: <span class="ruby-ivar">@shared_data</span>.<span class="ruby-identifier">unref</span>
|
209
|
-
169: <span class="ruby-ivar">@shared_data</span> = <span class="ruby-constant">SharedData</span>.<span class="ruby-identifier">new</span>
|
210
|
-
170: <span class="ruby-keyword kw">end</span>
|
211
|
-
171: <span class="ruby-keyword kw">end</span>
|
212
|
-
</pre>
|
213
|
-
</div>
|
214
|
-
</div>
|
215
|
-
</div>
|
216
|
-
<div class="method">
|
217
|
-
<div class="title">
|
218
|
-
<a name="M000292"></a><b>close</b>()
|
219
|
-
</div>
|
220
|
-
<div class="sourcecode">
|
221
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000292_source')" id="l_M000292_source">show source</a> ]</p>
|
222
|
-
<div id="M000292_source" class="dyn-source">
|
223
|
-
<pre>
|
224
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/analytics_logger.rb, line 173</span>
|
225
|
-
173: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>
|
226
|
-
174: <span class="ruby-ivar">@shared_data</span>.<span class="ruby-identifier">synchronize</span> <span class="ruby-keyword kw">do</span>
|
227
|
-
175: <span class="ruby-ivar">@random_dev</span>.<span class="ruby-identifier">close</span>
|
228
|
-
176: <span class="ruby-ivar">@shared_data</span>.<span class="ruby-identifier">unref</span>
|
229
|
-
177: <span class="ruby-ivar">@shared_data</span> = <span class="ruby-keyword kw">nil</span>
|
230
|
-
178: <span class="ruby-keyword kw">end</span>
|
231
|
-
179: <span class="ruby-keyword kw">end</span>
|
232
|
-
</pre>
|
233
|
-
</div>
|
234
|
-
</div>
|
235
|
-
</div>
|
236
|
-
<div class="method">
|
237
|
-
<div class="title">
|
238
|
-
<a name="M000294"></a><b>continue_transaction</b>(txn_id, group_name, category = :requests, union_station_key = nil)
|
239
|
-
</div>
|
240
|
-
<div class="sourcecode">
|
241
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000294_source')" id="l_M000294_source">show source</a> ]</p>
|
242
|
-
<div id="M000294_source" class="dyn-source">
|
243
|
-
<pre>
|
244
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/analytics_logger.rb, line 220</span>
|
245
|
-
220: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">continue_transaction</span>(<span class="ruby-identifier">txn_id</span>, <span class="ruby-identifier">group_name</span>, <span class="ruby-identifier">category</span> = <span class="ruby-identifier">:requests</span>, <span class="ruby-identifier">union_station_key</span> = <span class="ruby-keyword kw">nil</span>)
|
246
|
-
221: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-ivar">@server_address</span>
|
247
|
-
222: <span class="ruby-keyword kw">return</span> <span class="ruby-constant">Log</span>.<span class="ruby-identifier">new</span>
|
248
|
-
223: <span class="ruby-keyword kw">elsif</span> <span class="ruby-operator">!</span><span class="ruby-identifier">txn_id</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">txn_id</span>.<span class="ruby-identifier">empty?</span>
|
249
|
-
224: <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">"Transaction ID may not be empty"</span>
|
250
|
-
225: <span class="ruby-keyword kw">end</span>
|
251
|
-
226:
|
252
|
-
227: <span class="ruby-ivar">@shared_data</span>.<span class="ruby-identifier">synchronize</span> <span class="ruby-keyword kw">do</span>
|
253
|
-
228: <span class="ruby-identifier">try_count</span> = <span class="ruby-value">0</span>
|
254
|
-
229: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">current_time</span> <span class="ruby-operator">>=</span> <span class="ruby-ivar">@next_reconnect_time</span>
|
255
|
-
230: <span class="ruby-keyword kw">while</span> <span class="ruby-identifier">try_count</span> <span class="ruby-operator"><</span> <span class="ruby-ivar">@max_connect_tries</span>
|
256
|
-
231: <span class="ruby-keyword kw">begin</span>
|
257
|
-
232: <span class="ruby-identifier">connect</span> <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">connected?</span>
|
258
|
-
233: <span class="ruby-ivar">@shared_data</span>.<span class="ruby-identifier">client</span>.<span class="ruby-identifier">write</span>(<span class="ruby-value str">"openTransaction"</span>,
|
259
|
-
234: <span class="ruby-identifier">txn_id</span>, <span class="ruby-identifier">group_name</span>, <span class="ruby-value str">""</span>, <span class="ruby-identifier">category</span>,
|
260
|
-
235: <span class="ruby-constant">AnalyticsLogger</span>.<span class="ruby-identifier">timestamp_string</span>,
|
261
|
-
236: <span class="ruby-identifier">union_station_key</span>,
|
262
|
-
237: <span class="ruby-keyword kw">true</span>)
|
263
|
-
238: <span class="ruby-keyword kw">return</span> <span class="ruby-constant">Log</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@shared_data</span>, <span class="ruby-identifier">txn_id</span>)
|
264
|
-
239: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Errno</span><span class="ruby-operator">::</span><span class="ruby-constant">ENOENT</span>, <span class="ruby-operator">*</span><span class="ruby-constant">NETWORK_ERRORS</span>
|
265
|
-
240: <span class="ruby-identifier">try_count</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
|
266
|
-
241: <span class="ruby-identifier">disconnect</span>(<span class="ruby-keyword kw">true</span>)
|
267
|
-
242: <span class="ruby-identifier">sleep</span> <span class="ruby-constant">RETRY_SLEEP</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">try_count</span> <span class="ruby-operator"><</span> <span class="ruby-ivar">@max_connect_tries</span>
|
268
|
-
243: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Exception</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">e</span>
|
269
|
-
244: <span class="ruby-identifier">disconnect</span>
|
270
|
-
245: <span class="ruby-identifier">raise</span> <span class="ruby-identifier">e</span>
|
271
|
-
246: <span class="ruby-keyword kw">end</span>
|
272
|
-
247: <span class="ruby-keyword kw">end</span>
|
273
|
-
248: <span class="ruby-comment cmt"># Failed to connect.</span>
|
274
|
-
249: <span class="ruby-constant">DebugLogging</span>.<span class="ruby-identifier">warn</span>(<span class="ruby-node">"Cannot connect to the logging agent (#{@server_address}); "</span> <span class="ruby-operator">+</span>
|
275
|
-
250: <span class="ruby-node">"retrying in #{@reconnect_timeout} seconds."</span>)
|
276
|
-
251: <span class="ruby-ivar">@next_reconnect_time</span> = <span class="ruby-identifier">current_time</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@reconnect_timeout</span>
|
277
|
-
252: <span class="ruby-keyword kw">end</span>
|
278
|
-
253: <span class="ruby-keyword kw">return</span> <span class="ruby-constant">Log</span>.<span class="ruby-identifier">new</span>
|
279
|
-
254: <span class="ruby-keyword kw">end</span>
|
280
|
-
255: <span class="ruby-keyword kw">end</span>
|
281
|
-
</pre>
|
282
|
-
</div>
|
283
|
-
</div>
|
284
|
-
</div>
|
285
|
-
<div class="method">
|
286
|
-
<div class="title">
|
287
|
-
<a name="M000293"></a><b>new_transaction</b>(group_name, category = :requests, union_station_key = nil)
|
288
|
-
</div>
|
289
|
-
<div class="sourcecode">
|
290
|
-
<p class="source-link">[ <a href="javascript:toggleSource('M000293_source')" id="l_M000293_source">show source</a> ]</p>
|
291
|
-
<div id="M000293_source" class="dyn-source">
|
292
|
-
<pre>
|
293
|
-
<span class="ruby-comment cmt"># File lib/phusion_passenger/analytics_logger.rb, line 181</span>
|
294
|
-
181: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">new_transaction</span>(<span class="ruby-identifier">group_name</span>, <span class="ruby-identifier">category</span> = <span class="ruby-identifier">:requests</span>, <span class="ruby-identifier">union_station_key</span> = <span class="ruby-keyword kw">nil</span>)
|
295
|
-
182: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-ivar">@server_address</span>
|
296
|
-
183: <span class="ruby-keyword kw">return</span> <span class="ruby-constant">Log</span>.<span class="ruby-identifier">new</span>
|
297
|
-
184: <span class="ruby-keyword kw">elsif</span> <span class="ruby-operator">!</span><span class="ruby-identifier">group_name</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">group_name</span>.<span class="ruby-identifier">empty?</span>
|
298
|
-
185: <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">"Group name may not be empty"</span>
|
299
|
-
186: <span class="ruby-keyword kw">end</span>
|
300
|
-
187:
|
301
|
-
188: <span class="ruby-identifier">txn_id</span> = (<span class="ruby-constant">AnalyticsLogger</span>.<span class="ruby-identifier">current_time</span>.<span class="ruby-identifier">to_i</span> <span class="ruby-operator">/</span> <span class="ruby-value">60</span>).<span class="ruby-identifier">to_s</span>(<span class="ruby-value">36</span>)
|
302
|
-
189: <span class="ruby-identifier">txn_id</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"-#{random_token(11)}"</span>
|
303
|
-
190: <span class="ruby-ivar">@shared_data</span>.<span class="ruby-identifier">synchronize</span> <span class="ruby-keyword kw">do</span>
|
304
|
-
191: <span class="ruby-identifier">try_count</span> = <span class="ruby-value">0</span>
|
305
|
-
192: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">current_time</span> <span class="ruby-operator">>=</span> <span class="ruby-ivar">@next_reconnect_time</span>
|
306
|
-
193: <span class="ruby-keyword kw">while</span> <span class="ruby-identifier">try_count</span> <span class="ruby-operator"><</span> <span class="ruby-ivar">@max_connect_tries</span>
|
307
|
-
194: <span class="ruby-keyword kw">begin</span>
|
308
|
-
195: <span class="ruby-identifier">connect</span> <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">connected?</span>
|
309
|
-
196: <span class="ruby-ivar">@shared_data</span>.<span class="ruby-identifier">client</span>.<span class="ruby-identifier">write</span>(<span class="ruby-value str">"openTransaction"</span>,
|
310
|
-
197: <span class="ruby-identifier">txn_id</span>, <span class="ruby-identifier">group_name</span>, <span class="ruby-value str">""</span>, <span class="ruby-identifier">category</span>,
|
311
|
-
198: <span class="ruby-constant">AnalyticsLogger</span>.<span class="ruby-identifier">timestamp_string</span>,
|
312
|
-
199: <span class="ruby-identifier">union_station_key</span>,
|
313
|
-
200: <span class="ruby-keyword kw">true</span>)
|
314
|
-
201: <span class="ruby-keyword kw">return</span> <span class="ruby-constant">Log</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@shared_data</span>, <span class="ruby-identifier">txn_id</span>)
|
315
|
-
202: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Errno</span><span class="ruby-operator">::</span><span class="ruby-constant">ENOENT</span>, <span class="ruby-operator">*</span><span class="ruby-constant">NETWORK_ERRORS</span>
|
316
|
-
203: <span class="ruby-identifier">try_count</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
|
317
|
-
204: <span class="ruby-identifier">disconnect</span>(<span class="ruby-keyword kw">true</span>)
|
318
|
-
205: <span class="ruby-identifier">sleep</span> <span class="ruby-constant">RETRY_SLEEP</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">try_count</span> <span class="ruby-operator"><</span> <span class="ruby-ivar">@max_connect_tries</span>
|
319
|
-
206: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Exception</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">e</span>
|
320
|
-
207: <span class="ruby-identifier">disconnect</span>
|
321
|
-
208: <span class="ruby-identifier">raise</span> <span class="ruby-identifier">e</span>
|
322
|
-
209: <span class="ruby-keyword kw">end</span>
|
323
|
-
210: <span class="ruby-keyword kw">end</span>
|
324
|
-
211: <span class="ruby-comment cmt"># Failed to connect.</span>
|
325
|
-
212: <span class="ruby-constant">DebugLogging</span>.<span class="ruby-identifier">warn</span>(<span class="ruby-node">"Cannot connect to the logging agent (#{@server_address}); "</span> <span class="ruby-operator">+</span>
|
326
|
-
213: <span class="ruby-node">"retrying in #{@reconnect_timeout} seconds."</span>)
|
327
|
-
214: <span class="ruby-ivar">@next_reconnect_time</span> = <span class="ruby-identifier">current_time</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@reconnect_timeout</span>
|
328
|
-
215: <span class="ruby-keyword kw">end</span>
|
329
|
-
216: <span class="ruby-keyword kw">return</span> <span class="ruby-constant">Log</span>.<span class="ruby-identifier">new</span>
|
330
|
-
217: <span class="ruby-keyword kw">end</span>
|
331
|
-
218: <span class="ruby-keyword kw">end</span>
|
332
|
-
</pre>
|
333
|
-
</div>
|
334
|
-
</div>
|
335
|
-
</div>
|
336
|
-
</div>
|
337
|
-
|
338
|
-
</div>
|
339
|
-
|
340
|
-
</body>
|
341
|
-
</html>
|