public class MasterProxy extends UnicastRemoteObject implements MasterProxyIF
ref| Constructor and Description |
|---|
MasterProxy() |
| Modifier and Type | Method and Description |
|---|---|
ClientVmRecord |
bounceUnitTestVm(int pid)
For internal hydra use only.
|
void |
configureNetworkConnection(String source,
String target,
int op,
int way)
For internal hydra use only.
|
List<List<String>> |
getClientMapping()
Called remotely by client processes to get the client mapping as a list
of lists, where each sublist is the threadgroup plus the thread name.
|
Vector |
getClientVmids()
For internal hydra use only.
|
Map |
getClientVms()
For internal hydra use only.
|
DerbyServerHelper.Endpoint |
getDerbyServerEndpoint()
For internal hydra use only.
|
Object |
getGlobalNext(Long key)
For internal hydra use only.
|
HostAgentIF |
getHostAgent(String host)
For internal hydra use only.
|
TestConfig |
getHostAgentTestConfig() |
Map |
getNetworkConnectionState()
For internal hydra use only.
|
Vector |
getOtherClientVmids(int vmid)
For internal hydra use only.
|
int |
getPid(int vmid)
For internal hydra use only.
|
TestConfig |
getTestConfig() |
Integer |
getVmid(String host,
int pid)
Called remotely by client processes to get VM ID corresponding to host
and PID.
|
void |
invoke(String classname,
String methodname,
Class[] types,
Object[] args)
Invokes the specified class method.
|
void |
lockToSynchronizeJavaGroupsForBug30341()
Start workaround for Bug 30341.
|
void |
printClientProcessStacks() |
void |
reboot(String srcName,
int srcVmid,
int actionId,
String reason,
RebootInfo target)
For internal hydra use only.
|
void |
recordAgent(AgentHelper.Endpoint endpoint) |
void |
recordDir(HostDescription hd,
String name,
String dir) |
void |
recordHadoop(HadoopDescription hdd,
HadoopDescription.NodeDescription nd,
int pid,
boolean secure) |
void |
recordHDFSPIDNoDumps(HostDescription hd,
int pid,
boolean secure) |
void |
recordLocator(DistributedSystemHelper.Endpoint endpoint)
For internal hydra use only.
|
void |
recordPID(HostDescription hd,
int pid) |
void |
recordPIDNoDumps(HostDescription hd,
int pid) |
void |
recordRootCommand(HostDescription hd,
String cmd,
String dir) |
HydraThreadGroupInfo |
registerClient(int vmid,
int tid,
RemoteTestModuleIF mod)
For internal hydra use only.
|
void |
registerClientDisconnect(int vmid)
For internal hydra use only.
|
void |
registerGemFireLocatorAgent(GemFireLocatorAgentRecord lar)
For internal hydra use only.
|
void |
registerHostAgent(HostAgentRecord har)
For internal hydra use only.
|
void |
removeHadoop(HadoopDescription hdd,
HadoopDescription.NodeDescription nd,
int pid,
boolean secure) |
void |
removeHDFSPIDNoDumps(HostDescription hd,
int pid,
boolean secure) |
void |
removePID(HostDescription hd,
int pid) |
void |
removePIDNoDumps(HostDescription hd,
int pid) |
void |
reportResult(int tsid,
int vmid,
int tid,
TestTaskResult result)
For internal hydra use only.
|
void |
reportStatMonitorError(Throwable t)
For internal hydra use only.
|
ClientVmInfo |
reserveClientVmForStart(String srcName,
int srcVmid,
ClientVmInfo target)
For internal hydra use only.
|
ClientVmInfo |
reserveClientVmForStop(String srcName,
int srcVmid,
int syncMode,
int stopMode,
ClientVmInfo target)
For internal hydra use only.
|
RebootInfo |
reserveForReboot(String srcName,
int srcVmid,
String target,
boolean liveOnly)
For internal hydra use only.
|
boolean |
reservePort(String host,
int port)
For internal hydra use only.
|
void |
showNetworkConnectionState()
For internal hydra use only.
|
void |
startClientVm(String srcName,
int srcVmid,
int actionId,
String reason,
int syncMode,
ClientVmInfo target)
For internal hydra use only.
|
void |
stopClientVm(String srcName,
int srcVmid,
int actionId,
String reason,
int syncMode,
int stopMode,
int startMode,
ClientVmInfo target)
For internal hydra use only.
|
void |
unlockToSynchronizeJavaGroupsForBug30341() |
clone, exportObject, exportObject, exportObject, unexportObjectgetClientHost, getLog, setLogpublic MasterProxy()
throws RemoteException
RemoteExceptionpublic TestConfig getTestConfig() throws RemoteException
getTestConfig in interface MasterProxyIFRemoteExceptionpublic TestConfig getHostAgentTestConfig() throws RemoteException
getHostAgentTestConfig in interface MasterProxyIFRemoteExceptionpublic void registerGemFireLocatorAgent(GemFireLocatorAgentRecord lar) throws RemoteException
Called remotely by the locatoragent to register itself with the master.
registerGemFireLocatorAgent in interface MasterProxyIFRemoteExceptionpublic void recordLocator(DistributedSystemHelper.Endpoint endpoint) throws RemoteException
MasterProxyIFrecordLocator in interface MasterProxyIFRemoteExceptionpublic void lockToSynchronizeJavaGroupsForBug30341()
throws RemoteException
lockToSynchronizeJavaGroupsForBug30341 in interface MasterProxyIFRemoteExceptionpublic void unlockToSynchronizeJavaGroupsForBug30341()
throws RemoteException
unlockToSynchronizeJavaGroupsForBug30341 in interface MasterProxyIFRemoteExceptionpublic DerbyServerHelper.Endpoint getDerbyServerEndpoint() throws RemoteException
Called remotely by hydra clients to get the derby server endpoint.
getDerbyServerEndpoint in interface MasterProxyIFRemoteExceptionpublic void registerHostAgent(HostAgentRecord har) throws RemoteException
Called remotely by hostagents to register themselves with the master.
registerHostAgent in interface MasterProxyIFRemoteExceptionpublic void reportStatMonitorError(Throwable t) throws RemoteException
Called remotely by hostagents to report a statistics monitor error.
reportStatMonitorError in interface MasterProxyIFRemoteExceptionpublic HostAgentIF getHostAgent(String host) throws RemoteException
Called by ProcessMgr to get a hostagent for a host.
getHostAgent in interface MasterProxyIFRemoteExceptionpublic Integer getVmid(String host, int pid) throws RemoteException
getVmid in interface MasterProxyIFRemoteExceptionpublic List<List<String>> getClientMapping() throws RemoteException
getClientMapping in interface MasterProxyIFRemoteExceptionpublic int getPid(int vmid)
throws RemoteException
Called remotely by client processes to get accurate PID (for Linux).
getPid in interface MasterProxyIFRemoteExceptionpublic HydraThreadGroupInfo registerClient(int vmid, int tid, RemoteTestModuleIF mod) throws RemoteException
Called remotely by client threads to register themselves with the master.
registerClient in interface MasterProxyIFRemoteExceptionpublic void registerClientDisconnect(int vmid)
throws RemoteException
Called remotely by client threads to register disconnect with the master.
registerClientDisconnect in interface MasterProxyIFRemoteExceptionpublic Map getClientVms() throws RemoteException
Called remotely by the unit test controller.
getClientVms in interface MasterProxyIFRemoteExceptionpublic void reportResult(int tsid,
int vmid,
int tid,
TestTaskResult result)
throws RemoteException
Used by client threads to report task results to master.
reportResult in interface MasterProxyIFRemoteExceptionpublic void printClientProcessStacks()
throws RemoteException
printClientProcessStacks in interface MasterProxyIFRemoteExceptionpublic Object getGlobalNext(Long key) throws RemoteException
Used by client threads to get the global next from a RobinG.
getGlobalNext in interface MasterProxyIFRemoteExceptionpublic boolean reservePort(String host, int port) throws RemoteException
Used by client threads to reserve a port with the master, who adds it to the list of used ports for the host.
reservePort in interface MasterProxyIFRemoteExceptionpublic ClientVmInfo reserveClientVmForStop(String srcName, int srcVmid, int syncMode, int stopMode, ClientVmInfo target) throws RemoteException, ClientVmNotFoundException
Reserves a client VM matching the specified info for future stop. Returns null if no match is found.
reserveClientVmForStop in interface MasterProxyIFsrcName - Thread name for the invoking client.srcVmid - Logical VM id for the invoking client.syncMode - Synchronization mode for the dynamic stop.stopMode - Stop mode for the dynamic stop.target - Information used to select the target client VM.ClientVmNotFoundException - if a reservation could not be made.IllegalArgumentException - if the target info is invalid.RemoteExceptionpublic ClientVmInfo reserveClientVmForStart(String srcName, int srcVmid, ClientVmInfo target) throws RemoteException, ClientVmNotFoundException
Reserves a client VM matching the specified info for future start. Returns null if no match is found.
reserveClientVmForStart in interface MasterProxyIFsrcName - Thread name for the invoking client.srcVmid - Logical VM id for the invoking client.target - Information used to select the target client VM.ClientVmNotFoundException - if a reservation could not be made.IllegalArgumentException - if the target info is invalid.RemoteExceptionpublic void stopClientVm(String srcName, int srcVmid, int actionId, String reason, int syncMode, int stopMode, int startMode, ClientVmInfo target) throws RemoteException
Stops the target VM.
stopClientVm in interface MasterProxyIFRemoteExceptionpublic void startClientVm(String srcName, int srcVmid, int actionId, String reason, int syncMode, ClientVmInfo target) throws RemoteException
Starts the target VM.
startClientVm in interface MasterProxyIFRemoteExceptionpublic ClientVmRecord bounceUnitTestVm(int pid) throws RemoteException
Bounces the VM with the given PID.
bounceUnitTestVm in interface MasterProxyIFRemoteExceptionpublic Vector getClientVmids() throws RemoteException
Returns the VM IDs (as Integers) for all client VMs, regardless of whether the VMs are currently started or stopped.
getClientVmids in interface MasterProxyIFRemoteExceptionpublic Vector getOtherClientVmids(int vmid) throws RemoteException
Returns the VM IDs (as Integers) for all client VMs except the given one, regardless of whether the VMs are currently started or stopped.
getOtherClientVmids in interface MasterProxyIFRemoteExceptionpublic RebootInfo reserveForReboot(String srcName, int srcVmid, String target, boolean liveOnly) throws RemoteException, RebootHostNotFoundException
Reserves a host for future reboot.
reserveForReboot in interface MasterProxyIFsrcName - Thread name for the invoking client.srcVmid - Logical VM id for the invoking client.target - The target host.liveOnly - Whether to return only processes that were live at the
time of the reboot.RebootHostNotFoundException - if a reservation could not be made.IllegalArgumentException - if the target is invalid.RemoteExceptionpublic void reboot(String srcName, int srcVmid, int actionId, String reason, RebootInfo target) throws RemoteException
Reboots the target.
reboot in interface MasterProxyIFRemoteExceptionpublic void configureNetworkConnection(String source, String target, int op, int way) throws RemoteException
configureNetworkConnection in interface MasterProxyIFRemoteExceptionpublic Map getNetworkConnectionState() throws RemoteException
getNetworkConnectionState in interface MasterProxyIFRemoteExceptionpublic void showNetworkConnectionState()
throws RemoteException
showNetworkConnectionState in interface MasterProxyIFRemoteExceptionpublic void recordAgent(AgentHelper.Endpoint endpoint) throws RemoteException
recordAgent in interface MasterProxyIFRemoteExceptionpublic void recordPID(HostDescription hd, int pid) throws RemoteException
recordPID in interface MasterProxyIFRemoteExceptionpublic void recordPIDNoDumps(HostDescription hd, int pid) throws RemoteException
recordPIDNoDumps in interface MasterProxyIFRemoteExceptionpublic void removePID(HostDescription hd, int pid) throws RemoteException
removePID in interface MasterProxyIFRemoteExceptionpublic void removePIDNoDumps(HostDescription hd, int pid) throws RemoteException
removePIDNoDumps in interface MasterProxyIFRemoteExceptionpublic void recordHadoop(HadoopDescription hdd, HadoopDescription.NodeDescription nd, int pid, boolean secure) throws RemoteException
recordHadoop in interface MasterProxyIFRemoteExceptionpublic void removeHadoop(HadoopDescription hdd, HadoopDescription.NodeDescription nd, int pid, boolean secure) throws RemoteException
removeHadoop in interface MasterProxyIFRemoteExceptionpublic void recordHDFSPIDNoDumps(HostDescription hd, int pid, boolean secure) throws RemoteException
recordHDFSPIDNoDumps in interface MasterProxyIFRemoteExceptionpublic void removeHDFSPIDNoDumps(HostDescription hd, int pid, boolean secure) throws RemoteException
removeHDFSPIDNoDumps in interface MasterProxyIFRemoteExceptionpublic void recordRootCommand(HostDescription hd, String cmd, String dir) throws RemoteException
recordRootCommand in interface MasterProxyIFRemoteExceptionpublic void recordDir(HostDescription hd, String name, String dir) throws RemoteException
recordDir in interface MasterProxyIFRemoteExceptionpublic void invoke(String classname, String methodname, Class[] types, Object[] args) throws RemoteException
invoke in interface MasterProxyIFRemoteExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.