Previous Topic

Next Topic

Book Contents

Book Index

Input and output properties

By using the output properties, you can redirect the system output to a remote machine.

System property

Default value

Description

mbs.output

default

Specifies the location to redirect framework output. This property has three possible values:

  • default or missing value – The framework output is mapped to the standard system output of the local device.
  • file – The framework output is recorded in a file on the server host machine. The default file is called console.txt and is placed in bin/vms/<vm_name> folder, where <vm_name> stands for the folder that corresponds to the currently used JVM for the OSGi Runtime. You can change the output file by using the mbs.output.file system property.
  • remote – The framework input and output are mapped to the system input and output of a remote machine – the framework opens a client socket sending the input to the relevant server on the opposite side. To use effectively this option, you should specify mbs.output.remote.host and mbs.output.remote.port as specified below.
  • server – The framework input and output are mapped to the system input and output of a remote machine – this time the framework opens a server socket and waits for incoming requests. To be able to communicate with the framework in this output mode you have to also set the system property mbs.output.server.port.

mbs.output.buffsize

24576

Specifies the size in bytes of the output buffer.

mbs.output.charscount

80

Specifies the maximum number of symbols that a line in the standard output can have.

mbs.output.remote.host

127.0.0.1 (the IP address of the local machine)

Defines the IP address of the remote machine to forward the framework output to.

mbs.output.remote.port

2000

Specifies the port of the remote machine to redirect the command output to.

mbs.output.remote.autoFlush

false

If true and the mbs.output system property is equal to remote, that is, the standard output is sent to a remote location, the output stream will be automatically flushed after each write operation.

mbs.output.remote.reconnectTimeout

20000

Specifies the time-out in milliseconds for reconnection to the remote output destination. Has meaning only if mbs.output is equal to remote.

mbs.output.remote.useLocalIn

false

If true, the framework will read both the remote input and the system input. This is useful in case problems appear in receiving the remote input.

mbs.output.file

console.txt

Specifies the file to which the framework will redirect its output. This property is useful only if the mbs.output one is equal to file.

mbs.output.file.autoflush

true

If true and mbs.output is equal to file, that is, the standard output is written to a file, the framework will automatically flush the stream after each write operation.

mbs.output.server.port

2000

Specifies the port on which the framework listens for requests when started in "server" output mode (mbs.output is equal to server).

mbs.output.server.host

It specifies the network interface the framework will listen on for incoming requests from a remote console. The property has meaning if mbs.output is equal to server. If this property is not set, then the framework will listen on all interfaces it supports in the underlying OS.