Package org.jboss.marshalling

Examples of org.jboss.marshalling.Marshaller.writeUTF()


            marshaller.writeByte(ServerManagerProtocol.RETURN_SERVER_COUNT);
            marshaller.writeInt(serverStatuses.size());
            for (Map.Entry<ServerIdentity, ServerStatus> entry : serverStatuses.entrySet()) {
                marshaller.writeByte(ServerManagerProtocol.RETURN_SERVER_NAME);
                marshaller.writeUTF(entry.getKey().getServerName());
                marshaller.writeByte(ServerManagerProtocol.RETURN_SERVER_GROUP_NAME);
                marshaller.writeUTF(entry.getKey().getServerGroupName());
                marshaller.writeByte(ServerManagerProtocol.RETURN_SERVER_STATUS);
                marshaller.writeObject(entry.getValue());
            }
View Full Code Here


            marshaller.writeInt(serverStatuses.size());
            for (Map.Entry<ServerIdentity, ServerStatus> entry : serverStatuses.entrySet()) {
                marshaller.writeByte(ServerManagerProtocol.RETURN_SERVER_NAME);
                marshaller.writeUTF(entry.getKey().getServerName());
                marshaller.writeByte(ServerManagerProtocol.RETURN_SERVER_GROUP_NAME);
                marshaller.writeUTF(entry.getKey().getServerGroupName());
                marshaller.writeByte(ServerManagerProtocol.RETURN_SERVER_STATUS);
                marshaller.writeObject(entry.getValue());
            }

            marshaller.finish();
View Full Code Here

        @Override
        protected void sendRequest(final int protocolVersion, final OutputStream output) throws IOException {
            final Marshaller marshaller = getMarshaller();
            marshaller.start(createByteOutput(output));
            marshaller.writeByte(ServerManagerProtocol.PARAM_SERVER_NAME);
            marshaller.writeUTF(serverName);
            if (gracefulTimeout != null) {
                marshaller.writeByte(ServerManagerProtocol.PARAM_GRACEFUL_TIMEOUT);
                marshaller.writeLong(gracefulTimeout);
            }
            marshaller.finish();
View Full Code Here

                Set<String> serverManagerNames = domainController.getServerManagerNames();
                marshaller.writeByte(DomainClientProtocol.RETURN_SERVER_MANAGER_COUNT);
                marshaller.writeInt(serverManagerNames.size());
                for (String name : serverManagerNames) {
                    marshaller.writeByte(DomainClientProtocol.RETURN_HOST_NAME);
                    marshaller.writeUTF(name);
                }
                marshaller.finish();
        }
    }
View Full Code Here

            marshaller.writeByte(DomainClientProtocol.RETURN_SERVER_STATUS_COUNT);
            marshaller.writeInt(statuses.size());
            for (Map.Entry<ServerIdentity, ServerStatus> entry : statuses.entrySet()) {
                ServerIdentity id = entry.getKey();
                marshaller.writeByte(DomainClientProtocol.RETURN_HOST_NAME);
                marshaller.writeUTF(id.getHostName());
                marshaller.writeByte(DomainClientProtocol.RETURN_SERVER_GROUP_NAME);
                marshaller.writeUTF(id.getServerGroupName());
                marshaller.writeByte(DomainClientProtocol.RETURN_SERVER_NAME);
                marshaller.writeUTF(id.getServerName());
                marshaller.writeByte(DomainClientProtocol.RETURN_SERVER_STATUS);
View Full Code Here

            for (Map.Entry<ServerIdentity, ServerStatus> entry : statuses.entrySet()) {
                ServerIdentity id = entry.getKey();
                marshaller.writeByte(DomainClientProtocol.RETURN_HOST_NAME);
                marshaller.writeUTF(id.getHostName());
                marshaller.writeByte(DomainClientProtocol.RETURN_SERVER_GROUP_NAME);
                marshaller.writeUTF(id.getServerGroupName());
                marshaller.writeByte(DomainClientProtocol.RETURN_SERVER_NAME);
                marshaller.writeUTF(id.getServerName());
                marshaller.writeByte(DomainClientProtocol.RETURN_SERVER_STATUS);
                marshaller.writeObject(entry.getValue());
            }
View Full Code Here

                marshaller.writeByte(DomainClientProtocol.RETURN_HOST_NAME);
                marshaller.writeUTF(id.getHostName());
                marshaller.writeByte(DomainClientProtocol.RETURN_SERVER_GROUP_NAME);
                marshaller.writeUTF(id.getServerGroupName());
                marshaller.writeByte(DomainClientProtocol.RETURN_SERVER_NAME);
                marshaller.writeUTF(id.getServerName());
                marshaller.writeByte(DomainClientProtocol.RETURN_SERVER_STATUS);
                marshaller.writeObject(entry.getValue());
            }
            marshaller.finish();
        }
View Full Code Here

        @Override
        protected void sendRequest(final int protocolVersion, final OutputStream output) throws IOException {
            final Marshaller marshaller = getMarshaller();
            marshaller.start(createByteOutput(output));
            marshaller.writeByte(ServerManagerProtocol.PARAM_SERVER_NAME);
            marshaller.writeUTF(serverName);
            marshaller.writeByte(ServerManagerProtocol.PARAM_ALLOW_ROLLBACK);
            marshaller.writeBoolean(allowOverallRollback);
            marshaller.writeByte(ServerManagerProtocol.PARAM_SERVER_MODEL_UPDATE_COUNT);
            marshaller.writeInt(updates.size());
            for(AbstractServerModelUpdate<?> update : updates) {
View Full Code Here

        @Override
        protected void sendRequest(final int protocolVersion, final OutputStream output) throws IOException {
            final Marshaller marshaller = getMarshaller();
            marshaller.start(createByteOutput(output));
            marshaller.writeByte(ServerManagerProtocol.PARAM_SERVER_NAME);
            marshaller.writeUTF(serverName);
            marshaller.finish();
        }

        @Override
        protected ServerModel receiveResponse(final InputStream input) throws IOException {
View Full Code Here

                        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);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.