001/*
002 * JPPF.
003 * Copyright (C) 2005-2018 JPPF Team.
004 * http://www.jppf.org
005 *
006 * Licensed under the Apache License, Version 2.0 (the "License");
007 * you may not use this file except in compliance with the License.
008 * You may obtain a copy of the License at
009 *
010 *   http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing, software
013 * distributed under the License is distributed on an "AS IS" BASIS,
014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015 * See the License for the specific language governing permissions and
016 * limitations under the License.
017 */
018
019package org.jppf.management.generated;
020
021import java.util.Map;
022import org.jppf.job.JobInformation;
023import org.jppf.job.JobSelector;
024import org.jppf.management.AbstractMBeanStaticProxy;
025import org.jppf.management.JMXConnectionWrapper;
026import org.jppf.node.protocol.JobMetadata;
027import org.jppf.node.protocol.JobSLA;
028import org.jppf.server.job.management.DriverJobManagementMBean;
029import org.jppf.server.job.management.NodeJobInformation;
030
031/**
032 * Generated static proxy for the {@link org.jppf.server.job.management.DriverJobManagementMBean} MBean interface.
033 * @author /common/src/java/org/jppf/utils/generator/MBeanStaticProxyGenerator.java
034 */
035@SuppressWarnings({"rawtypes", "unchecked"})
036public class DriverJobManagementMBeanStaticProxy extends AbstractMBeanStaticProxy implements DriverJobManagementMBean {
037  /**
038   * Initialize this MBean static proxy.
039   * @param connection the JMX connection used to invoke remote MBean methods.
040   */
041  public DriverJobManagementMBeanStaticProxy(final JMXConnectionWrapper connection) {
042    super(connection, "org.jppf:name=jobManagement,type=driver");
043  }
044
045  /**
046   * Get the JMX object name for this MBean static proxy.
047   * @return the object name as a string.
048   */
049  public static final String getMBeanName() {
050    return "org.jppf:name=jobManagement,type=driver";
051  }
052
053  @Override
054  public String[] getAllJobUuids() {
055    return (String[]) getAttribute("AllJobUuids");
056  }
057
058  @Override
059  public Map getNodeInformation(final JobSelector param0) {
060    return (Map) invoke("getNodeInformation", new Object[] { param0 }, new String[] { "org.jppf.job.JobSelector" });
061  }
062
063  @Override
064  public JobInformation getJobInformation(final String param0) {
065    return (JobInformation) invoke("getJobInformation", new Object[] { param0 }, new String[] { "java.lang.String" });
066  }
067
068  @Override
069  public JobInformation[] getJobInformation(final JobSelector param0) {
070    return (JobInformation[]) invoke("getJobInformation", new Object[] { param0 }, new String[] { "org.jppf.job.JobSelector" });
071  }
072
073  @Override
074  public NodeJobInformation[] getNodeInformation(final String param0) {
075    return (NodeJobInformation[]) invoke("getNodeInformation", new Object[] { param0 }, new String[] { "java.lang.String" });
076  }
077
078  @Override
079  public void cancelJob(final String param0) {
080    invoke("cancelJob", new Object[] { param0 }, new String[] { "java.lang.String" });
081  }
082
083  @Override
084  public void cancelJobs(final JobSelector param0) {
085    invoke("cancelJobs", new Object[] { param0 }, new String[] { "org.jppf.job.JobSelector" });
086  }
087
088  @Override
089  public void resumeJob(final String param0) {
090    invoke("resumeJob", new Object[] { param0 }, new String[] { "java.lang.String" });
091  }
092
093  @Override
094  public void resumeJobs(final JobSelector param0) {
095    invoke("resumeJobs", new Object[] { param0 }, new String[] { "org.jppf.job.JobSelector" });
096  }
097
098  @Override
099  public void suspendJob(final String param0, final Boolean param1) {
100    invoke("suspendJob", new Object[] { param0, param1 }, new String[] { "java.lang.String", "java.lang.Boolean" });
101  }
102
103  @Override
104  public void suspendJobs(final JobSelector param0, final Boolean param1) {
105    invoke("suspendJobs", new Object[] { param0, param1 }, new String[] { "org.jppf.job.JobSelector", "java.lang.Boolean" });
106  }
107
108  @Override
109  public void updateJobs(final JobSelector param0, final JobSLA param1, final JobMetadata param2) {
110    invoke("updateJobs", new Object[] { param0, param1, param2 }, new String[] { "org.jppf.job.JobSelector", "org.jppf.node.protocol.JobSLA", "org.jppf.node.protocol.JobMetadata" });
111  }
112
113  @Override
114  public void updateMaxNodes(final String param0, final Integer param1) {
115    invoke("updateMaxNodes", new Object[] { param0, param1 }, new String[] { "java.lang.String", "java.lang.Integer" });
116  }
117
118  @Override
119  public void updateMaxNodes(final JobSelector param0, final Integer param1) {
120    invoke("updateMaxNodes", new Object[] { param0, param1 }, new String[] { "org.jppf.job.JobSelector", "java.lang.Integer" });
121  }
122
123  @Override
124  public void updatePriority(final String param0, final Integer param1) {
125    invoke("updatePriority", new Object[] { param0, param1 }, new String[] { "java.lang.String", "java.lang.Integer" });
126  }
127
128  @Override
129  public void updatePriority(final JobSelector param0, final Integer param1) {
130    invoke("updatePriority", new Object[] { param0, param1 }, new String[] { "org.jppf.job.JobSelector", "java.lang.Integer" });
131  }
132}