cachePort - cache current property values, or clear the cache, for service on specified node and portSYNOPSIS
DESCRIPTIONcachePort nodeHost portName(s) [-clear]
The cachePort utility caches current instrument service property values for the instrument service running on specified node and port. Subsequent instantiations of the same service on the same node and port will use cached property values rather than the values specified in the associated jar file (or PUCK). Thus it is possible to start a service on a port (e.g. with scanPort), modify one or more property values with the setProperty or setSchedule utility, and then cache the current values with cachePort.The cached property values then persist for each subsequent service instantiation on the specified node and port until the contents of the service jar file (or PUCK) changes, in which case the service is initialized with property values specified in the jar. The properties cache can also be cleared using the -clear option;ENVIRONMENTMultiple ports may be specified on the command line, e.g.
The portName(s) can be abbreviated as an integer, i.e. "/dev/ttySX1" can be abbreviated as simply "1". Thus the above example is equivalent to% cachePort node6 /dev/ttySX1 /dev/ttySX2 /dev/ttySX3% cachePort node6 1 2 3This utility may be run on the same host as the node, or on any networked host from which the node host is accessible. If run on the node's host, then nodeHost should be specified as "localhost".
The following environment variables must be set:
SEE ALSO
instrument service properties,
scanPort ,
setProperty,
portProperties,
setSchedule