test_class.file: vsm/src/test/java/com/abiquo/vsm/resource/PhysicalMachineResourceTest.java
test_class.identifier: PhysicalMachineResourceTest
test_class.superclass: extends ResourceTestBase
test_case.body: @Test
      public void test_monitor()
      {
          monitor("10.60.1.78", Type.HYPERV_301);
      }
test_case.class_method_signature: PhysicalMachineResourceTest.test_monitor()
test_case.full_signature: @Test public void test_monitor()
test_case.identifier: test_monitor
test_case.invocations: monitor
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void test_monitor()
focal_class.declarator: PHYSICALMACHINES_PATH = "physicalmachines"
focal_class.modifier: public static final
focal_class.original_string: public static final String PHYSICALMACHINES_PATH = "physicalmachines";
focal_class.type: String
focal_class.var_name: PHYSICALMACHINES_PATH
focal_class.declarator: PHYSICALMACHINE_PARAM = "pm"
focal_class.modifier: public static final
focal_class.original_string: public static final String PHYSICALMACHINE_PARAM = "pm";
focal_class.type: String
focal_class.var_name: PHYSICALMACHINE_PARAM
focal_class.declarator: PHYSICALMACHINE_PATH = "{" + PHYSICALMACHINE_PARAM + "}"
focal_class.modifier: public static final
focal_class.original_string: public static final String PHYSICALMACHINE_PATH = "{" + PHYSICALMACHINE_PARAM + "}";
focal_class.type: String
focal_class.var_name: PHYSICALMACHINE_PATH
focal_class.declarator: VIRTUALMACHINE_PARAM = "vm"
focal_class.modifier: public static final
focal_class.original_string: public static final String VIRTUALMACHINE_PARAM = "vm";
focal_class.type: String
focal_class.var_name: VIRTUALMACHINE_PARAM
focal_class.declarator: VIRTUALMACHINE_PATH = PHYSICALMACHINE_PATH + "/virtualmachine/{"
          + VIRTUALMACHINE_PARAM + "}"
focal_class.modifier: public static final
focal_class.original_string: public static final String VIRTUALMACHINE_PATH = PHYSICALMACHINE_PATH + "/virtualmachine/{"
          + VIRTUALMACHINE_PARAM + "}";
focal_class.type: String
focal_class.var_name: VIRTUALMACHINE_PATH
focal_class.declarator: ADDRESS_QUERY_PARAM = "address"
focal_class.modifier: private static final
focal_class.original_string: private static final String ADDRESS_QUERY_PARAM = "address";
focal_class.type: String
focal_class.var_name: ADDRESS_QUERY_PARAM
focal_class.declarator: vsmService
focal_class.modifier: protected
focal_class.original_string: protected VSMService vsmService;
focal_class.type: VSMService
focal_class.var_name: vsmService
focal_class.declarator: dao
focal_class.modifier: private
focal_class.original_string: private RedisDao dao;
focal_class.type: RedisDao
focal_class.var_name: dao
focal_class.file: vsm/src/main/java/com/abiquo/vsm/resource/PhysicalMachineResource.java
focal_class.identifier: PhysicalMachineResource
focal_class.class_method_signature: PhysicalMachineResource.PhysicalMachineResource()
focal_class.full_signature: public  PhysicalMachineResource()
focal_class.identifier: PhysicalMachineResource
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  PhysicalMachineResource()
focal_class.class_method_signature: PhysicalMachineResource.getMonitoredMachines(
          @QueryParam(ADDRESS_QUERY_PARAM) String physicalMachineAddress)
focal_class.full_signature: @GET public PhysicalMachinesDto getMonitoredMachines(
          @QueryParam(ADDRESS_QUERY_PARAM) String physicalMachineAddress)
focal_class.identifier: getMonitoredMachines
focal_class.modifiers: @GET public
focal_class.parameters: (
          @QueryParam(ADDRESS_QUERY_PARAM) String physicalMachineAddress)
focal_class.return: PhysicalMachinesDto
focal_class.signature: PhysicalMachinesDto getMonitoredMachines(
          @QueryParam(ADDRESS_QUERY_PARAM) String physicalMachineAddress)
focal_class.class_method_signature: PhysicalMachineResource.monitor(final PhysicalMachineDto physicalMachine,
          @HeaderParam(AUTH_HEADER) final String auth)
focal_class.full_signature: @POST public PhysicalMachineDto monitor(final PhysicalMachineDto physicalMachine,
          @HeaderParam(AUTH_HEADER) final String auth)
focal_class.identifier: monitor
focal_class.modifiers: @POST public
focal_class.parameters: (final PhysicalMachineDto physicalMachine,
          @HeaderParam(AUTH_HEADER) final String auth)
