@Override public void write(DataOutput output) throws IOException { output.writeByte(UNREGISTER_MBEAN); output.writeInt(correlationId); output.writeByte(OBJECT_NAME); Marshaller marshaller = prepareForMarshalling(output); marshaller.writeObject(name); marshaller.close(); } });
@Override public void write(DataOutput output) throws IOException { output.writeByte(GET_MBEAN_INFO); output.writeInt(correlationId); output.writeByte(OBJECT_NAME); Marshaller marshaller = prepareForMarshalling(output); marshaller.writeObject(name); marshaller.close(); } });
@Override public void write(DataOutput output) throws IOException { output.writeByte(GET_OBJECT_INSTANCE); output.writeInt(correlationId); output.writeByte(OBJECT_NAME); Marshaller marshaller = prepareForMarshalling(output); marshaller.writeObject(name); marshaller.close(); } });
@Override public void write(DataOutput output) throws IOException { output.writeByte(IS_REGISTERED); output.writeInt(correlationId); output.writeByte(OBJECT_NAME); Marshaller marshaller = prepareForMarshalling(output); marshaller.writeObject(name); marshaller.close(); } });
@Override public void write(DataOutput output) throws IOException { output.writeByte(INSTANCE_OF); output.writeInt(correlationId); output.writeByte(OBJECT_NAME); Marshaller marshaller = prepareForMarshalling(output); marshaller.writeObject(name); marshaller.writeByte(STRING); marshaller.writeUTF(className); } });
@Override public void write(DataOutput output) throws IOException { output.writeByte(REMOVE_NOTIFICATION_LISTENER); output.writeInt(correlationId); output.writeByte(INTEGER); output.writeInt(2); // Sending 2 parameters. output.writeByte(OBJECT_NAME); Marshaller marshaller = prepareForMarshalling(output); marshaller.writeObject(name); marshaller.writeByte(OBJECT_NAME); marshaller.writeObject(listener); marshaller.close(); } });
@Override public void write(DataOutput output) throws IOException { output.writeByte(QUERY_MBEANS); output.writeInt(correlationId); output.writeByte(OBJECT_NAME); Marshaller marshaller = prepareForMarshalling(output); marshaller.writeObject(name); marshaller.writeByte(QUERY_EXP); marshaller.writeObject(query); marshaller.close(); } });
@Override public void write(DataOutput output) throws IOException { output.writeByte(QUERY_NAMES); output.writeInt(correlationId); output.writeByte(OBJECT_NAME); Marshaller marshaller = prepareForMarshalling(output); marshaller.writeObject(name); marshaller.writeByte(QUERY_EXP); marshaller.writeObject(query); marshaller.close(); } });
@Override public void write(DataOutput output) throws IOException { output.writeByte(GET_ATTRIBUTE); output.writeInt(correlationId); output.writeByte(OBJECT_NAME); Marshaller marshaller = prepareForMarshalling(output); marshaller.writeObject(name); marshaller.writeByte(STRING); marshaller.writeUTF(attribute); marshaller.close(); } });
@Override public void write(DataOutput output) throws IOException { output.writeByte(SET_ATTRIBUTE); output.writeInt(correlationId); output.writeByte(OBJECT_NAME); Marshaller marshaller = prepareForMarshalling(output); marshaller.writeObject(name); marshaller.writeByte(ATTRIBUTE); marshaller.writeObject(attribute); marshaller.close(); } });
@Override public void write(DataOutput output) throws IOException { output.writeByte(SET_ATTRIBUTES); output.writeInt(correlationId); output.writeByte(OBJECT_NAME); Marshaller marshaller = prepareForMarshalling(output); marshaller.writeObject(name); marshaller.writeByte(ATTRIBUTE_LIST); marshaller.writeObject(attributes); marshaller.close(); } });
@Override public void write(DataOutput output) throws IOException { output.writeByte(CREATE_MBEAN); output.writeInt(correlationId); output.writeByte(INTEGER); output.writeInt(2); // Sending 2 parameters. Marshaller marshaller = prepareForMarshalling(output); marshaller.writeByte(STRING); marshaller.writeUTF(className); marshaller.writeByte(OBJECT_NAME); marshaller.writeObject(name); marshaller.close(); } });
@Override public void write(DataOutput output) throws IOException { output.writeByte(GET_ATTRIBUTES); output.writeInt(correlationId); output.writeByte(OBJECT_NAME); Marshaller marshaller = prepareForMarshalling(output); marshaller.writeObject(name); marshaller.writeByte(STRING_ARRAY); marshaller.writeInt(attributes.length); for (String current : attributes) { marshaller.writeUTF(current); } marshaller.close(); } });
@Override public void write(DataOutput output) throws IOException { output.writeByte(CREATE_MBEAN); output.writeInt(correlationId); output.writeByte(INTEGER); output.writeInt(3); // Sending 3 parameters. Marshaller marshaller = prepareForMarshalling(output); marshaller.writeByte(STRING); marshaller.writeUTF(className); marshaller.writeByte(OBJECT_NAME); marshaller.writeObject(name); marshaller.writeByte(OBJECT_NAME); marshaller.writeObject(loaderName); marshaller.close(); } });
@Override public void write(DataOutput output) throws IOException { output.writeByte(REMOVE_NOTIFICATION_LISTENER); output.writeInt(correlationId); output.writeByte(INTEGER); output.writeInt(4); // Sending 4 parameters. output.writeByte(OBJECT_NAME); Marshaller marshaller = prepareForMarshalling(output); marshaller.writeObject(name); marshaller.writeByte(OBJECT_NAME); marshaller.writeObject(listener); marshaller.writeByte(NOTIFICATION_FILTER); marshaller.writeObject(filter); marshaller.writeByte(OBJECT); marshaller.writeObject(handback); marshaller.close(); } });
@Override public void write(DataOutput output) throws IOException { output.writeByte(ADD_NOTIFICATION_LISTENER); output.writeInt(correlationId); output.writeByte(OBJECT_NAME); Marshaller marshaller = prepareForMarshalling(output); marshaller.writeObject(name); marshaller.writeByte(OBJECT_NAME); marshaller.writeObject(listener); marshaller.writeByte(NOTIFICATION_FILTER); marshaller.writeObject(filter); marshaller.writeByte(OBJECT); marshaller.writeObject(handback); marshaller.close(); } });
@Override public void write(DataOutput output) throws IOException { output.writeByte(ADD_NOTIFICATION_LISTENER); output.writeInt(correlationId); output.writeByte(OBJECT_NAME); Marshaller marshaller = prepareForMarshalling(output); marshaller.writeObject(name); // This indicates that the target is remote. marshaller.writeByte(INTEGER); marshaller.writeInt(notificationId); marshaller.writeByte(NOTIFICATION_FILTER); marshaller.writeObject(filter); marshaller.writeByte(OBJECT); marshaller.writeObject(handback); marshaller.close(); } });
@Override public void write(DataOutput output) throws IOException { output.writeByte(CREATE_MBEAN); output.writeInt(correlationId); output.writeByte(INTEGER); output.writeInt(4); // Sending 4 parameters. Marshaller marshaller = prepareForMarshalling(output); marshaller.writeByte(STRING); marshaller.writeUTF(className); marshaller.writeByte(OBJECT_NAME); marshaller.writeObject(name); marshaller.writeByte(OBJECT_ARRAY); marshaller.writeInt(params.length); for (Object current : params) { marshaller.writeObject(current); } marshaller.writeByte(STRING_ARRAY); marshaller.writeInt(signature.length); for (String current : signature) { marshaller.writeUTF(current); } marshaller.close(); } });
@Override public void write(DataOutput output) throws IOException { output.writeByte(CREATE_MBEAN); output.writeInt(correlationId); output.writeByte(INTEGER); output.writeInt(5); // Sending 5 parameters. Marshaller marshaller = prepareForMarshalling(output); marshaller.writeByte(STRING); marshaller.writeUTF(className); marshaller.writeByte(OBJECT_NAME); marshaller.writeObject(name); marshaller.writeByte(OBJECT_NAME); marshaller.writeObject(loaderName); marshaller.writeByte(OBJECT_ARRAY); marshaller.writeInt(params.length); for (Object current : params) { marshaller.writeObject(current); } marshaller.writeByte(STRING_ARRAY); marshaller.writeInt(signature.length); for (String current : signature) { marshaller.writeUTF(current); } marshaller.close(); } });
@Override public void write(DataOutput output) throws IOException { output.writeByte(INVOKE); output.writeInt(correlationId); output.writeByte(OBJECT_NAME); Marshaller marshaller = prepareForMarshalling(output); marshaller.writeObject(name); marshaller.writeByte(STRING); marshaller.writeUTF(operationName); marshaller.writeByte(OBJECT_ARRAY); if (params != null) { marshaller.writeInt(params.length); for (Object current : params) { marshaller.writeObject(current); } } else { marshaller.writeInt(0); } marshaller.writeByte(STRING_ARRAY); if (signature != null) { marshaller.writeInt(signature.length); for (String current : signature) { marshaller.writeUTF(current); } } else { marshaller.writeInt(0); } marshaller.close(); } });