Exemplo n.º 1
0
 @Test
 public void testDeploy() throws Exception {
   long t0 = System.currentTimeMillis();
   ProvisionMonitor monitor = Util.waitForService(ProvisionMonitor.class);
   Assert.assertNotNull(monitor);
   System.out.println(
       "Waited " + (System.currentTimeMillis() - t0) + " millis for ProvisionMonitor discovery");
   DeployAdmin deployAdmin = (DeployAdmin) monitor.getAdmin();
   OperationalStringManager manager = deployAdmin.getOperationalStringManager("Sorcer OS");
   Util.waitForDeployment(manager);
   Job f1 = Util.createJob();
   ProvisionManager provisionManager = new ProvisionManager(f1);
   Assert.assertTrue(provisionManager.deployServices());
 }
Exemplo n.º 2
0
 /** @see org.rioproject.deploy.ProvisionManager#update */
 public void update(
     ServiceBeanInstantiator instantiator,
     ResourceCapability resourceCapability,
     List<DeployedService> deployedServices,
     int serviceLimit)
     throws UnknownLeaseException, RemoteException {
   monitorProxy.update(instantiator, resourceCapability, deployedServices, serviceLimit);
 }
Exemplo n.º 3
0
 /** @see org.rioproject.deploy.ProvisionManager#register */
 public EventRegistration register(
     MarshalledObject<ServiceBeanInstantiator> instantiator,
     MarshalledObject handback,
     ResourceCapability resourceCapability,
     List<DeployedService> deployedServices,
     int serviceLimit,
     long duration)
     throws LeaseDeniedException, RemoteException {
   return (monitorProxy.register(
       instantiator, handback, resourceCapability, deployedServices, serviceLimit, duration));
 }
Exemplo n.º 4
0
 /** @see org.rioproject.monitor.ProvisionMonitor#getPeerInfo */
 public PeerInfo getPeerInfo() throws RemoteException {
   return (monitorProxy.getPeerInfo());
 }
Exemplo n.º 5
0
 /** @see org.rioproject.monitor.ProvisionMonitor#update */
 public void update(final PeerInfo info) throws RemoteException {
   monitorProxy.update(info);
 }
Exemplo n.º 6
0
 /** @see org.rioproject.monitor.ProvisionMonitor#removeBackupFor */
 public boolean removeBackupFor(final ProvisionMonitor monitor) throws RemoteException {
   return (monitorProxy.removeBackupFor(monitor));
 }
Exemplo n.º 7
0
 public Collection<MarshalledObject<ServiceBeanInstantiator>> getWrappedServiceBeanInstantiators()
     throws RemoteException {
   return monitorProxy.getWrappedServiceBeanInstantiators();
 }