01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: *
15: * See the License for the specific language governing permissions and
16: * limitations under the License.
17: */
18:
19: package java.rmi.activation;
20:
21: import java.rmi.Remote;
22: import java.rmi.RemoteException;
23:
24: public interface ActivationSystem extends Remote {
25: int SYSTEM_PORT = 1098;
26:
27: ActivationMonitor activeGroup(ActivationGroupID gID,
28: ActivationInstantiator aInst, long incarnation)
29: throws UnknownGroupException, ActivationException,
30: RemoteException;
31:
32: ActivationGroupDesc setActivationGroupDesc(ActivationGroupID gID,
33: ActivationGroupDesc gDesc) throws ActivationException,
34: UnknownGroupException, RemoteException;
35:
36: ActivationDesc setActivationDesc(ActivationID aID,
37: ActivationDesc aDesc) throws ActivationException,
38: UnknownObjectException, UnknownGroupException,
39: RemoteException;
40:
41: ActivationID registerObject(ActivationDesc aDesc)
42: throws ActivationException, UnknownGroupException,
43: RemoteException;
44:
45: ActivationGroupID registerGroup(ActivationGroupDesc gDesc)
46: throws ActivationException, RemoteException;
47:
48: ActivationGroupDesc getActivationGroupDesc(ActivationGroupID gID)
49: throws ActivationException, UnknownGroupException,
50: RemoteException;
51:
52: ActivationDesc getActivationDesc(ActivationID aID)
53: throws ActivationException, UnknownObjectException,
54: RemoteException;
55:
56: void unregisterObject(ActivationID aID) throws ActivationException,
57: UnknownObjectException, RemoteException;
58:
59: void unregisterGroup(ActivationGroupID gID)
60: throws ActivationException, UnknownGroupException,
61: RemoteException;
62:
63: void shutdown() throws RemoteException;
64: }
|