focal_class.return: PhysicalMachineDto
focal_class.signature: PhysicalMachineDto monitor(final PhysicalMachineDto physicalMachine,
          @HeaderParam(AUTH_HEADER) final String auth)
focal_class.class_method_signature: PhysicalMachineResource.shutdown(@PathParam(PHYSICALMACHINE_PARAM) String physicalMachineId)
focal_class.full_signature: @DELETE @Path(PHYSICALMACHINE_PATH) public void shutdown(@PathParam(PHYSICALMACHINE_PARAM) String physicalMachineId)
focal_class.identifier: shutdown
focal_class.modifiers: @DELETE @Path(PHYSICALMACHINE_PATH) public
focal_class.parameters: (@PathParam(PHYSICALMACHINE_PARAM) String physicalMachineId)
focal_class.return: void
focal_class.signature: void shutdown(@PathParam(PHYSICALMACHINE_PARAM) String physicalMachineId)
focal_class.class_method_signature: PhysicalMachineResource.getState(@PathParam(PHYSICALMACHINE_PARAM) String physicalMachineId,
          @PathParam(VIRTUALMACHINE_PARAM) String virtualMachineName)
focal_class.full_signature: @GET @Path(VIRTUALMACHINE_PATH) public void getState(@PathParam(PHYSICALMACHINE_PARAM) String physicalMachineId,
          @PathParam(VIRTUALMACHINE_PARAM) String virtualMachineName)
focal_class.identifier: getState
focal_class.modifiers: @GET @Path(VIRTUALMACHINE_PATH) public
focal_class.parameters: (@PathParam(PHYSICALMACHINE_PARAM) String physicalMachineId,
          @PathParam(VIRTUALMACHINE_PARAM) String virtualMachineName)
focal_class.return: void
focal_class.signature: void getState(@PathParam(PHYSICALMACHINE_PARAM) String physicalMachineId,
          @PathParam(VIRTUALMACHINE_PARAM) String virtualMachineName)
focal_class.class_method_signature: PhysicalMachineResource.invalidateLastKnownState(
          @PathParam(PHYSICALMACHINE_PARAM) String physicalMachineId,
          @PathParam(VIRTUALMACHINE_PARAM) String virtualMachineName)
focal_class.full_signature: @DELETE @Path(VIRTUALMACHINE_PATH) public void invalidateLastKnownState(
          @PathParam(PHYSICALMACHINE_PARAM) String physicalMachineId,
          @PathParam(VIRTUALMACHINE_PARAM) String virtualMachineName)
focal_class.identifier: invalidateLastKnownState
focal_class.modifiers: @DELETE @Path(VIRTUALMACHINE_PATH) public
focal_class.parameters: (
          @PathParam(PHYSICALMACHINE_PARAM) String physicalMachineId,
          @PathParam(VIRTUALMACHINE_PARAM) String virtualMachineName)
focal_class.return: void
focal_class.signature: void invalidateLastKnownState(
          @PathParam(PHYSICALMACHINE_PARAM) String physicalMachineId,
          @PathParam(VIRTUALMACHINE_PARAM) String virtualMachineName)
focal_class.superclass: extends AbstractResource
focal_method.body: @POST
      public PhysicalMachineDto monitor(final PhysicalMachineDto physicalMachine,
          @HeaderParam(AUTH_HEADER) final String auth)
      {
          checkSystem();
  
          String[] credentials = getBasicAuthCredentials(auth);
  
          PhysicalMachine pm;
          if (credentials.length != 0)
          {
              pm =
                  vsmService.monitor(physicalMachine.getAddress(), physicalMachine.getType(),
                      credentials[0], credentials[1]);
          }
          else
          {
              pm = vsmService.monitor(physicalMachine.getAddress(), physicalMachine.getType());
          }
  
          return toDto(pm);
      }
focal_method.class_method_signature: PhysicalMachineResource.monitor(final PhysicalMachineDto physicalMachine,
          @HeaderParam(AUTH_HEADER) final String auth)
focal_method.full_signature: @POST public PhysicalMachineDto monitor(final PhysicalMachineDto physicalMachine,
          @HeaderParam(AUTH_HEADER) final String auth)
focal_method.identifier: monitor
focal_method.invocations: checkSystem getBasicAuthCredentials monitor getAddress getType monitor getAddress getType toDto
focal_method.modifiers: @POST public
focal_method.parameters: (final PhysicalMachineDto physicalMachine,
          @HeaderParam(AUTH_HEADER) final String auth)
focal_method.return: PhysicalMachineDto
focal_method.signature: PhysicalMachineDto monitor(final PhysicalMachineDto physicalMachine,
          @HeaderParam(AUTH_HEADER) final String auth)