Merge
This commit is contained in:
commit
28e94fa2a3
@ -596,7 +596,7 @@ public class CounterMonitor extends Monitor implements CounterMonitorMBean {
|
|||||||
* types sent by the counter monitor.
|
* types sent by the counter monitor.
|
||||||
*/
|
*/
|
||||||
public MBeanNotificationInfo[] getNotificationInfo() {
|
public MBeanNotificationInfo[] getNotificationInfo() {
|
||||||
return notifsInfo;
|
return notifsInfo.clone();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -478,7 +478,7 @@ public class GaugeMonitor extends Monitor implements GaugeMonitorMBean {
|
|||||||
* types sent by the gauge monitor.
|
* types sent by the gauge monitor.
|
||||||
*/
|
*/
|
||||||
public MBeanNotificationInfo[] getNotificationInfo() {
|
public MBeanNotificationInfo[] getNotificationInfo() {
|
||||||
return notifsInfo;
|
return notifsInfo.clone();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -184,6 +184,7 @@ public class StringMonitor extends Monitor implements StringMonitorMBean {
|
|||||||
* @return The derived gauge of the specified object.
|
* @return The derived gauge of the specified object.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public synchronized String getDerivedGauge(ObjectName object) {
|
public synchronized String getDerivedGauge(ObjectName object) {
|
||||||
return (String) super.getDerivedGauge(object);
|
return (String) super.getDerivedGauge(object);
|
||||||
}
|
}
|
||||||
@ -199,6 +200,7 @@ public class StringMonitor extends Monitor implements StringMonitorMBean {
|
|||||||
* @return The derived gauge timestamp of the specified object.
|
* @return The derived gauge timestamp of the specified object.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public synchronized long getDerivedGaugeTimeStamp(ObjectName object) {
|
public synchronized long getDerivedGaugeTimeStamp(ObjectName object) {
|
||||||
return super.getDerivedGaugeTimeStamp(object);
|
return super.getDerivedGaugeTimeStamp(object);
|
||||||
}
|
}
|
||||||
@ -341,8 +343,9 @@ public class StringMonitor extends Monitor implements StringMonitorMBean {
|
|||||||
* the Java class of the notification and the notification types sent by
|
* the Java class of the notification and the notification types sent by
|
||||||
* the string monitor.
|
* the string monitor.
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public MBeanNotificationInfo[] getNotificationInfo() {
|
public MBeanNotificationInfo[] getNotificationInfo() {
|
||||||
return notifsInfo;
|
return notifsInfo.clone();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -52,6 +52,9 @@ class Request {
|
|||||||
os = rawout;
|
os = rawout;
|
||||||
do {
|
do {
|
||||||
startLine = readLine();
|
startLine = readLine();
|
||||||
|
if (startLine == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
/* skip blank lines */
|
/* skip blank lines */
|
||||||
} while (startLine.equals (""));
|
} while (startLine.equals (""));
|
||||||
}
|
}
|
||||||
|
@ -441,6 +441,7 @@ class ServerImpl implements TimeSource {
|
|||||||
rawin = sslStreams.getInputStream();
|
rawin = sslStreams.getInputStream();
|
||||||
rawout = sslStreams.getOutputStream();
|
rawout = sslStreams.getOutputStream();
|
||||||
engine = sslStreams.getSSLEngine();
|
engine = sslStreams.getSSLEngine();
|
||||||
|
connection.sslStreams = sslStreams;
|
||||||
} else {
|
} else {
|
||||||
rawin = new BufferedInputStream(
|
rawin = new BufferedInputStream(
|
||||||
new Request.ReadStream (
|
new Request.ReadStream (
|
||||||
@ -450,6 +451,8 @@ class ServerImpl implements TimeSource {
|
|||||||
ServerImpl.this, chan
|
ServerImpl.this, chan
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
connection.raw = rawin;
|
||||||
|
connection.rawout = rawout;
|
||||||
}
|
}
|
||||||
Request req = new Request (rawin, rawout);
|
Request req = new Request (rawin, rawout);
|
||||||
requestLine = req.requestLine();
|
requestLine = req.requestLine();
|
||||||
|
Loading…
Reference in New Issue
Block a user