com.sun.jdmk.comm
Interface HttpConnectorServerMBean

All Superinterfaces:
CommunicatorServerMBean, GenericHttpConnectorServerMBean
All Known Implementing Classes:
HttpConnectorServer

Deprecated. The JMX Remote API should be used in preference to the legacy Java DMK connector classes. This interface may be removed in a future version of Java DMK. See JdmkLegacyConnector.

public interface HttpConnectorServerMBean
extends GenericHttpConnectorServerMBean


Method Summary
 int getTimeout()
          Deprecated. Returns setting for Timeout.
 void setTimeout(int value)
          Deprecated. Enables/disables Timeout with the specified timeout, in milliseconds.
 
Methods inherited from interface com.sun.jdmk.comm.GenericHttpConnectorServerMBean
getActiveClientCount, getLastConnectedClient, getMaxActiveClientCount, getServedClientCount, isAuthenticationOn, setMaxActiveClientCount
 
Methods inherited from interface com.sun.jdmk.comm.CommunicatorServerMBean
getHost, getPort, getProtocol, getState, getStateString, isActive, setPort, start, stop, waitState
 

Method Detail

getTimeout

int getTimeout()
Deprecated. 
Returns setting for Timeout.

A return value of 0 implies that the option is disabled (i.e. timeout of infinity).

Returns:
The current value of the "Timeout" property.

setTimeout

void setTimeout(int value)
                throws IllegalStateException
Deprecated. 
Enables/disables Timeout with the specified timeout, in milliseconds.

With this option set to a non-zero timeout, a read() call on the InputStream associated with this Socket will block for only this amount of time. If the timeout expires, a java.io.InterruptedIOException is raised, though the Socket is still valid. The option must be enabled prior to entering the blocking operation to have effect. The timeout must be > 0. A timeout of zero is interpreted as an infinite timeout.

Parameters:
value - The new value of the property.
Throws:
IllegalStateException - This method has been invoked while the connector was ONLINE or STARTING.

Open Source build 02
opendmk-1.0-b02 2007.10.01_19:17:46_MEST

Copyright 1998-2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.