Adobe 38000382 JRun Guide - Page 68

addOfflinePropertyValue, checkServer, following table describes the meanings of the settings of

Page 68 highlights

addOfflinePropertyValue Description Appends the name and value as a property to the specified service in the jrun.xml file. The addOfflinePropertyValue tag is similar to setOfflineProperty tag. This tag is often used when adding properties for the DeployerService. Attributes Attribute Description service (Required.) The name of the service. server The name of the JRun server. Defaults to the server on which the JSP is invoked. name Required. Specifies the name of the service's property. value Required. Specifies the value of the service's attribute. The service attribute is not required, but a value for the service path can be implied. The following table describes the meanings of the settings of the server and service attributes: Attribute set none server=X service=Y server=X service=Y Description The current server's JRunAdminService. Server X's JRunServer service. The current server's Y service. Server X's Y service. Example The following example adds the property nick with a value of danger to the LoggerService in the jrun.xml file: checkServer Description Detects whether the directory specified for the server (in servers.xml) exists, and returns a list of any read-only files in that directory. By default, the samples server contains no read-only files or directories. The JMC uses the checkServer tag before deleting a JRun server. JRun throws an exception if the server cannot be reached. Attributes Attribute server directoryExistsId readOnlyFilesId Description (Required.) The name of the JRun server. Specifies a Boolean variable that returns true if the server directory exists. Specifies a variable that returns a java.util.List of filepaths under the server directory that are read-only. 54 Chapter 6 Using the JMC Custom Tag Library

  • 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
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116

54
Chapter 6
Using the JMC Custom Tag Library
addOfflinePropertyValue
Description
Appends the name and value as a property to the specified service in the jrun.xml file.
The
addOfflinePropertyValue
tag is similar to
setOfflineProperty
tag. This tag is
often used when adding properties for the DeployerService.
Attributes
The service attribute is not required, but a value for the service path can be implied. The
following table describes the meanings of the settings of the
server
and
service
attributes:
Example
The following example adds the property
nick
with a value of
danger
to the
LoggerService in the jrun.xml file:
<jmcmgmt:addOfflinePropertyValue name="nick" value="danger"
service="LoggerService"/>
checkServer
Description
Detects whether the directory specified for the server (in servers.xml) exists, and returns a
list of any read-only files in that directory. By default, the samples server contains no
read-only files or directories. The JMC uses the
checkServer
tag before deleting a JRun
server. JRun throws an exception if the server cannot be reached.
Attributes
Attribute
Description
service
(Required.) The name of the service.
server
The name of the JRun server. Defaults to the server on which the
JSP is invoked.
name
Required. Specifies the name of the service’s property.
value
Required. Specifies the value of the service’s attribute.
Attribute set
Description
none
The current server's JRunAdminService.
server=X
Server X's JRunServer service.
service=Y
The current server's Y service.
server=X service=Y
Server X's Y service.
Attribute
Description
server
(Required.) The name of the JRun server.
directoryExistsId
Specifies a Boolean variable that returns true if the server directory
exists.
readOnlyFilesId
Specifies a variable that returns a java.util.List of filepaths under the
server directory that are read-only.