public class MasterProxy extends java.rmi.server.UnicastRemoteObject implements MasterProxyIF
| Constructor and Description |
|---|
MasterProxy() |
| Modifier and Type | Method and Description |
|---|---|
ClientVmRecord |
bounceUnitTestVm(int pid)
For internal hydra use only.
|
void |
configureNetworkConnection(java.lang.String source,
java.lang.String target,
int op,
int way)
For internal hydra use only.
|
java.util.List<java.util.List<java.lang.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.
|
java.util.Vector |
getClientVmids()
For internal hydra use only.
|
java.util.Map |
getClientVms()
For internal hydra use only.
|
DerbyServerHelper.Endpoint |
getDerbyServerEndpoint()
For internal hydra use only.
|
java.lang.Object |
getGlobalNext(java.lang.Long key)
For internal hydra use only.
|
HostAgentIF |
getHostAgent(java.lang.String host)
For internal hydra use only.
|
TestConfig |
getHostAgentTestConfig() |
java.util.Map |
getNetworkConnectionState()
For internal hydra use only.
|
java.util.Vector |
getOtherClientVmids(int vmid)
For internal hydra use only.
|
int |
getPid(int vmid)
For internal hydra use only.
|
TestConfig |
getTestConfig() |
java.lang.Integer |
getVmid(java.lang.String host,
int pid)
Called remotely by client processes to get VM ID corresponding to host
and PID.
|
void |
invoke(java.lang.String classname,
java.lang.String methodname,
java.lang.Class[] types,
java.lang.Object[] args)
Invokes the specified class method.
|
void |
lockToSynchronizeJavaGroupsForBug30341()
Start workaround for Bug 30341.
|
void |
printClientProcessStacks() |
void |
reboot(java.lang.String srcName,
int srcVmid,
int actionId,
java.lang.String reason,
RebootInfo target)
For internal hydra use only.
|
void |
recordAgent(AgentHelper.Endpoint endpoint) |
void |
recordDir(HostDescription hd,
java.lang.String name,
java.lang.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,
java.lang.String cmd,
java.lang.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(java.lang.Throwable t)
For internal hydra use only.
|
ClientVmInfo |
reserveClientVmForStart(java.lang.String srcName,
int srcVmid,
ClientVmInfo target)
For internal hydra use only.
|
ClientVmInfo |
reserveClientVmForStop(java.lang.String srcName,
int srcVmid,
int syncMode,
int stopMode,
ClientVmInfo target)
For internal hydra use only.
|
RebootInfo |
reserveForReboot(java.lang.String srcName,
int srcVmid,
java.lang.String target,
boolean liveOnly)
For internal hydra use only.
|
boolean |
reservePort(java.lang.String host,
int port)
For internal hydra use only.
|
void |
showNetworkConnectionState()
For internal hydra use only.
|
void |
startClientVm(java.lang.String srcName,
int srcVmid,
int actionId,
java.lang.String reason,
int syncMode,
ClientVmInfo target)
For internal hydra use only.
|
void |
stopClientVm(java.lang.String srcName,
int srcVmid,
int actionId,
java.lang.String reason,
int syncMode,
int stopMode,
int startMode,
ClientVmInfo target)
For internal hydra use only.
|
void |
unlockToSynchronizeJavaGroupsForBug30341() |
clone, exportObject, exportObject, exportObject, unexportObjectpublic MasterProxy()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic TestConfig getTestConfig() throws java.rmi.RemoteException
getTestConfig in interface MasterProxyIFjava.rmi.RemoteExceptionpublic TestConfig getHostAgentTestConfig() throws java.rmi.RemoteException
getHostAgentTestConfig in interface MasterProxyIFjava.rmi.RemoteExceptionpublic void registerGemFireLocatorAgent(GemFireLocatorAgentRecord lar) throws java.rmi.RemoteException
Called remotely by the locatoragent to register itself with the master.
registerGemFireLocatorAgent in interface MasterProxyIFjava.rmi.RemoteExceptionpublic void recordLocator(DistributedSystemHelper.Endpoint endpoint) throws java.rmi.RemoteException
MasterProxyIFrecordLocator in interface MasterProxyIFjava.rmi.RemoteExceptionpublic void lockToSynchronizeJavaGroupsForBug30341()
throws java.rmi.RemoteException
lockToSynchronizeJavaGroupsForBug30341 in interface MasterProxyIFjava.rmi.RemoteExceptionpublic void unlockToSynchronizeJavaGroupsForBug30341()
throws java.rmi.RemoteException
unlockToSynchronizeJavaGroupsForBug30341 in interface MasterProxyIFjava.rmi.RemoteExceptionpublic DerbyServerHelper.Endpoint getDerbyServerEndpoint() throws java.rmi.RemoteException
Called remotely by hydra clients to get the derby server endpoint.
getDerbyServerEndpoint in interface MasterProxyIFjava.rmi.RemoteExceptionpublic void registerHostAgent(HostAgentRecord har) throws java.rmi.RemoteException
Called remotely by hostagents to register themselves with the master.
registerHostAgent in interface MasterProxyIFjava.rmi.RemoteExceptionpublic void reportStatMonitorError(java.lang.Throwable t)
throws java.rmi.RemoteException
Called remotely by hostagents to report a statistics monitor error.
reportStatMonitorError in interface MasterProxyIFjava.rmi.RemoteExceptionpublic HostAgentIF getHostAgent(java.lang.String host) throws java.rmi.RemoteException
Called by ProcessMgr to get a hostagent for a host.
getHostAgent in interface MasterProxyIFjava.rmi.RemoteExceptionpublic java.lang.Integer getVmid(java.lang.String host,
int pid)
throws java.rmi.RemoteException
getVmid in interface MasterProxyIFjava.rmi.RemoteExceptionpublic java.util.List<java.util.List<java.lang.String>> getClientMapping()
throws java.rmi.RemoteException
getClientMapping in interface MasterProxyIFjava.rmi.RemoteExceptionpublic int getPid(int vmid)
throws java.rmi.RemoteException
Called remotely by client processes to get accurate PID (for Linux).
getPid in interface MasterProxyIFjava.rmi.RemoteExceptionpublic HydraThreadGroupInfo registerClient(int vmid, int tid, RemoteTestModuleIF mod) throws java.rmi.RemoteException
Called remotely by client threads to register themselves with the master.
registerClient in interface MasterProxyIFjava.rmi.RemoteExceptionpublic void registerClientDisconnect(int vmid)
throws java.rmi.RemoteException
Called remotely by client threads to register disconnect with the master.
registerClientDisconnect in interface MasterProxyIFjava.rmi.RemoteExceptionpublic java.util.Map getClientVms()
throws java.rmi.RemoteException
Called remotely by the unit test controller.
getClientVms in interface MasterProxyIFjava.rmi.RemoteExceptionpublic void reportResult(int tsid,
int vmid,
int tid,
TestTaskResult result)
throws java.rmi.RemoteException
Used by client threads to report task results to master.
reportResult in interface MasterProxyIFjava.rmi.RemoteExceptionpublic void printClientProcessStacks()
throws java.rmi.RemoteException
printClientProcessStacks in interface MasterProxyIFjava.rmi.RemoteExceptionpublic java.lang.Object getGlobalNext(java.lang.Long key)
throws java.rmi.RemoteException
Used by client threads to get the global next from a RobinG.
getGlobalNext in interface MasterProxyIFjava.rmi.RemoteExceptionpublic boolean reservePort(java.lang.String host,
int port)
throws java.rmi.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 MasterProxyIFjava.rmi.RemoteExceptionpublic ClientVmInfo reserveClientVmForStop(java.lang.String srcName, int srcVmid, int syncMode, int stopMode, ClientVmInfo target) throws java.rmi.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.java.lang.IllegalArgumentException - if the target info is invalid.java.rmi.RemoteExceptionpublic ClientVmInfo reserveClientVmForStart(java.lang.String srcName, int srcVmid, ClientVmInfo target) throws java.rmi.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.java.lang.IllegalArgumentException - if the target info is invalid.java.rmi.RemoteExceptionpublic void stopClientVm(java.lang.String srcName,
int srcVmid,
int actionId,
java.lang.String reason,
int syncMode,
int stopMode,
int startMode,
ClientVmInfo target)
throws java.rmi.RemoteException
Stops the target VM.
stopClientVm in interface MasterProxyIFjava.rmi.RemoteExceptionpublic void startClientVm(java.lang.String srcName,
int srcVmid,
int actionId,
java.lang.String reason,
int syncMode,
ClientVmInfo target)
throws java.rmi.RemoteException
Starts the target VM.
startClientVm in interface MasterProxyIFjava.rmi.RemoteExceptionpublic ClientVmRecord bounceUnitTestVm(int pid) throws java.rmi.RemoteException
Bounces the VM with the given PID.
bounceUnitTestVm in interface MasterProxyIFjava.rmi.RemoteExceptionpublic java.util.Vector getClientVmids()
throws java.rmi.RemoteException
Returns the VM IDs (as Integers) for all client VMs, regardless of whether the VMs are currently started or stopped.
getClientVmids in interface MasterProxyIFjava.rmi.RemoteExceptionpublic java.util.Vector getOtherClientVmids(int vmid)
throws java.rmi.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 MasterProxyIFjava.rmi.RemoteExceptionpublic RebootInfo reserveForReboot(java.lang.String srcName, int srcVmid, java.lang.String target, boolean liveOnly) throws java.rmi.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.java.lang.IllegalArgumentException - if the target is invalid.java.rmi.RemoteExceptionpublic void reboot(java.lang.String srcName,
int srcVmid,
int actionId,
java.lang.String reason,
RebootInfo target)
throws java.rmi.RemoteException
Reboots the target.
reboot in interface MasterProxyIFjava.rmi.RemoteExceptionpublic void configureNetworkConnection(java.lang.String source,
java.lang.String target,
int op,
int way)
throws java.rmi.RemoteException
configureNetworkConnection in interface MasterProxyIFjava.rmi.RemoteExceptionpublic java.util.Map getNetworkConnectionState()
throws java.rmi.RemoteException
getNetworkConnectionState in interface MasterProxyIFjava.rmi.RemoteExceptionpublic void showNetworkConnectionState()
throws java.rmi.RemoteException
showNetworkConnectionState in interface MasterProxyIFjava.rmi.RemoteExceptionpublic void recordAgent(AgentHelper.Endpoint endpoint) throws java.rmi.RemoteException
recordAgent in interface MasterProxyIFjava.rmi.RemoteExceptionpublic void recordPID(HostDescription hd, int pid) throws java.rmi.RemoteException
recordPID in interface MasterProxyIFjava.rmi.RemoteExceptionpublic void recordPIDNoDumps(HostDescription hd, int pid) throws java.rmi.RemoteException
recordPIDNoDumps in interface MasterProxyIFjava.rmi.RemoteExceptionpublic void removePID(HostDescription hd, int pid) throws java.rmi.RemoteException
removePID in interface MasterProxyIFjava.rmi.RemoteExceptionpublic void removePIDNoDumps(HostDescription hd, int pid) throws java.rmi.RemoteException
removePIDNoDumps in interface MasterProxyIFjava.rmi.RemoteExceptionpublic void recordHadoop(HadoopDescription hdd, HadoopDescription.NodeDescription nd, int pid, boolean secure) throws java.rmi.RemoteException
recordHadoop in interface MasterProxyIFjava.rmi.RemoteExceptionpublic void removeHadoop(HadoopDescription hdd, HadoopDescription.NodeDescription nd, int pid, boolean secure) throws java.rmi.RemoteException
removeHadoop in interface MasterProxyIFjava.rmi.RemoteExceptionpublic void recordHDFSPIDNoDumps(HostDescription hd, int pid, boolean secure) throws java.rmi.RemoteException
recordHDFSPIDNoDumps in interface MasterProxyIFjava.rmi.RemoteExceptionpublic void removeHDFSPIDNoDumps(HostDescription hd, int pid, boolean secure) throws java.rmi.RemoteException
removeHDFSPIDNoDumps in interface MasterProxyIFjava.rmi.RemoteExceptionpublic void recordRootCommand(HostDescription hd, java.lang.String cmd, java.lang.String dir) throws java.rmi.RemoteException
recordRootCommand in interface MasterProxyIFjava.rmi.RemoteExceptionpublic void recordDir(HostDescription hd, java.lang.String name, java.lang.String dir) throws java.rmi.RemoteException
recordDir in interface MasterProxyIFjava.rmi.RemoteExceptionpublic void invoke(java.lang.String classname,
java.lang.String methodname,
java.lang.Class[] types,
java.lang.Object[] args)
throws java.rmi.RemoteException
invoke in interface MasterProxyIFjava.rmi.RemoteExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.