com.hazelcast.management.request
Class ExecuteScriptRequest

java.lang.Object
  extended by com.hazelcast.management.request.ExecuteScriptRequest
All Implemented Interfaces:
JsonSerializable, ConsoleRequest

public class ExecuteScriptRequest
extends Object
implements ConsoleRequest

Request for executing scripts on the nodes from Management Center.


Constructor Summary
ExecuteScriptRequest()
           
ExecuteScriptRequest(String script, String engine, boolean targetAllMembers, Map<String,Object> bindings)
           
ExecuteScriptRequest(String script, String engine, Set<String> targets, Map<String,Object> bindings)
           
 
Method Summary
 void fromJson(com.eclipsesource.json.JsonObject json)
           
 int getType()
           
 Object readResponse(com.eclipsesource.json.JsonObject json)
           
 com.eclipsesource.json.JsonObject toJson()
           
 void writeResponse(ManagementCenterService mcs, com.eclipsesource.json.JsonObject root)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecuteScriptRequest

public ExecuteScriptRequest()

ExecuteScriptRequest

public ExecuteScriptRequest(String script,
                            String engine,
                            boolean targetAllMembers,
                            Map<String,Object> bindings)

ExecuteScriptRequest

public ExecuteScriptRequest(String script,
                            String engine,
                            Set<String> targets,
                            Map<String,Object> bindings)
Method Detail

getType

public int getType()
Specified by:
getType in interface ConsoleRequest

writeResponse

public void writeResponse(ManagementCenterService mcs,
                          com.eclipsesource.json.JsonObject root)
                   throws Exception
Specified by:
writeResponse in interface ConsoleRequest
Throws:
Exception

readResponse

public Object readResponse(com.eclipsesource.json.JsonObject json)
                    throws IOException
Specified by:
readResponse in interface ConsoleRequest
Throws:
IOException

toJson

public com.eclipsesource.json.JsonObject toJson()
Specified by:
toJson in interface JsonSerializable

fromJson

public void fromJson(com.eclipsesource.json.JsonObject json)
Specified by:
fromJson in interface JsonSerializable


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.